From 4d4f3e6798787631ebb0b217734a96942e502d57 Mon Sep 17 00:00:00 2001 From: efferre79 Date: Thu, 2 May 2024 12:30:27 +0200 Subject: [PATCH] add horizontal scrollbar to startpage On systems with legacy monitors the display might be not as large as needed to display completely the start page. In that case the user is forced to use the keyboard to scroll horizontally the start page. --- src/Mod/Start/Gui/StartView.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Mod/Start/Gui/StartView.cpp b/src/Mod/Start/Gui/StartView.cpp index 983caeccb7..bac26ed6c3 100644 --- a/src/Mod/Start/Gui/StartView.cpp +++ b/src/Mod/Start/Gui/StartView.cpp @@ -114,7 +114,7 @@ StartView::StartView(Gui::Document* pcDocument, QWidget* parent) auto scrolledWidget = gsl::owner(new QWidget(this)); _contents->setWidget(scrolledWidget); - _contents->setHorizontalScrollBarPolicy(Qt::ScrollBarPolicy::ScrollBarAlwaysOff); + _contents->setHorizontalScrollBarPolicy(Qt::ScrollBarPolicy::ScrollBarAsNeeded); _contents->setVerticalScrollBarPolicy(Qt::ScrollBarPolicy::ScrollBarAsNeeded); _contents->setWidgetResizable(true); auto layout = gsl::owner(new QVBoxLayout(scrolledWidget));