Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
PIM Messagelib
Commits
16319d1a
Commit
16319d1a
authored
Oct 11, 2022
by
Laurent Montel
Browse files
Port shortcut
parent
933d73cd
Pipeline
#245993
passed with stage
in 12 minutes and 49 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
messageviewer/src/viewer/viewer_p.cpp
View file @
16319d1a
...
...
@@ -64,6 +64,9 @@
#include
<QMenu>
#include
<QMimeData>
#include
<QTemporaryDir>
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
#include
<QKeyCombination>
#endif
// Qt includes
#include
<QActionGroup>
...
...
@@ -1560,8 +1563,12 @@ void ViewerPrivate::createActions()
mToggleMimePartTreeAction
=
new
KToggleAction
(
i18n
(
"Show Message Structure"
),
this
);
ac
->
addAction
(
QStringLiteral
(
"toggle_mimeparttree"
),
mToggleMimePartTreeAction
);
connect
(
mToggleMimePartTreeAction
,
&
QAction
::
toggled
,
this
,
&
ViewerPrivate
::
slotToggleMimePartTree
);
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
ac
->
setDefaultShortcut
(
mToggleMimePartTreeAction
,
QKeySequence
(
Qt
::
Key_D
|
Qt
::
CTRL
|
Qt
::
ALT
));
#else
QKeyCombination
combinationKeys
(
Qt
::
CTRL
|
Qt
::
ALT
,
Qt
::
Key_D
);
ac
->
setDefaultShortcut
(
mToggleMimePartTreeAction
,
combinationKeys
);
#endif
mViewSourceAction
=
new
QAction
(
i18n
(
"&View Source"
),
this
);
ac
->
addAction
(
QStringLiteral
(
"view_source"
),
mViewSourceAction
);
connect
(
mViewSourceAction
,
&
QAction
::
triggered
,
this
,
&
ViewerPrivate
::
slotShowMessageSource
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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