diff options
| author | Peter Penz <[email protected]> | 2009-06-29 19:32:39 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2009-06-29 19:32:39 +0000 |
| commit | c1a086da25e746ddf7dbe7f212d3cc61a9174035 (patch) | |
| tree | 68434866e3901365caf7b925d1e00afbd0862abd /src/dolphinviewautoscroller.h | |
| parent | 76d52a5ff1b3ec3f991ed71b322aa7bbcb2e4ef1 (diff) | |
Fixed issue that the scroll position is reset if the focus of the itemview changes.
BUG: 197951
svn path=/trunk/KDE/kdebase/apps/; revision=989236
Diffstat (limited to 'src/dolphinviewautoscroller.h')
| -rw-r--r-- | src/dolphinviewautoscroller.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/dolphinviewautoscroller.h b/src/dolphinviewautoscroller.h index 3827b2326..c95155f58 100644 --- a/src/dolphinviewautoscroller.h +++ b/src/dolphinviewautoscroller.h @@ -23,6 +23,7 @@ #include <QObject> class QAbstractItemView; +class QModelIndex; class QTimer; /** @@ -40,6 +41,13 @@ public: virtual ~DolphinViewAutoScroller(); bool isActive() const; + /** + * Must be invoked by the parent item view, when QAbstractItemView::currentChanged() + * has been called. Assures that the current item stays visible when it has been + * changed by the keyboard. + */ + void handleCurrentIndexChange(const QModelIndex& current, const QModelIndex& previous); + protected: virtual bool eventFilter(QObject* watched, QEvent* event); |
