When hovering over a file on the not-focus view panel, the information panel gets updated

Test Plan:
 - In Dolphin with two views (split view) and with the information panels
 - Hover over a file on the not selected view
 - > the information panel show information about this file

No other changes in behavior

Reviewers: #dolphin, elvisangelaccio, ngraham

Reviewed By: #dolphin, ngraham

Subscribers: kfm-devel

Tags: #dolphin

Differential Revision: https://phabricator.kde.org/D19936
This commit is contained in:
Méven Car 2019-03-24 18:37:10 +01:00
parent 35f1fd5c15
commit d7277e47a6
2 changed files with 5 additions and 1 deletions

View file

@ -1045,6 +1045,10 @@ void DolphinMainWindow::activeViewChanged(DolphinViewContainer* viewContainer)
oldViewContainer->disconnect(this);
oldViewContainer->view()->disconnect(this);
oldViewContainer->urlNavigator()->disconnect(this);
// except the requestItemInfo so that on hover the information panel can still be updated
connect(oldViewContainer->view(), &DolphinView::requestItemInfo,
this, &DolphinMainWindow::requestItemInfo);
}
connectViewSignals(viewContainer);

View file

@ -75,7 +75,7 @@ protected:
private slots:
/**
* Shows the information for the item of the URL which has been provided by
* InformationPanel::requestItemInfo() and provides default actions.
* InformationPanel::requestDelayedItemInfo() and provides default actions.
*/
void showItemInfo();