From beeb81194cba3ecaa84c6e0e334a702036a26c1e Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Tue, 24 Feb 2009 08:25:01 +0000 Subject: Stupid me: The inconsistent behavior between QListView::scrollTo() and QTreeView::scrollTo() has been fixed in Qt 4.5 :-) I should have tested this _before_ committing the huge patch for bug 185191... So: * Remove the workaround in DolphinIconsView::scrollTo() to bypass an issue in Qt 4.4 (-> fixed in Qt 4.5) * Revert the "use the DolphinController"-parts of commit 930754 and just use QAbstractItemView::scrollTo() instead. CCBUG: 185191 svn path=/trunk/KDE/kdebase/apps/; revision=930777 --- src/dolphincolumnview.cpp | 8 -------- 1 file changed, 8 deletions(-) (limited to 'src/dolphincolumnview.cpp') diff --git a/src/dolphincolumnview.cpp b/src/dolphincolumnview.cpp index 16d72c0f0..4d180442b 100644 --- a/src/dolphincolumnview.cpp +++ b/src/dolphincolumnview.cpp @@ -59,8 +59,6 @@ DolphinColumnView::DolphinColumnView(QWidget* parent, DolphinController* control this, SLOT(setZoomLevel(int))); connect(controller, SIGNAL(activationChanged(bool)), this, SLOT(updateColumnsBackground(bool))); - connect(controller, SIGNAL(scrollToCurrentItem()), - this, SLOT(scrollToCurrentItem())); const DolphinView* view = controller->dolphinView(); connect(view, SIGNAL(sortingChanged(DolphinView::Sorting)), @@ -467,12 +465,6 @@ void DolphinColumnView::slotShowPreviewChanged() } } -void DolphinColumnView::scrollToCurrentItem() -{ - const QModelIndex activeIndex = activeColumn()->currentIndex(); - activeColumn()->scrollTo(activeIndex); -} - void DolphinColumnView::setActiveColumnIndex(int index) { if (m_index == index) { -- cgit v1.3