diff options
| author | Peter Penz <[email protected]> | 2008-12-13 14:08:07 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2008-12-13 14:08:07 +0000 |
| commit | 99271699f305de4ad25a8c2a6dd7e7307cb61af7 (patch) | |
| tree | 8410decfe5f1aff0af84d4e127c1b3bd06235848 /src/dolphindetailsview.cpp | |
| parent | a86985b0b46ee97e7705242f3d5648f84425a87b (diff) | |
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: [email protected]
svn path=/trunk/KDE/kdebase/apps/; revision=896362
Diffstat (limited to 'src/dolphindetailsview.cpp')
| -rw-r--r-- | src/dolphindetailsview.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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. |
