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
86ff5a00
Commit
86ff5a00
authored
Dec 29, 2020
by
Laurent Montel
😁
Browse files
Use auto directly
parent
dd4909a8
Pipeline
#45597
passed with stage
in 9 minutes and 53 seconds
Changes
7
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/configurecustomsettingwidget.cpp
View file @
86ff5a00
...
...
@@ -34,7 +34,7 @@ ConfigureCustomSettingWidget::ConfigureCustomSettingWidget(QWidget *parent)
{
auto
vbox
=
new
QVBoxLayout
(
this
);
QLabel
*
lab
=
new
QLabel
(
i18n
(
"Category:"
),
this
);
auto
lab
=
new
QLabel
(
i18n
(
"Category:"
),
this
);
lab
->
setObjectName
(
QStringLiteral
(
"category_label"
));
mCategoryLineEdit
=
new
KLineEdit
(
this
);
mCategoryLineEdit
->
setTrapReturnKey
(
true
);
...
...
src/customdebugsettingspage.cpp
View file @
86ff5a00
...
...
@@ -36,7 +36,7 @@ CustomDebugSettingsPage::CustomDebugSettingsPage(QWidget *parent)
{
auto
mainLayout
=
new
QVBoxLayout
(
this
);
QLabel
*
lab
=
new
QLabel
(
i18n
(
"Rules:"
),
this
);
auto
lab
=
new
QLabel
(
i18n
(
"Rules:"
),
this
);
lab
->
setObjectName
(
QStringLiteral
(
"custom_label"
));
mainLayout
->
addWidget
(
lab
);
...
...
src/environmentsettingsrulespage.cpp
View file @
86ff5a00
...
...
@@ -28,7 +28,7 @@ EnvironmentSettingsRulesPage::EnvironmentSettingsRulesPage(QWidget *parent)
:
QWidget
(
parent
)
{
auto
mainLayout
=
new
QVBoxLayout
(
this
);
QLabel
*
lab
=
new
QLabel
(
i18n
(
"Rules:"
),
this
);
auto
lab
=
new
QLabel
(
i18n
(
"Rules:"
),
this
);
lab
->
setObjectName
(
QStringLiteral
(
"label"
));
mRichTextEdit
=
new
EnvironmentPlainTextEdit
(
this
);
mRichTextEdit
->
setReadOnly
(
true
);
...
...
src/groupmanagementwidget.cpp
View file @
86ff5a00
...
...
@@ -101,7 +101,7 @@ void GroupManagementWidget::init()
return
;
}
for
(
const
QString
&
file
:
groups
)
{
QListWidgetItem
*
item
=
new
QListWidgetItem
(
file
,
mListWidget
);
auto
item
=
new
QListWidgetItem
(
file
,
mListWidget
);
const
QString
fullPath
=
groupPath
+
QLatin1Char
(
'/'
)
+
file
;
item
->
setData
(
FullPathRole
,
fullPath
);
}
...
...
src/kdebugsettingsdialog.cpp
View file @
86ff5a00
...
...
@@ -76,7 +76,7 @@ KDebugSettingsDialog::KDebugSettingsDialog(QWidget *parent)
auto
buttonBox
=
new
QDialogButtonBox
(
QDialogButtonBox
::
RestoreDefaults
|
QDialogButtonBox
::
Ok
|
QDialogButtonBox
::
Cancel
|
QDialogButtonBox
::
Help
|
QDialogButtonBox
::
Apply
,
this
);
buttonBox
->
setObjectName
(
QStringLiteral
(
"buttonbox"
));
SaveToolButton
*
saveAs
=
new
SaveToolButton
(
this
);
auto
saveAs
=
new
SaveToolButton
(
this
);
saveAs
->
setText
(
i18n
(
"Save As..."
));
saveAs
->
setObjectName
(
QStringLiteral
(
"saveas_button"
));
buttonBox
->
addButton
(
saveAs
,
QDialogButtonBox
::
ActionRole
);
...
...
@@ -91,7 +91,7 @@ KDebugSettingsDialog::KDebugSettingsDialog(QWidget *parent)
connect
(
mLoadToolButton
,
&
LoadToolButton
::
manageGroupRequested
,
this
,
&
KDebugSettingsDialog
::
slotManageGroup
);
connect
(
this
,
&
KDebugSettingsDialog
::
updateLoadGroupMenu
,
mLoadToolButton
,
&
LoadToolButton
::
updateLoadGroupMenu
);
QPushButton
*
insertCategories
=
new
QPushButton
(
i18n
(
"Insert..."
),
this
);
auto
insertCategories
=
new
QPushButton
(
i18n
(
"Insert..."
),
this
);
insertCategories
->
setObjectName
(
QStringLiteral
(
"insert_button"
));
buttonBox
->
addButton
(
insertCategories
,
QDialogButtonBox
::
ActionRole
);
connect
(
insertCategories
,
&
QPushButton
::
clicked
,
this
,
&
KDebugSettingsDialog
::
slotInsertCategories
);
...
...
src/loadtoolbutton.cpp
View file @
86ff5a00
...
...
@@ -28,7 +28,7 @@ LoadToolButton::LoadToolButton(QWidget *parent)
{
setPopupMode
(
QToolButton
::
InstantPopup
);
setText
(
i18n
(
"Load..."
));
QMenu
*
mainMenu
=
new
QMenu
(
this
);
auto
mainMenu
=
new
QMenu
(
this
);
setMenu
(
mainMenu
);
QAction
*
act
=
mainMenu
->
addAction
(
i18n
(
"Load From File..."
));
...
...
src/savetoolbutton.cpp
View file @
86ff5a00
...
...
@@ -27,7 +27,7 @@ SaveToolButton::SaveToolButton(QWidget *parent)
{
setText
(
i18n
(
"Save As..."
));
setPopupMode
(
QToolButton
::
InstantPopup
);
QMenu
*
mainMenu
=
new
QMenu
(
this
);
auto
mainMenu
=
new
QMenu
(
this
);
setMenu
(
mainMenu
);
QAction
*
act
=
mainMenu
->
addAction
(
i18n
(
"Save As File..."
));
...
...
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