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
KDE PIM Add-ons
Commits
97fedbfa
Commit
97fedbfa
authored
Sep 07, 2022
by
Laurent Montel
Browse files
const'ify pointer
parent
2755864b
Changes
2
Hide whitespace changes
Inline
Side-by-side
kaddressbook/editorpages/cryptopageplugin.cpp
View file @
97fedbfa
...
...
@@ -28,6 +28,8 @@
#include
<Libkleo/KeyRequester>
CryptoPagePlugin
::
CryptoPagePlugin
()
:
mPgpKey
(
new
Kleo
::
EncryptionKeyRequester
(
true
,
Kleo
::
EncryptionKeyRequester
::
OpenPGP
,
this
))
,
mSmimeCert
(
new
Kleo
::
EncryptionKeyRequester
(
true
,
Kleo
::
EncryptionKeyRequester
::
SMIME
,
this
))
{
KIconLoader
::
global
()
->
addAppDir
(
QStringLiteral
(
"libkleopatra"
));
...
...
@@ -53,13 +55,11 @@ CryptoPagePlugin::CryptoPagePlugin()
auto
l
=
new
QLabel
(
i18n
(
"Preferred OpenPGP encryption key:"
),
this
);
topLayout
->
addWidget
(
l
,
1
,
0
);
mPgpKey
=
new
Kleo
::
EncryptionKeyRequester
(
true
,
Kleo
::
EncryptionKeyRequester
::
OpenPGP
,
this
);
topLayout
->
addWidget
(
mPgpKey
,
1
,
1
);
l
=
new
QLabel
(
i18n
(
"Preferred S/MIME encryption certificate:"
),
this
);
topLayout
->
addWidget
(
l
,
2
,
0
);
mSmimeCert
=
new
Kleo
::
EncryptionKeyRequester
(
true
,
Kleo
::
EncryptionKeyRequester
::
SMIME
,
this
);
topLayout
->
addWidget
(
mSmimeCert
,
2
,
1
);
auto
box
=
new
QGroupBox
(
i18n
(
"Message Preference"
),
this
);
...
...
kaddressbook/editorpages/cryptopageplugin.h
View file @
97fedbfa
...
...
@@ -35,7 +35,7 @@ private:
QCheckBox
*
mProtocolCB
[
NumberOfProtocols
];
QComboBox
*
mSignPref
=
nullptr
;
QComboBox
*
mCryptPref
=
nullptr
;
Kleo
::
KeyRequester
*
mPgpKey
=
nullptr
;
Kleo
::
KeyRequester
*
mSmimeCert
=
nullptr
;
Kleo
::
KeyRequester
*
const
mPgpKey
;
Kleo
::
KeyRequester
*
const
mSmimeCert
;
bool
mReadOnly
=
false
;
};
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