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/dolphindetailsview.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/dolphindetailsview.cpp') diff --git a/src/dolphindetailsview.cpp b/src/dolphindetailsview.cpp index f4b8cd162..6b4ef44d0 100644 --- a/src/dolphindetailsview.cpp +++ b/src/dolphindetailsview.cpp @@ -424,6 +424,9 @@ void DolphinDetailsView::wheelEvent(QWheelEvent* event) void DolphinDetailsView::currentChanged(const QModelIndex& current, const QModelIndex& previous) { QTreeView::currentChanged(current, previous); + if (current.isValid()) { + scrollTo(current); + } // Stay consistent with QListView: When changing the current index by key presses, // also change the selection. -- cgit v1.3