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
KIdentityManagement
Commits
f425e11a
Commit
f425e11a
authored
Sep 02, 2020
by
Laurent Montel
😁
Browse files
modernize code
parent
b4e1fa5a
Pipeline
#32661
passed with stage
in 8 minutes and 20 seconds
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/identity.cpp
View file @
f425e11a
...
...
@@ -24,7 +24,6 @@ static Identity *identityNull = nullptr;
Q_DECLARE_METATYPE
(
KIdentityManagement
::
Signature
)
Identity
::
Identity
(
const
QString
&
id
,
const
QString
&
fullName
,
const
QString
&
emailAddr
,
const
QString
&
organization
,
const
QString
&
replyToAddr
)
:
mIsDefault
(
false
)
{
qRegisterMetaType
<
Signature
>
();
qRegisterMetaTypeStreamOperators
<
Signature
>
();
...
...
src/identity.h
View file @
f425e11a
...
...
@@ -343,7 +343,7 @@ protected:
Q_REQUIRED_RESULT
bool
useSignatureFile
()
const
;
Signature
mSignature
;
bool
mIsDefault
;
bool
mIsDefault
=
false
;
QHash
<
QString
,
QVariant
>
mPropertiesMap
;
};
}
...
...
src/identitycombo.cpp
View file @
f425e11a
...
...
@@ -42,8 +42,8 @@ public:
void
reloadUoidList
();
QList
<
uint
>
mUoidList
;
IdentityManager
*
const
mIdentityManager
=
nullptr
;
IdentityCombo
*
const
q
=
nullptr
;
IdentityManager
*
const
mIdentityManager
;
IdentityCombo
*
const
q
;
};
void
KIdentityManagement
::
IdentityComboPrivate
::
reloadCombo
()
...
...
src/signature.cpp
View file @
f425e11a
...
...
@@ -51,7 +51,7 @@ public:
Signature
::
Type
type
=
Signature
::
Disabled
;
bool
enabled
=
false
;
bool
inlinedHtml
=
false
;
Signature
*
const
q
=
nullptr
;
Signature
*
const
q
;
};
static
bool
isCursorAtEndOfLine
(
const
QTextCursor
&
cursor
)
...
...
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