From 690e3240eb7ffbb15072c623eb5ac69c8b696949 Mon Sep 17 00:00:00 2001 From: Uwe Date: Thu, 31 Mar 2022 04:15:28 +0200 Subject: [PATCH] [Gui] remove misleading button from About Dialog - the help button in the title bar had no function but I remember people asked in the forum what it does. Since we don't use it, remove it --- src/Gui/Splashscreen.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Gui/Splashscreen.cpp b/src/Gui/Splashscreen.cpp index deb6e922d7..105c581838 100644 --- a/src/Gui/Splashscreen.cpp +++ b/src/Gui/Splashscreen.cpp @@ -223,6 +223,10 @@ AboutDialog::AboutDialog(bool showLic, QWidget* parent) setModal(true); ui->setupUi(this); + + // remove the automatic help button in dialog title since we don't use it + setWindowFlag(Qt::WindowContextHelpButtonHint, false); + layout()->setSizeConstraint(QLayout::SetFixedSize); QRect rect = QApplication::primaryScreen()->availableGeometry();