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/dolphincolumnwidget.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/dolphincolumnwidget.cpp')
| -rw-r--r-- | src/dolphincolumnwidget.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/dolphincolumnwidget.cpp b/src/dolphincolumnwidget.cpp index 804ef8a32..a9b0b8244 100644 --- a/src/dolphincolumnwidget.cpp +++ b/src/dolphincolumnwidget.cpp @@ -447,6 +447,14 @@ void DolphinColumnWidget::selectionChanged(const QItemSelection& selected, const selModel->select(deselected, QItemSelectionModel::Deselect); } +void DolphinColumnWidget::currentChanged(const QModelIndex& current, const QModelIndex& previous) +{ + QListView::currentChanged(current, previous); + if (current.isValid()) { + scrollTo(current); + } +} + void DolphinColumnWidget::slotEntered(const QModelIndex& index) { m_view->m_controller->setItemView(this); |
