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
PIM
KDE PIM Add-ons
Commits
e66851e0
Commit
e66851e0
authored
Oct 06, 2020
by
Laurent Montel
😁
Browse files
Const'ify pointer
parent
09aa49e3
Pipeline
#36631
failed with stage
in 60 minutes and 15 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
plugins/messageviewerplugins/externalscriptplugin/viewerpluginexternalscriptparseargument.cpp
View file @
e66851e0
...
...
@@ -22,6 +22,7 @@ QStringList ViewerPluginExternalScriptParseArgument::parse(const QStringList &sc
}
QStringList
newArguments
;
newArguments
.
reserve
(
scriptArguments
.
count
());
for
(
const
QString
&
arg
:
scriptArguments
)
{
if
(
arg
==
QLatin1String
(
"%s"
))
{
const
KMime
::
Headers
::
Subject
*
const
subject
=
mMessage
?
mMessage
->
subject
(
false
)
:
nullptr
;
...
...
sieveeditor/emaillineedit/emaillineedit.cpp
View file @
e66851e0
...
...
@@ -22,19 +22,19 @@ K_PLUGIN_CLASS_WITH_JSON(EmailLineEdit, "emaillineedit.json")
EmailLineEdit
::
EmailLineEdit
(
QWidget
*
parent
,
const
QList
<
QVariant
>
&
)
:
KSieveUi
::
AbstractSelectEmailLineEdit
(
parent
)
,
mLineEdit
(
new
QLineEdit
(
this
))
,
mEmailButton
(
new
QToolButton
(
this
))
{
QHBoxLayout
*
mainLayout
=
new
QHBoxLayout
(
this
);
mainLayout
->
setObjectName
(
QStringLiteral
(
"mainlayout"
));
mainLayout
->
setContentsMargins
({});
mLineEdit
=
new
QLineEdit
(
this
);
mLineEdit
->
setObjectName
(
QStringLiteral
(
"lineedit"
));
mLineEdit
->
setClearButtonEnabled
(
true
);
mLineEdit
->
setPlaceholderText
(
i18n
(
"Click on button for selecting contacts..."
));
connect
(
mLineEdit
,
&
QLineEdit
::
textChanged
,
this
,
&
EmailLineEdit
::
slotTextChanged
);
mainLayout
->
addWidget
(
mLineEdit
);
mEmailButton
=
new
QToolButton
(
this
);
mEmailButton
->
setText
(
i18n
(
"..."
));
mEmailButton
->
setObjectName
(
QStringLiteral
(
"emailbutton"
));
mEmailButton
->
setToolTip
(
i18n
(
"Select Emails"
));
...
...
sieveeditor/emaillineedit/emaillineedit.h
View file @
e66851e0
...
...
@@ -31,8 +31,8 @@ private:
void
verifyAkonadiStatus
();
void
akonadiStateChanged
(
Akonadi
::
ServerManager
::
State
state
);
QString
mNegativeBackground
;
QLineEdit
*
mLineEdit
=
nullptr
;
QToolButton
*
mEmailButton
=
nullptr
;
QLineEdit
*
const
mLineEdit
;
QToolButton
*
const
mEmailButton
;
bool
mEmailIsValid
=
false
;
};
...
...
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