From 225fd7073e1f8fc35405ad998dd9f382f61b5b4b Mon Sep 17 00:00:00 2001 From: Frank Reininghaus Date: Wed, 3 Aug 2011 18:54:10 +0200 Subject: 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. --- src/kitemviews/kitemlistcontroller.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/kitemviews/kitemlistcontroller.cpp') 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); -- cgit v1.3