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
5930caf3
Commit
5930caf3
authored
Sep 24, 2021
by
Laurent Montel
😁
Browse files
Const'ify pointer
parent
3ccf1aaa
Pipeline
#82488
passed with stage
in 26 minutes and 10 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/messageactions.cpp
View file @
5930caf3
...
...
@@ -62,7 +62,12 @@ MessageActions::MessageActions(KActionCollection *ac, QWidget *parent)
,
mReplyAction
(
new
QAction
(
QIcon
::
fromTheme
(
QStringLiteral
(
"mail-reply-sender"
)),
i18n
(
"&Reply..."
),
this
))
,
mReplyAllAction
(
new
QAction
(
QIcon
::
fromTheme
(
QStringLiteral
(
"mail-reply-all"
)),
i18n
(
"Reply to &All..."
),
this
))
,
mReplyAuthorAction
(
new
QAction
(
QIcon
::
fromTheme
(
QStringLiteral
(
"mail-reply-sender"
)),
i18n
(
"Reply to A&uthor..."
),
this
))
,
mReplyListAction
(
new
QAction
(
QIcon
::
fromTheme
(
QStringLiteral
(
"mail-reply-list"
)),
i18n
(
"Reply to Mailing-&List..."
),
this
))
,
mNoQuoteReplyAction
(
new
QAction
(
i18n
(
"Reply Without &Quote..."
),
this
))
,
mStatusMenu
(
new
KActionMenu
(
i18n
(
"Mar&k Message"
),
this
))
,
mListFilterAction
(
new
QAction
(
i18n
(
"Filter on Mailing-&List..."
),
this
))
,
mWebShortcutMenuManager
(
new
KIO
::
KUriFilterSearchProviderActions
(
this
))
{
ac
->
addAction
(
QStringLiteral
(
"message_reply_menu"
),
mReplyActionMenu
);
connect
(
mReplyActionMenu
,
&
KActionMenu
::
triggered
,
this
,
&
MessageActions
::
slotReplyToMsg
);
...
...
@@ -82,23 +87,19 @@ MessageActions::MessageActions(KActionCollection *ac, QWidget *parent)
connect
(
mReplyAllAction
,
&
QAction
::
triggered
,
this
,
&
MessageActions
::
slotReplyAllToMsg
);
mReplyActionMenu
->
addAction
(
mReplyAllAction
);
mReplyListAction
=
new
QAction
(
QIcon
::
fromTheme
(
QStringLiteral
(
"mail-reply-list"
)),
i18n
(
"Reply to Mailing-&List..."
),
this
);
ac
->
addAction
(
QStringLiteral
(
"reply_list"
),
mReplyListAction
);
ac
->
setDefaultShortcut
(
mReplyListAction
,
Qt
::
Key_L
);
connect
(
mReplyListAction
,
&
QAction
::
triggered
,
this
,
&
MessageActions
::
slotReplyListToMsg
);
mReplyActionMenu
->
addAction
(
mReplyListAction
);
mNoQuoteReplyAction
=
new
QAction
(
i18n
(
"Reply Without &Quote..."
),
this
);
ac
->
addAction
(
QStringLiteral
(
"noquotereply"
),
mNoQuoteReplyAction
);
ac
->
setDefaultShortcut
(
mNoQuoteReplyAction
,
Qt
::
SHIFT
|
Qt
::
Key_R
);
connect
(
mNoQuoteReplyAction
,
&
QAction
::
triggered
,
this
,
&
MessageActions
::
slotNoQuoteReplyToMsg
);
mListFilterAction
=
new
QAction
(
i18n
(
"Filter on Mailing-&List..."
),
this
);
ac
->
addAction
(
QStringLiteral
(
"mlist_filter"
),
mListFilterAction
);
connect
(
mListFilterAction
,
&
QAction
::
triggered
,
this
,
&
MessageActions
::
slotMailingListFilter
);
mStatusMenu
=
new
KActionMenu
(
i18n
(
"Mar&k Message"
),
this
);
ac
->
addAction
(
QStringLiteral
(
"set_status"
),
mStatusMenu
);
mAnnotateAction
=
new
QAction
(
QIcon
::
fromTheme
(
QStringLiteral
(
"view-pim-notes"
)),
i18n
(
"Add Note..."
),
this
);
...
...
src/messageactions.h
View file @
5930caf3
...
...
@@ -152,13 +152,13 @@ private:
QAction
*
const
mReplyAction
;
QAction
*
const
mReplyAllAction
;
QAction
*
const
mReplyAuthorAction
;
QAction
*
mReplyListAction
=
nullptr
;
QAction
*
mNoQuoteReplyAction
=
nullptr
;
QAction
*
const
mReplyListAction
;
QAction
*
const
mNoQuoteReplyAction
;
QAction
*
mForwardInlineAction
=
nullptr
;
QAction
*
mForwardAttachedAction
=
nullptr
;
QAction
*
mRedirectAction
=
nullptr
;
QAction
*
mNewToRecipientsAction
=
nullptr
;
KActionMenu
*
mStatusMenu
=
nullptr
;
KActionMenu
*
const
mStatusMenu
;
KActionMenu
*
mForwardActionMenu
=
nullptr
;
KActionMenu
*
mMailingListActionMenu
=
nullptr
;
QAction
*
mAnnotateAction
=
nullptr
;
...
...
@@ -166,7 +166,7 @@ private:
QAction
*
mPrintAction
=
nullptr
;
QAction
*
mPrintPreviewAction
=
nullptr
;
TemplateParser
::
CustomTemplatesMenu
*
mCustomTemplatesMenu
=
nullptr
;
QAction
*
mListFilterAction
=
nullptr
;
QAction
*
const
mListFilterAction
;
QAction
*
mAddFollowupReminderAction
=
nullptr
;
QAction
*
mDebugAkonadiSearchAction
=
nullptr
;
QAction
*
mSendAgainAction
=
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