Fix filter inconsistency (#2480)
This commit is contained in:
@@ -21,7 +21,7 @@ ChannelFilterEditorDialog::ChannelFilterEditorDialog(QWidget *parent)
|
|||||||
auto vbox = new QVBoxLayout(this);
|
auto vbox = new QVBoxLayout(this);
|
||||||
auto filterVbox = new QVBoxLayout;
|
auto filterVbox = new QVBoxLayout;
|
||||||
auto buttonBox = new QHBoxLayout;
|
auto buttonBox = new QHBoxLayout;
|
||||||
auto okButton = new QPushButton("OK");
|
auto okButton = new QPushButton("Ok");
|
||||||
auto cancelButton = new QPushButton("Cancel");
|
auto cancelButton = new QPushButton("Cancel");
|
||||||
|
|
||||||
okButton->setDefault(true);
|
okButton->setDefault(true);
|
||||||
@@ -35,8 +35,8 @@ ChannelFilterEditorDialog::ChannelFilterEditorDialog(QWidget *parent)
|
|||||||
|
|
||||||
buttonBox->addWidget(helpLabel);
|
buttonBox->addWidget(helpLabel);
|
||||||
buttonBox->addStretch(1);
|
buttonBox->addStretch(1);
|
||||||
buttonBox->addWidget(cancelButton);
|
|
||||||
buttonBox->addWidget(okButton);
|
buttonBox->addWidget(okButton);
|
||||||
|
buttonBox->addWidget(cancelButton);
|
||||||
|
|
||||||
QObject::connect(okButton, &QAbstractButton::clicked, [this] {
|
QObject::connect(okButton, &QAbstractButton::clicked, [this] {
|
||||||
this->accept();
|
this->accept();
|
||||||
|
|||||||
@@ -11,15 +11,15 @@ SelectChannelFiltersDialog::SelectChannelFiltersDialog(
|
|||||||
auto vbox = new QVBoxLayout(this);
|
auto vbox = new QVBoxLayout(this);
|
||||||
auto itemVbox = new QVBoxLayout;
|
auto itemVbox = new QVBoxLayout;
|
||||||
auto buttonBox = new QHBoxLayout;
|
auto buttonBox = new QHBoxLayout;
|
||||||
auto okButton = new QPushButton("OK");
|
auto okButton = new QPushButton("Ok");
|
||||||
auto cancelButton = new QPushButton("Cancel");
|
auto cancelButton = new QPushButton("Cancel");
|
||||||
|
|
||||||
vbox->addLayout(itemVbox);
|
vbox->addLayout(itemVbox);
|
||||||
vbox->addLayout(buttonBox);
|
vbox->addLayout(buttonBox);
|
||||||
|
|
||||||
buttonBox->addStretch(1);
|
buttonBox->addStretch(1);
|
||||||
buttonBox->addWidget(cancelButton);
|
|
||||||
buttonBox->addWidget(okButton);
|
buttonBox->addWidget(okButton);
|
||||||
|
buttonBox->addWidget(cancelButton);
|
||||||
|
|
||||||
QObject::connect(okButton, &QAbstractButton::clicked, [this] {
|
QObject::connect(okButton, &QAbstractButton::clicked, [this] {
|
||||||
this->accept();
|
this->accept();
|
||||||
|
|||||||
Reference in New Issue
Block a user