Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Utilities
KDebugSettings
Commits
95f4b6be
Commit
95f4b6be
authored
Dec 17, 2020
by
Laurent Montel
😁
Browse files
Prepare to save "group"
parent
db248dda
Pipeline
#44390
passed with stage
in 9 minutes and 9 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
autotests/kdebugsettingsdialogtest.cpp
View file @
95f4b6be
...
...
@@ -53,7 +53,7 @@ void KDebugSettingsDialogTest::shouldHaveDefaultValue()
||
(
objName
==
QLatin1String
(
"environmentsettingsrulespage"
));
QVERIFY
(
hasCorrectName
);
}
auto
saveAs
=
buttonBox
->
findChild
<
Q
Push
Button
*>
(
QStringLiteral
(
"saveas_button"
));
auto
saveAs
=
buttonBox
->
findChild
<
Q
Tool
Button
*>
(
QStringLiteral
(
"saveas_button"
));
QVERIFY
(
saveAs
);
auto
load
=
buttonBox
->
findChild
<
QToolButton
*>
(
QStringLiteral
(
"load_button"
));
QVERIFY
(
load
);
...
...
src/kdebugsettingsdialog.cpp
View file @
95f4b6be
...
...
@@ -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
,
&
Q
Push
Button
::
clicked
,
this
,
&
KDebugSettingsDialog
::
slotSaveAs
);
connect
(
saveAs
,
&
Q
Tool
Button
::
clicked
,
this
,
&
KDebugSettingsDialog
::
slotSaveAs
);
QToolButton
*
load
=
new
QToolButton
(
this
);
load
->
setText
(
i18n
(
"Load..."
));
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment