┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphiniconsview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/dolphiniconsview.cpp')
-rw-r--r--src/dolphiniconsview.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/dolphiniconsview.cpp b/src/dolphiniconsview.cpp
index 2e6d7dca6..f763c5476 100644
--- a/src/dolphiniconsview.cpp
+++ b/src/dolphiniconsview.cpp
@@ -135,6 +135,16 @@ DolphinIconsView::~DolphinIconsView()
m_categoryDrawer = 0;
}
+void DolphinIconsView::scrollTo(const QModelIndex& index, ScrollHint hint)
+{
+ Q_UNUSED(index);
+ Q_UNUSED(hint);
+ // Disable the QListView implementation of scrollTo(), as QAbstractItemView
+ // wants to scroll to the current index each time the layout has been changed.
+ // This becomes an issue when previews are loaded and the scrollbar is used: the
+ // scrollbar will always be reset to 0 on each new preview.
+}
+
void DolphinIconsView::dataChanged(const QModelIndex& topLeft, const QModelIndex& bottomRight)
{
KCategorizedView::dataChanged(topLeft, bottomRight);