Commit 95f4b6be authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Prepare to save "group"

parent db248dda
Pipeline #44390 passed with stage
in 9 minutes and 9 seconds
......@@ -53,7 +53,7 @@ void KDebugSettingsDialogTest::shouldHaveDefaultValue()
|| (objName == QLatin1String("environmentsettingsrulespage"));
QVERIFY(hasCorrectName);
}
auto saveAs = buttonBox->findChild<QPushButton *>(QStringLiteral("saveas_button"));
auto saveAs = buttonBox->findChild<QToolButton *>(QStringLiteral("saveas_button"));
QVERIFY(saveAs);
auto load = buttonBox->findChild<QToolButton *>(QStringLiteral("load_button"));
QVERIFY(load);
......
......@@ -72,10 +72,11 @@ KDebugSettingsDialog::KDebugSettingsDialog(QWidget *parent)
auto buttonBox = new QDialogButtonBox(QDialogButtonBox::RestoreDefaults | QDialogButtonBox::Ok | QDialogButtonBox::Cancel | QDialogButtonBox::Help | QDialogButtonBox::Apply, this);
buttonBox->setObjectName(QStringLiteral("buttonbox"));
QPushButton *saveAs = new QPushButton(i18n("Save As..."), this);
QToolButton *saveAs = new QToolButton(this);
saveAs->setText(i18n("Save As..."));
saveAs->setObjectName(QStringLiteral("saveas_button"));
buttonBox->addButton(saveAs, QDialogButtonBox::ActionRole);
connect(saveAs, &QPushButton::clicked, this, &KDebugSettingsDialog::slotSaveAs);
connect(saveAs, &QToolButton::clicked, this, &KDebugSettingsDialog::slotSaveAs);
QToolButton *load = new QToolButton(this);
load->setText(i18n("Load..."));
......
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