diff options
| author | Simon Paul St James <[email protected]> | 2008-10-26 17:25:14 +0000 |
|---|---|---|
| committer | Simon Paul St James <[email protected]> | 2008-10-26 17:25:14 +0000 |
| commit | 382ac5f01d1f12da5980ae6873aa21d9b4be6d9b (patch) | |
| tree | 0fbad27d37099bbd37de42caa99d939f60c3d6c5 /src/dolphindetailsview.h | |
| parent | 0d8aebb7ba7d3e717171ac4d12b0c3800a4739d1 (diff) | |
When restoring the index, we don't necessarily want to scroll to it.
BUG:165551
svn path=/trunk/KDE/kdebase/apps/; revision=876177
Diffstat (limited to 'src/dolphindetailsview.h')
| -rw-r--r-- | src/dolphindetailsview.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/dolphindetailsview.h b/src/dolphindetailsview.h index 7b08e25a1..e974635e5 100644 --- a/src/dolphindetailsview.h +++ b/src/dolphindetailsview.h @@ -65,6 +65,7 @@ protected: virtual bool eventFilter(QObject* watched, QEvent* event); virtual QModelIndex indexAt (const QPoint& point) const; virtual void setSelection(const QRect& rect, QItemSelectionModel::SelectionFlags command); + virtual void scrollTo (const QModelIndex & index, ScrollHint hint = EnsureVisible); private slots: /** @@ -176,6 +177,7 @@ private: bool m_expandingTogglePressed : 1; bool m_keyPressed : 1; // true if a key is pressed currently; info used by currentChanged() bool m_useDefaultIndexAt : 1; // true, if QTreeView::indexAt() should be used + bool m_ignoreScrollTo : 1; // true if calls to scrollTo(...) should do nothing. DolphinController* m_controller; SelectionManager* m_selectionManager; |
