Commit 7eb97335 authored by Laurent Montel's avatar Laurent Montel 😁

Don't create dialogbuttonbox in the tab

parent 40c70d17
......@@ -22,6 +22,7 @@
#include "settings.h"
#include <kconfigdialogmanager.h>
#include <klocalizedstring.h>
#include <QDialogButtonBox>
ConfigDialog::ConfigDialog(Settings *settings, QWidget *parent) :
QDialog(parent),
......@@ -40,9 +41,11 @@ ConfigDialog::ConfigDialog(Settings *settings, QWidget *parent) :
mManager = new KConfigDialogManager(this, settings);
mManager->updateWidgets();
QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok| QDialogButtonBox::Cancel, this);
mainLayout->addWidget(buttonBox);
// Set the button actions
connect(ui->buttonBox, &QDialogButtonBox::accepted, this, &ConfigDialog::accept);
connect(ui->buttonBox, &QDialogButtonBox::rejected, this, &ConfigDialog::reject);
connect(buttonBox, &QDialogButtonBox::accepted, this, &ConfigDialog::accept);
connect(buttonBox, &QDialogButtonBox::rejected, this, &ConfigDialog::reject);
// Load config dialog window size settings
KConfigGroup group(KSharedConfig::openConfig(), "ConfigDialog");
......
......@@ -95,13 +95,6 @@
</property>
</spacer>
</item>
<item>
<widget class="QDialogButtonBox" name="buttonBox">
<property name="standardButtons">
<set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
</property>
</widget>
</item>
</layout>
</widget>
</widget>
......
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