mirror of
https://invent.kde.org/system/dolphin
synced 2024-09-17 15:31:20 +00:00
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:
parent
35f1fd5c15
commit
d7277e47a6
|
@ -1045,6 +1045,10 @@ void DolphinMainWindow::activeViewChanged(DolphinViewContainer* viewContainer)
|
||||||
oldViewContainer->disconnect(this);
|
oldViewContainer->disconnect(this);
|
||||||
oldViewContainer->view()->disconnect(this);
|
oldViewContainer->view()->disconnect(this);
|
||||||
oldViewContainer->urlNavigator()->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);
|
connectViewSignals(viewContainer);
|
||||||
|
|
|
@ -75,7 +75,7 @@ protected:
|
||||||
private slots:
|
private slots:
|
||||||
/**
|
/**
|
||||||
* Shows the information for the item of the URL which has been provided by
|
* 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();
|
void showItemInfo();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue