diff options
author | Morph <39850852+Morph1984@users.noreply.github.com> | 2023-01-25 01:11:20 -0500 |
---|---|---|
committer | Morph <39850852+Morph1984@users.noreply.github.com> | 2023-01-25 01:12:50 -0500 |
commit | cdfb3795afa7f9f86f1dca35a424b25115e10f37 (patch) | |
tree | f7d728acfb66a08c8e94aecf659bf9c279cb72fb /src/yuzu/util | |
parent | 44b981fd3eb3db5c15bcc24e61bae45607223ee6 (diff) |
main: Globally disable the "?" button on dialogs
Sets the AA_DisableWindowContextHelpButton attribute to disable this useless button globally.
Diffstat (limited to 'src/yuzu/util')
-rw-r--r-- | src/yuzu/util/limitable_input_dialog.cpp | 2 | ||||
-rw-r--r-- | src/yuzu/util/sequence_dialog/sequence_dialog.cpp | 1 |
2 files changed, 0 insertions, 3 deletions
diff --git a/src/yuzu/util/limitable_input_dialog.cpp b/src/yuzu/util/limitable_input_dialog.cpp index bbb370595..5f6a9c193 100644 --- a/src/yuzu/util/limitable_input_dialog.cpp +++ b/src/yuzu/util/limitable_input_dialog.cpp @@ -16,8 +16,6 @@ LimitableInputDialog::LimitableInputDialog(QWidget* parent) : QDialog{parent} { LimitableInputDialog::~LimitableInputDialog() = default; void LimitableInputDialog::CreateUI() { - setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint); - text_label = new QLabel(this); text_entry = new QLineEdit(this); text_label_invalid = new QLabel(this); diff --git a/src/yuzu/util/sequence_dialog/sequence_dialog.cpp b/src/yuzu/util/sequence_dialog/sequence_dialog.cpp index 4b10fa517..1670aa596 100644 --- a/src/yuzu/util/sequence_dialog/sequence_dialog.cpp +++ b/src/yuzu/util/sequence_dialog/sequence_dialog.cpp @@ -8,7 +8,6 @@ SequenceDialog::SequenceDialog(QWidget* parent) : QDialog(parent) { setWindowTitle(tr("Enter a hotkey")); - setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint); key_sequence = new QKeySequenceEdit; |