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
2e2ef261
Commit
2e2ef261
authored
Dec 27, 2020
by
Laurent Montel
😁
Browse files
Port KSelectAction::triggered deprecated signal (scripted)
parent
b129b973
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/editor/kmcomposerwin.cpp
View file @
2e2ef261
...
...
@@ -48,6 +48,9 @@
#include
"widgets/cryptostateindicatorwidget.h"
#include
"widgets/kactionmenutransport.h"
#include
"undosend/undosendmanager.h"
#include
<kwidgetsaddons_version.h>
#include
<Akonadi/Contact/ContactGroupExpandJob>
#include
<Akonadi/KMime/MessageFlags>
#include
<Akonadi/KMime/MessageStatus>
...
...
@@ -1356,7 +1359,11 @@ void KMComposerWin::setupActions()
mCryptoModuleAction
=
new
KSelectAction
(
i18n
(
"&Cryptographic Message Format"
),
this
);
actionCollection
()
->
addAction
(
QStringLiteral
(
"options_select_crypto"
),
mCryptoModuleAction
);
#if KWIDGETSADDONS_VERSION < QT_VERSION_CHECK(5, 78, 0)
connect
(
mCryptoModuleAction
,
qOverload
<
int
>
(
&
KSelectAction
::
triggered
),
this
,
&
KMComposerWin
::
slotCryptoModuleSelected
);
#else
connect
(
mCryptoModuleAction
,
&
KSelectAction
::
indexTriggered
,
this
,
&
KMComposerWin
::
slotCryptoModuleSelected
);
#endif
mCryptoModuleAction
->
setToolTip
(
i18n
(
"Select a cryptographic format for this message"
));
mCryptoModuleAction
->
setItems
(
listCryptoFormat
);
...
...
Write
Preview
Supports
Markdown
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