┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/kitemviews/kitemlistcontroller.cpp
diff options
context:
space:
mode:
authorFrank Reininghaus <[email protected]>2011-08-03 18:54:10 +0200
committerFrank Reininghaus <[email protected]>2011-08-04 09:52:45 +0200
commit225fd7073e1f8fc35405ad998dd9f382f61b5b4b (patch)
treecaeb678542c4a24789a733ae52231c92e69e973b /src/kitemviews/kitemlistcontroller.cpp
parente326199727328bf8e130632361f697e7a350fd9b (diff)
Underline the current item in KFileItemListView
It still looks a bit ugly, but at least we can see the current item now :-) It is only updated by mouse clicks at the moment.
Diffstat (limited to 'src/kitemviews/kitemlistcontroller.cpp')
-rw-r--r--src/kitemviews/kitemlistcontroller.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/kitemviews/kitemlistcontroller.cpp b/src/kitemviews/kitemlistcontroller.cpp
index aab40631e..2d72a96de 100644
--- a/src/kitemviews/kitemlistcontroller.cpp
+++ b/src/kitemviews/kitemlistcontroller.cpp
@@ -82,9 +82,14 @@ void KItemListController::setView(KItemListView* view)
KItemListView* oldView = m_view;
m_view = view;
+ if (oldView) {
+ disconnect(m_selectionManager, SIGNAL(currentChanged(int,int)), oldView, SLOT(currentChanged(int,int)));
+ }
+
if (m_view) {
m_view->setController(this);
m_view->setModel(m_model);
+ connect(m_selectionManager, SIGNAL(currentChanged(int,int)), m_view, SLOT(currentChanged(int,int)));
}
emit viewChanged(m_view, oldView);