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
85998ee1
Commit
85998ee1
authored
Dec 17, 2020
by
Laurent Montel
😁
Browse files
use auto directly here too
parent
f80396b3
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/configurecustomsettingdialog.cpp
View file @
85998ee1
...
...
@@ -36,7 +36,7 @@ ConfigureCustomSettingDialog::ConfigureCustomSettingDialog(QWidget *parent)
mCustomSettingWidget
->
setObjectName
(
QStringLiteral
(
"customsettingwidget"
));
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"
));
connect
(
buttonBox
,
&
QDialogButtonBox
::
accepted
,
this
,
&
QDialog
::
accept
);
connect
(
buttonBox
,
&
QDialogButtonBox
::
rejected
,
this
,
&
QDialog
::
reject
);
...
...
src/kdebugsettingsdialog.cpp
View file @
85998ee1
...
...
@@ -69,7 +69,7 @@ KDebugSettingsDialog::KDebugSettingsDialog(QWidget *parent)
mTabWidget
->
addTab
(
mEnvironmentSettingsRulesPage
,
i18n
(
"Rules Settings With Environment Variable"
));
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"
));
QPushButton
*
saveAs
=
new
QPushButton
(
i18n
(
"Save As..."
),
this
);
...
...
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