Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
PIM
PimCommon
Commits
10a36f3a
Commit
10a36f3a
authored
Oct 18, 2020
by
Laurent Montel
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix initialize variable
parent
d1fc1acc
Pipeline
#39706
passed with stage
in 8 minutes and 44 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
src/pimcommon/widgets/simplestringlisteditor.cpp
src/pimcommon/widgets/simplestringlisteditor.cpp
+4
-4
No files found.
src/pimcommon/widgets/simplestringlisteditor.cpp
View file @
10a36f3a
...
...
@@ -77,8 +77,8 @@ public:
QPushButton
*
mDownButton
=
nullptr
;
QPushButton
*
mCustomButton
=
nullptr
;
QVBoxLayout
*
mButtonLayout
=
nullptr
;
QString
mAddDialogLabel
;
QString
mRemoveDialogLabel
;
QString
mAddDialogLabel
=
i18n
(
"New entry:"
)
;
QString
mRemoveDialogLabel
=
i18n
(
"Do you want to remove selected text?"
)
;
};
SimpleStringListEditor
::
SimpleStringListEditor
(
QWidget
*
parent
,
ButtonCode
buttons
,
const
QString
&
addLabel
,
const
QString
&
removeLabel
,
const
QString
&
modifyLabel
,
const
QString
&
addDialogLabel
)
...
...
@@ -366,12 +366,12 @@ void SimpleStringListEditor::slotModify()
void
SimpleStringListEditor
::
setRemoveDialogLabel
(
const
QString
&
removeDialogLabel
)
{
d
->
mRemoveDialogLabel
=
removeDialogLabel
.
isEmpty
()
?
i18n
(
"Do you want to remove selected text?"
)
:
removeDialogLabel
;
d
->
mRemoveDialogLabel
=
removeDialogLabel
;
}
void
SimpleStringListEditor
::
setAddDialogLabel
(
const
QString
&
addDialogLabel
)
{
d
->
mAddDialogLabel
=
addDialogLabel
.
isEmpty
()
?
i18n
(
"New entry:"
)
:
addDialogLabel
;
d
->
mAddDialogLabel
=
addDialogLabel
;
}
void
SimpleStringListEditor
::
slotUp
()
...
...
Write
Preview
Markdown
is supported
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