┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/viewextensionsfactory.cpp
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2009-08-30 19:17:08 +0000
committerPeter Penz <[email protected]>2009-08-30 19:17:08 +0000
commita2a99926359cb58519b7814bba662f2afa4eee5d (patch)
treedbcf3d58df13948998d94b356fd39641c8ee625f /src/viewextensionsfactory.cpp
parent05762d42ea91ea034086c67099cf9208f86c00ff (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.cpp4
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&)));