Commit 85998ee1 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

use auto directly here too

parent f80396b3
...@@ -36,7 +36,7 @@ ConfigureCustomSettingDialog::ConfigureCustomSettingDialog(QWidget *parent) ...@@ -36,7 +36,7 @@ ConfigureCustomSettingDialog::ConfigureCustomSettingDialog(QWidget *parent)
mCustomSettingWidget->setObjectName(QStringLiteral("customsettingwidget")); mCustomSettingWidget->setObjectName(QStringLiteral("customsettingwidget"));
mainLayout->addWidget(mCustomSettingWidget); mainLayout->addWidget(mCustomSettingWidget);
QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel, this); auto buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok | QDialogButtonBox::Cancel, this);
buttonBox->setObjectName(QStringLiteral("buttonbox")); buttonBox->setObjectName(QStringLiteral("buttonbox"));
connect(buttonBox, &QDialogButtonBox::accepted, this, &QDialog::accept); connect(buttonBox, &QDialogButtonBox::accepted, this, &QDialog::accept);
connect(buttonBox, &QDialogButtonBox::rejected, this, &QDialog::reject); connect(buttonBox, &QDialogButtonBox::rejected, this, &QDialog::reject);
......
...@@ -69,7 +69,7 @@ KDebugSettingsDialog::KDebugSettingsDialog(QWidget *parent) ...@@ -69,7 +69,7 @@ KDebugSettingsDialog::KDebugSettingsDialog(QWidget *parent)
mTabWidget->addTab(mEnvironmentSettingsRulesPage, i18n("Rules Settings With Environment Variable")); mTabWidget->addTab(mEnvironmentSettingsRulesPage, i18n("Rules Settings With Environment Variable"));
mTabWidget->setFocusPolicy(Qt::NoFocus); mTabWidget->setFocusPolicy(Qt::NoFocus);
QDialogButtonBox *buttonBox = new QDialogButtonBox(QDialogButtonBox::RestoreDefaults | QDialogButtonBox::Ok | QDialogButtonBox::Cancel | QDialogButtonBox::Help | QDialogButtonBox::Apply, this); auto buttonBox = new QDialogButtonBox(QDialogButtonBox::RestoreDefaults | QDialogButtonBox::Ok | QDialogButtonBox::Cancel | QDialogButtonBox::Help | QDialogButtonBox::Apply, this);
buttonBox->setObjectName(QStringLiteral("buttonbox")); buttonBox->setObjectName(QStringLiteral("buttonbox"));
QPushButton *saveAs = new QPushButton(i18n("Save As..."), this); QPushButton *saveAs = new QPushButton(i18n("Save As..."), this);
......
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