aboutsummaryrefslogtreecommitdiff
path: root/src/yuzu/debugger/profiler.cpp
diff options
context:
space:
mode:
authorMorph <39850852+Morph1984@users.noreply.github.com>2023-01-25 01:11:20 -0500
committerMorph <39850852+Morph1984@users.noreply.github.com>2023-01-25 01:12:50 -0500
commitaeada1616aeb30380e8857dceb86582b5bd7aaab (patch)
treef7d728acfb66a08c8e94aecf659bf9c279cb72fb /src/yuzu/debugger/profiler.cpp
parentb292986fc58ef5fd2388e94d52c52cec1827ed2f (diff)
main: Globally disable the "?" button on dialogs
Sets the AA_DisableWindowContextHelpButton attribute to disable this useless button globally.
Diffstat (limited to 'src/yuzu/debugger/profiler.cpp')
-rw-r--r--src/yuzu/debugger/profiler.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/yuzu/debugger/profiler.cpp b/src/yuzu/debugger/profiler.cpp
index d3e2d3c122..493ee0b178 100644
--- a/src/yuzu/debugger/profiler.cpp
+++ b/src/yuzu/debugger/profiler.cpp
@@ -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