Commit 32c75fdc authored by Laurent Montel's avatar Laurent Montel 😁

Assign parent directly

parent 951e9e1b
......@@ -36,9 +36,8 @@ SieveEditorConfigureDialog::SieveEditorConfigureDialog(QWidget *parent)
: QDialog(parent)
{
setWindowTitle(i18n("Configure"));
QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel);
QVBoxLayout *mainLayout = new QVBoxLayout;
setLayout(mainLayout);
QVBoxLayout *mainLayout = new QVBoxLayout(this);
QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel, this);
QPushButton *okButton = buttonBox->button(QDialogButtonBox::Ok);
okButton->setDefault(true);
okButton->setShortcut(Qt::CTRL | Qt::Key_Return);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment