diff options
| author | Peter Penz <[email protected]> | 2009-08-30 19:17:08 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2009-08-30 19:17:08 +0000 |
| commit | a2a99926359cb58519b7814bba662f2afa4eee5d (patch) | |
| tree | dbcf3d58df13948998d94b356fd39641c8ee625f /src/viewextensionsfactory.cpp | |
| parent | 05762d42ea91ea034086c67099cf9208f86c00ff (diff) | |
Move the selection listener from DolphinView to ViewExtensionsFactory. The statusbar and information panel are now informed correctly about selection changes also when using the column view.
svn path=/trunk/KDE/kdebase/apps/; revision=1017497
Diffstat (limited to 'src/viewextensionsfactory.cpp')
| -rw-r--r-- | src/viewextensionsfactory.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/viewextensionsfactory.cpp b/src/viewextensionsfactory.cpp index 0974e2126..b8606d65b 100644 --- a/src/viewextensionsfactory.cpp +++ b/src/viewextensionsfactory.cpp @@ -110,6 +110,10 @@ ViewExtensionsFactory::ViewExtensionsFactory(QAbstractItemView* view, connect(dolphinView, SIGNAL(sortFoldersFirstChanged(bool)), this, SLOT(slotSortFoldersFirstChanged(bool))); + // inform the controller about selection changes + connect(view->selectionModel(), SIGNAL(selectionChanged(const QItemSelection&, const QItemSelection&)), + controller, SLOT(emitSelectionChanged())); + connect(controller, SIGNAL(nameFilterChanged(const QString&)), this, SLOT(slotNameFilterChanged(const QString&))); |
