Skip to content
GitLab
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
930f27d6
Commit
930f27d6
authored
Dec 25, 2020
by
Laurent Montel
Browse files
GIT_SILENT: coding style
parent
6508ca9e
Pipeline
#45313
passed with stage
in 9 minutes and 11 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
autotests/groupmanagementwidgettest.cpp
View file @
930f27d6
...
...
@@ -28,7 +28,6 @@ QTEST_MAIN(GroupManagementWidgetTest)
GroupManagementWidgetTest
::
GroupManagementWidgetTest
(
QObject
*
parent
)
:
QObject
(
parent
)
{
}
void
GroupManagementWidgetTest
::
shouldHaveDefaultValues
()
...
...
src/groupmanagementwidget.cpp
View file @
930f27d6
...
...
@@ -47,7 +47,6 @@ GroupManagementWidget::GroupManagementWidget(QWidget *parent)
GroupManagementWidget
::~
GroupManagementWidget
()
{
}
void
GroupManagementWidget
::
slotCustomContextMenu
()
...
...
@@ -63,7 +62,7 @@ void GroupManagementWidget::slotCustomContextMenu()
const
QString
newName
=
QInputDialog
::
getText
(
this
,
i18n
(
"Rename Group"
),
i18n
(
"New Name:"
));
const
QString
newNameTrimmed
=
newName
.
trimmed
();
if
(
!
newNameTrimmed
.
isEmpty
())
{
const
QString
newFullPath
{
LoadGroupMenu
::
defaultWritableGroupPath
()
+
QLatin1Char
(
'/'
)
+
newNameTrimmed
};
const
QString
newFullPath
{
LoadGroupMenu
::
defaultWritableGroupPath
()
+
QLatin1Char
(
'/'
)
+
newNameTrimmed
};
if
(
!
f
.
rename
(
newFullPath
))
{
KMessageBox
::
error
(
this
,
i18n
(
"Impossible to rename group as
\'
%1
\'
"
,
newNameTrimmed
),
i18n
(
"Rename Group"
));
}
else
{
...
...
src/loadtoolbutton.cpp
View file @
930f27d6
...
...
@@ -53,4 +53,3 @@ QStringList LoadToolButton::groupNames() const
{
return
mLoadMenu
->
groupNames
();
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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