aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEike Ziller <eike.ziller@qt.io>2018-03-16 09:51:42 +0100
committerEike Ziller <eike.ziller@qt.io>2018-03-16 09:47:11 +0000
commit6e7540988e707a04c9b1de16c57b77bc5fa20cba (patch)
treed706c8be3a5a0445299c8ae3d6d03b02b731589d /src
parent957e860ddac8fd02ab3180578e99ec333b0f0f1d (diff)
Fix scrolling in file system view
The style can set the scroll bar to scroll by item, which breaks the automatic scrolling that adapts for size changes of the bread crumbs. Force the tree view to allow pixel-exact scrolling. Task-number: QTCREATORBUG-19800 Change-Id: If61640a1b6e3b4a777269fb129bdc2689bad19c2 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'src')
-rw-r--r--src/plugins/projectexplorer/foldernavigationwidget.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/projectexplorer/foldernavigationwidget.cpp b/src/plugins/projectexplorer/foldernavigationwidget.cpp
index f4132351ab..ebbc64d40e 100644
--- a/src/plugins/projectexplorer/foldernavigationwidget.cpp
+++ b/src/plugins/projectexplorer/foldernavigationwidget.cpp
@@ -270,6 +270,7 @@ FolderNavigationWidget::FolderNavigationWidget(QWidget *parent) : QWidget(parent
setHiddenFilesFilter(false);
m_showBreadCrumbsAction->setCheckable(true);
setShowBreadCrumbs(true);
+ m_listView->setVerticalScrollMode(QAbstractItemView::ScrollPerPixel);
m_listView->setIconSize(QSize(16,16));
m_listView->setModel(m_fileSystemModel);
m_listView->setEditTriggers(QAbstractItemView::NoEditTriggers);