From 99271699f305de4ad25a8c2a6dd7e7307cb61af7 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Sat, 13 Dec 2008 14:08:07 +0000 Subject: Handling the key events for autoscrolling in DolphinViewAutoscroller does not work good enough (e. g. when letters are pressed, the current index might change too). Revert to Frank Reininhaus' original patch to fix this issue :-) CCMAIL: frank78ac@googlemail.com svn path=/trunk/KDE/kdebase/apps/; revision=896362 --- src/dolphiniconsview.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/dolphiniconsview.cpp') diff --git a/src/dolphiniconsview.cpp b/src/dolphiniconsview.cpp index e1ae04adf..2e43656ba 100644 --- a/src/dolphiniconsview.cpp +++ b/src/dolphiniconsview.cpp @@ -314,6 +314,14 @@ void DolphinIconsView::leaveEvent(QEvent* event) m_controller->emitViewportEntered(); } +void DolphinIconsView::currentChanged(const QModelIndex& current, const QModelIndex& previous) +{ + KCategorizedView::currentChanged(current, previous); + if (current.isValid()) { + scrollTo(current); + } +} + void DolphinIconsView::slotShowPreviewChanged() { const DolphinView* view = m_controller->dolphinView(); -- cgit v1.3