diff options
| author | Peter Penz <[email protected]> | 2008-02-21 17:34:14 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2008-02-21 17:34:14 +0000 |
| commit | e086d709d83243b31f96b2a68801f73f27885846 (patch) | |
| tree | babe4c423a1efa5d628a17c5925312fea99a9e29 /src/dolphindetailsview.cpp | |
| parent | 518372394da1f58da8e69acbb981a97db375e739 (diff) | |
stay consistent with the QListView behavior: changed the current index also changes the selection
svn path=/trunk/KDE/kdebase/apps/; revision=777817
Diffstat (limited to 'src/dolphindetailsview.cpp')
| -rw-r--r-- | src/dolphindetailsview.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/dolphindetailsview.cpp b/src/dolphindetailsview.cpp index c8c419f02..a725c06f3 100644 --- a/src/dolphindetailsview.cpp +++ b/src/dolphindetailsview.cpp @@ -394,6 +394,12 @@ void DolphinDetailsView::wheelEvent(QWheelEvent* event) QTreeView::wheelEvent(event); } +void DolphinDetailsView::currentChanged(const QModelIndex& current, const QModelIndex& previous) +{ + QTreeView::currentChanged(current, previous); + selectionModel()->select(current, QItemSelectionModel::ClearAndSelect); +} + void DolphinDetailsView::setSortIndicatorSection(DolphinView::Sorting sorting) { QHeaderView* headerView = header(); |
