From 6e7540988e707a04c9b1de16c57b77bc5fa20cba Mon Sep 17 00:00:00 2001 From: Eike Ziller Date: Fri, 16 Mar 2018 09:51:42 +0100 Subject: [PATCH] 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 --- src/plugins/projectexplorer/foldernavigationwidget.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/plugins/projectexplorer/foldernavigationwidget.cpp b/src/plugins/projectexplorer/foldernavigationwidget.cpp index f4132351abe..ebbc64d40ed 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);