Commit 79a7e688 authored by Laurent Montel's avatar Laurent Montel 😁

Add parent to qdialogbuttonbox

parent ec4ada9f
...@@ -126,7 +126,7 @@ void CollectionPropertiesDialog::Private::init() ...@@ -126,7 +126,7 @@ void CollectionPropertiesDialog::Private::init()
mTabWidget = new QTabWidget(q); mTabWidget = new QTabWidget(q);
mainLayout->addWidget(mTabWidget); mainLayout->addWidget(mTabWidget);
QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel); QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel, q);
QPushButton *okButton = buttonBox->button(QDialogButtonBox::Ok); QPushButton *okButton = buttonBox->button(QDialogButtonBox::Ok);
okButton->setDefault(true); okButton->setDefault(true);
okButton->setShortcut(Qt::CTRL | Qt::Key_Return); okButton->setShortcut(Qt::CTRL | Qt::Key_Return);
......
...@@ -72,7 +72,7 @@ SelfTestDialog::SelfTestDialog(QWidget *parent) ...@@ -72,7 +72,7 @@ SelfTestDialog::SelfTestDialog(QWidget *parent)
: QDialog(parent) : QDialog(parent)
{ {
setWindowTitle(i18n("Akonadi Server Self-Test")); setWindowTitle(i18n("Akonadi Server Self-Test"));
QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Close); QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Close, this);
QWidget *mainWidget = new QWidget(this); QWidget *mainWidget = new QWidget(this);
QVBoxLayout *mainLayout = new QVBoxLayout(this); QVBoxLayout *mainLayout = new QVBoxLayout(this);
mainLayout->addWidget(mainWidget); mainLayout->addWidget(mainWidget);
......
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