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
3114cb00
Commit
3114cb00
authored
Jun 07, 2021
by
Laurent Montel
😁
Browse files
const'ify pointer
parent
5b7654e8
Pipeline
#64672
passed with stage
in 23 minutes and 28 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/messageactions.cpp
View file @
3114cb00
...
...
@@ -60,6 +60,8 @@ MessageActions::MessageActions(KActionCollection *ac, QWidget *parent)
,
mParent
(
parent
)
,
mReplyActionMenu
(
new
KActionMenu
(
QIcon
::
fromTheme
(
QStringLiteral
(
"mail-reply-sender"
)),
i18nc
(
"Message->"
,
"&Reply"
),
this
))
,
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
))
,
mWebShortcutMenuManager
(
new
KIO
::
KUriFilterSearchProviderActions
(
this
))
{
ac
->
addAction
(
QStringLiteral
(
"message_reply_menu"
),
mReplyActionMenu
);
...
...
@@ -70,13 +72,11 @@ MessageActions::MessageActions(KActionCollection *ac, QWidget *parent)
connect
(
mReplyAction
,
&
QAction
::
triggered
,
this
,
&
MessageActions
::
slotReplyToMsg
);
mReplyActionMenu
->
addAction
(
mReplyAction
);
mReplyAuthorAction
=
new
QAction
(
QIcon
::
fromTheme
(
QStringLiteral
(
"mail-reply-sender"
)),
i18n
(
"Reply to A&uthor..."
),
this
);
ac
->
addAction
(
QStringLiteral
(
"reply_author"
),
mReplyAuthorAction
);
ac
->
setDefaultShortcut
(
mReplyAuthorAction
,
Qt
::
SHIFT
|
Qt
::
Key_A
);
connect
(
mReplyAuthorAction
,
&
QAction
::
triggered
,
this
,
&
MessageActions
::
slotReplyAuthorToMsg
);
mReplyActionMenu
->
addAction
(
mReplyAuthorAction
);
mReplyAllAction
=
new
QAction
(
QIcon
::
fromTheme
(
QStringLiteral
(
"mail-reply-all"
)),
i18n
(
"Reply to &All..."
),
this
);
ac
->
addAction
(
QStringLiteral
(
"reply_all"
),
mReplyAllAction
);
ac
->
setDefaultShortcut
(
mReplyAllAction
,
Qt
::
Key_A
);
connect
(
mReplyAllAction
,
&
QAction
::
triggered
,
this
,
&
MessageActions
::
slotReplyAllToMsg
);
...
...
src/messageactions.h
View file @
3114cb00
...
...
@@ -150,8 +150,8 @@ private:
KActionMenu
*
const
mReplyActionMenu
;
QAction
*
const
mReplyAction
;
QAction
*
mReplyAllAction
=
nullptr
;
QAction
*
mReplyAuthorAction
=
nullptr
;
QAction
*
const
mReplyAllAction
;
QAction
*
const
mReplyAuthorAction
;
QAction
*
mReplyListAction
=
nullptr
;
QAction
*
mNoQuoteReplyAction
=
nullptr
;
QAction
*
mForwardInlineAction
=
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