diff options
| -rw-r--r-- | src/yuzu/util/sequence_dialog/sequence_dialog.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/yuzu/util/sequence_dialog/sequence_dialog.cpp b/src/yuzu/util/sequence_dialog/sequence_dialog.cpp index 16a5473ca..bb5f74ec4 100644 --- a/src/yuzu/util/sequence_dialog/sequence_dialog.cpp +++ b/src/yuzu/util/sequence_dialog/sequence_dialog.cpp | |||
| @@ -9,15 +9,19 @@ | |||
| 9 | 9 | ||
| 10 | SequenceDialog::SequenceDialog(QWidget* parent) : QDialog(parent) { | 10 | SequenceDialog::SequenceDialog(QWidget* parent) : QDialog(parent) { |
| 11 | setWindowTitle(tr("Enter a hotkey")); | 11 | setWindowTitle(tr("Enter a hotkey")); |
| 12 | auto* layout = new QVBoxLayout(this); | 12 | setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint); |
| 13 | |||
| 13 | key_sequence = new QKeySequenceEdit; | 14 | key_sequence = new QKeySequenceEdit; |
| 14 | layout->addWidget(key_sequence); | 15 | |
| 15 | auto* buttons = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel); | 16 | auto* const buttons = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel); |
| 16 | buttons->setCenterButtons(true); | 17 | buttons->setCenterButtons(true); |
| 18 | |||
| 19 | auto* const layout = new QVBoxLayout(this); | ||
| 20 | layout->addWidget(key_sequence); | ||
| 17 | layout->addWidget(buttons); | 21 | layout->addWidget(buttons); |
| 22 | |||
| 18 | connect(buttons, &QDialogButtonBox::accepted, this, &QDialog::accept); | 23 | connect(buttons, &QDialogButtonBox::accepted, this, &QDialog::accept); |
| 19 | connect(buttons, &QDialogButtonBox::rejected, this, &QDialog::reject); | 24 | connect(buttons, &QDialogButtonBox::rejected, this, &QDialog::reject); |
| 20 | setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint); | ||
| 21 | } | 25 | } |
| 22 | 26 | ||
| 23 | SequenceDialog::~SequenceDialog() = default; | 27 | SequenceDialog::~SequenceDialog() = default; |