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
1eb67b83
Commit
1eb67b83
authored
Dec 19, 2021
by
Laurent Montel
😁
Browse files
Minor coding style
parent
375a8db1
Pipeline
#112241
failed with stage
in 4 minutes and 45 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/identity/identitydialog.cpp
View file @
1eb67b83
...
...
@@ -354,12 +354,12 @@ IdentityDialog::IdentityDialog(QWidget *parent)
// Tab Widget: Cryptography
//
row
=
-
1
;
mCryptographyTab
=
tab
=
new
QWidget
(
mTabWidget
);
mTabWidget
->
addTab
(
t
ab
,
i18n
(
"Cryptography"
));
formLayout
=
new
QFormLayout
(
t
ab
);
mCryptographyTab
=
new
QWidget
(
mTabWidget
);
mTabWidget
->
addTab
(
mCryptographyT
ab
,
i18n
(
"Cryptography"
));
formLayout
=
new
QFormLayout
(
mCryptographyT
ab
);
// "OpenPGP Signature Key" requester and label:
mPGPSigningKeyRequester
=
new
KeySelectionCombo
(
KeySelectionCombo
::
SigningKey
,
GpgME
::
OpenPGP
,
t
ab
);
mPGPSigningKeyRequester
=
new
KeySelectionCombo
(
KeySelectionCombo
::
SigningKey
,
GpgME
::
OpenPGP
,
mCryptographyT
ab
);
msg
=
i18n
(
"<qt><p>The OpenPGP key you choose here will be used "
"to digitally sign messages. You can also use GnuPG keys.</p>"
...
...
@@ -367,7 +367,7 @@ IdentityDialog::IdentityDialog(QWidget *parent)
"to digitally sign emails using OpenPGP; "
"normal mail functions will not be affected.</p>"
"<p>You can find out more about keys at <a>https://www.gnupg.org</a></p></qt>"
);
label
=
new
QLabel
(
i18n
(
"OpenPGP signing key:"
),
t
ab
);
label
=
new
QLabel
(
i18n
(
"OpenPGP signing key:"
),
mCryptographyT
ab
);
label
->
setBuddy
(
mPGPSigningKeyRequester
);
mPGPSigningKeyRequester
->
setWhatsThis
(
msg
);
label
->
setWhatsThis
(
msg
);
...
...
@@ -375,7 +375,7 @@ IdentityDialog::IdentityDialog(QWidget *parent)
formLayout
->
addRow
(
label
,
mPGPSigningKeyRequester
);
// "OpenPGP Encryption Key" requester and label:
mPGPEncryptionKeyRequester
=
new
KeySelectionCombo
(
KeySelectionCombo
::
EncryptionKey
,
GpgME
::
OpenPGP
,
t
ab
);
mPGPEncryptionKeyRequester
=
new
KeySelectionCombo
(
KeySelectionCombo
::
EncryptionKey
,
GpgME
::
OpenPGP
,
mCryptographyT
ab
);
msg
=
i18n
(
"<qt><p>The OpenPGP key you choose here will be used "
"to encrypt messages to yourself and for the
\"
Attach My Public Key
\"
"
...
...
@@ -384,7 +384,7 @@ IdentityDialog::IdentityDialog(QWidget *parent)
"to encrypt copies of outgoing messages to you using OpenPGP; "
"normal mail functions will not be affected.</p>"
"<p>You can find out more about keys at <a>https://www.gnupg.org</a></p></qt>"
);
label
=
new
QLabel
(
i18n
(
"OpenPGP encryption key:"
),
t
ab
);
label
=
new
QLabel
(
i18n
(
"OpenPGP encryption key:"
),
mCryptographyT
ab
);
label
->
setBuddy
(
mPGPEncryptionKeyRequester
);
mPGPEncryptionKeyRequester
->
setWhatsThis
(
msg
);
label
->
setWhatsThis
(
msg
);
...
...
@@ -392,14 +392,14 @@ IdentityDialog::IdentityDialog(QWidget *parent)
formLayout
->
addRow
(
label
,
mPGPEncryptionKeyRequester
);
// "S/MIME Signature Key" requester and label:
mSMIMESigningKeyRequester
=
new
KeySelectionCombo
(
KeySelectionCombo
::
SigningKey
,
GpgME
::
CMS
,
t
ab
);
mSMIMESigningKeyRequester
=
new
KeySelectionCombo
(
KeySelectionCombo
::
SigningKey
,
GpgME
::
CMS
,
mCryptographyT
ab
);
msg
=
i18n
(
"<qt><p>The S/MIME (X.509) certificate you choose here will be used "
"to digitally sign messages.</p>"
"<p>You can leave this blank, but KMail will not be able "
"to digitally sign emails using S/MIME; "
"normal mail functions will not be affected.</p></qt>"
);
label
=
new
QLabel
(
i18n
(
"S/MIME signing certificate:"
),
t
ab
);
label
=
new
QLabel
(
i18n
(
"S/MIME signing certificate:"
),
mCryptographyT
ab
);
label
->
setBuddy
(
mSMIMESigningKeyRequester
);
mSMIMESigningKeyRequester
->
setWhatsThis
(
msg
);
label
->
setWhatsThis
(
msg
);
...
...
@@ -411,7 +411,7 @@ IdentityDialog::IdentityDialog(QWidget *parent)
mSMIMESigningKeyRequester
->
setEnabled
(
smimeProtocol
);
// "S/MIME Encryption Key" requester and label:
mSMIMEEncryptionKeyRequester
=
new
KeySelectionCombo
(
KeySelectionCombo
::
EncryptionKey
,
GpgME
::
CMS
,
t
ab
);
mSMIMEEncryptionKeyRequester
=
new
KeySelectionCombo
(
KeySelectionCombo
::
EncryptionKey
,
GpgME
::
CMS
,
mCryptographyT
ab
);
msg
=
i18n
(
"<qt><p>The S/MIME certificate you choose here will be used "
"to encrypt messages to yourself and for the
\"
Attach My Certificate
\"
"
...
...
@@ -419,7 +419,7 @@ IdentityDialog::IdentityDialog(QWidget *parent)
"<p>You can leave this blank, but KMail will not be able "
"to encrypt copies of outgoing messages to you using S/MIME; "
"normal mail functions will not be affected.</p></qt>"
);
label
=
new
QLabel
(
i18n
(
"S/MIME encryption certificate:"
),
t
ab
);
label
=
new
QLabel
(
i18n
(
"S/MIME encryption certificate:"
),
mCryptographyT
ab
);
label
->
setBuddy
(
mSMIMEEncryptionKeyRequester
);
mSMIMEEncryptionKeyRequester
->
setWhatsThis
(
msg
);
label
->
setWhatsThis
(
msg
);
...
...
@@ -430,13 +430,13 @@ IdentityDialog::IdentityDialog(QWidget *parent)
mSMIMEEncryptionKeyRequester
->
setEnabled
(
smimeProtocol
);
// "Preferred Crypto Message Format" combobox and label:
mPreferredCryptoMessageFormat
=
new
QComboBox
(
t
ab
);
mPreferredCryptoMessageFormat
=
new
QComboBox
(
mCryptographyT
ab
);
QStringList
l
;
l
<<
Kleo
::
cryptoMessageFormatToLabel
(
Kleo
::
AutoFormat
)
<<
Kleo
::
cryptoMessageFormatToLabel
(
Kleo
::
InlineOpenPGPFormat
)
<<
Kleo
::
cryptoMessageFormatToLabel
(
Kleo
::
OpenPGPMIMEFormat
)
<<
Kleo
::
cryptoMessageFormatToLabel
(
Kleo
::
SMIMEFormat
)
<<
Kleo
::
cryptoMessageFormatToLabel
(
Kleo
::
SMIMEOpaqueFormat
);
mPreferredCryptoMessageFormat
->
addItems
(
l
);
label
=
new
QLabel
(
i18nc
(
"preferred format of encrypted messages"
,
"Preferred format:"
),
t
ab
);
label
=
new
QLabel
(
i18nc
(
"preferred format of encrypted messages"
,
"Preferred format:"
),
mCryptographyT
ab
);
label
->
setBuddy
(
mPreferredCryptoMessageFormat
);
formLayout
->
addRow
(
label
,
mPreferredCryptoMessageFormat
);
...
...
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