From c1a086da25e746ddf7dbe7f212d3cc61a9174035 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Mon, 29 Jun 2009 19:32:39 +0000 Subject: 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 --- src/dolphinviewautoscroller.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/dolphinviewautoscroller.h') 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 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); -- cgit v1.3