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
KMail
Commits
997ceedb
Commit
997ceedb
authored
Nov 26, 2021
by
Laurent Montel
😁
Browse files
Const'ify more pointer
parent
4a2c01d2
Pipeline
#101039
passed with stage
in 24 minutes and 33 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/editor/kmcomposerwin.cpp
View file @
997ceedb
...
...
@@ -241,6 +241,8 @@ KMComposerWin::KMComposerWin(const KMime::Message::Ptr &aMsg,
,
mAttachmentMissing
(
new
AttachmentMissingWarning
(
this
))
,
mExternalEditorWarning
(
new
ExternalEditorWarning
(
this
))
,
mTooMyRecipientWarning
(
new
TooManyRecipientsWarning
(
this
))
,
mCryptoStateIndicatorWidget
(
new
CryptoStateIndicatorWidget
(
this
))
,
mPotentialPhishingEmailWarning
(
new
PotentialPhishingEmailWarning
(
this
))
,
mIncorrectIdentityFolderWarning
(
new
IncorrectIdentityFolderWarning
(
this
))
,
mPluginEditorManagerInterface
(
new
KMailPluginEditorManagerInterface
(
this
))
,
mPluginEditorGrammarManagerInterface
(
new
KMailPluginGrammarEditorManagerInterface
(
this
))
...
...
@@ -351,13 +353,11 @@ KMComposerWin::KMComposerWin(const KMime::Message::Ptr &aMsg,
mSplitter
->
addWidget
(
mSnippetSplitter
);
auto
editorAndCryptoStateIndicators
=
new
QWidget
(
mSplitter
);
mCryptoStateIndicatorWidget
=
new
CryptoStateIndicatorWidget
(
this
);
mCryptoStateIndicatorWidget
->
setShowAlwaysIndicator
(
KMailSettings
::
self
()
->
showCryptoLabelIndicator
());
auto
vbox
=
new
QVBoxLayout
(
editorAndCryptoStateIndicators
);
vbox
->
setContentsMargins
({});
mPotentialPhishingEmailWarning
=
new
PotentialPhishingEmailWarning
(
this
);
connect
(
mPotentialPhishingEmailWarning
,
&
PotentialPhishingEmailWarning
::
sendNow
,
this
,
&
KMComposerWin
::
slotCheckSendNowStep2
);
vbox
->
addWidget
(
mPotentialPhishingEmailWarning
);
...
...
src/editor/kmcomposerwin.h
View file @
997ceedb
...
...
@@ -684,13 +684,13 @@ private:
bool
mPreventFccOverwrite
=
false
;
bool
mCheckForForgottenAttachments
=
true
;
bool
mWasModified
=
false
;
CryptoStateIndicatorWidget
*
mCryptoStateIndicatorWidget
=
nullptr
;
CryptoStateIndicatorWidget
*
const
mCryptoStateIndicatorWidget
;
bool
mSendNowByShortcutUsed
=
false
;
KSplitterCollapserButton
*
mSnippetSplitterCollapser
=
nullptr
;
KToggleAction
*
mFollowUpToggleAction
=
nullptr
;
MessageComposer
::
StatusBarLabelToggledState
*
mStatusBarLabelToggledOverrideMode
=
nullptr
;
MessageComposer
::
StatusBarLabelToggledState
*
mStatusBarLabelSpellCheckingChangeMode
=
nullptr
;
PotentialPhishingEmailWarning
*
mPotentialPhishingEmailWarning
=
nullptr
;
PotentialPhishingEmailWarning
*
const
mPotentialPhishingEmailWarning
;
IncorrectIdentityFolderWarning
*
const
mIncorrectIdentityFolderWarning
;
KMComposerGlobalAction
*
mGlobalAction
=
nullptr
;
KPIMTextEdit
::
RichTextEditorWidget
*
mRichTextEditorwidget
=
nullptr
;
...
...
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