main: Globally disable the "?" button on dialogs

Sets the AA_DisableWindowContextHelpButton attribute to disable this useless button globally.
This commit is contained in:
Morph
2023-01-25 01:11:20 -05:00
parent 44b981fd3e
commit cdfb3795af
10 changed files with 8 additions and 17 deletions

View File

@ -49,9 +49,8 @@ MicroProfileDialog::MicroProfileDialog(QWidget* parent) : QWidget(parent, Qt::Di
setObjectName(QStringLiteral("MicroProfile"));
setWindowTitle(tr("&MicroProfile"));
resize(1000, 600);
// Remove the "?" button from the titlebar and enable the maximize button
setWindowFlags((windowFlags() & ~Qt::WindowContextHelpButtonHint) |
Qt::WindowMaximizeButtonHint);
// Enable the maximize button
setWindowFlags(windowFlags() | Qt::WindowMaximizeButtonHint);
#if MICROPROFILE_ENABLED