mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-11-24 02:25:43 +01:00
sequence_dialog: Remove unnecessary horizontal specifier
QDialogButtonBoxes are horizontal by default.
This commit is contained in:
parent
e86d2e2e5b
commit
9218e347cd
@ -12,8 +12,7 @@ SequenceDialog::SequenceDialog(QWidget* parent) : QDialog(parent) {
|
|||||||
auto* layout = new QVBoxLayout(this);
|
auto* layout = new QVBoxLayout(this);
|
||||||
key_sequence = new QKeySequenceEdit;
|
key_sequence = new QKeySequenceEdit;
|
||||||
layout->addWidget(key_sequence);
|
layout->addWidget(key_sequence);
|
||||||
auto* buttons =
|
auto* buttons = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel);
|
||||||
new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel, Qt::Horizontal);
|
|
||||||
buttons->setCenterButtons(true);
|
buttons->setCenterButtons(true);
|
||||||
layout->addWidget(buttons);
|
layout->addWidget(buttons);
|
||||||
connect(buttons, &QDialogButtonBox::accepted, this, &QDialog::accept);
|
connect(buttons, &QDialogButtonBox::accepted, this, &QDialog::accept);
|
||||||
|
Loading…
Reference in New Issue
Block a user