From 011bc5ce330c79f95deaa811a61b08566c8837c2 Mon Sep 17 00:00:00 2001 From: Alessandro Portale Date: Thu, 4 Mar 2021 18:00:02 +0100 Subject: [PATCH] Core: Hide the horizontal scrollbar in WelcomePage The horizontal scrollbar appears with some certain window sizes. That is most likely due to the column count calculation not taking the vertical scroll bar width into consideration. This change simply prevents the unneeded horizontal scrolbar from sporadically popping up. Change-Id: I2fb4aac0921f4a6627058d3e73af22c1fe6db3b9 Reviewed-by: Eike Ziller --- src/plugins/coreplugin/welcomepagehelper.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/plugins/coreplugin/welcomepagehelper.cpp b/src/plugins/coreplugin/welcomepagehelper.cpp index e7b183a964b..a6fd69aed10 100644 --- a/src/plugins/coreplugin/welcomepagehelper.cpp +++ b/src/plugins/coreplugin/welcomepagehelper.cpp @@ -84,6 +84,7 @@ GridView::GridView(QWidget *parent) setSelectionMode(QAbstractItemView::NoSelection); setFrameShape(QFrame::NoFrame); setGridStyle(Qt::NoPen); + setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff); QPalette pal; pal.setColor(QPalette::Base, themeColor(Theme::Welcome_BackgroundColor));