Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
PIM Messagelib
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
4
Merge Requests
4
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PIM
PIM Messagelib
Commits
010bb5fb
Commit
010bb5fb
authored
Apr 24, 2020
by
Laurent Montel
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't duplicate text in tooltip
parent
8de1ccb9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
10 deletions
+27
-10
messageviewer/src/dkim-verify/dkimwidgetinfo.cpp
messageviewer/src/dkim-verify/dkimwidgetinfo.cpp
+27
-10
No files found.
messageviewer/src/dkim-verify/dkimwidgetinfo.cpp
View file @
010bb5fb
...
...
@@ -217,6 +217,7 @@ void DKIMWidgetInfo::updateToolTip()
}
if
(
mResult
.
status
!=
DKIMCheckSignatureJob
::
DKIMStatus
::
Invalid
)
{
QStringList
tooltipList
;
for
(
const
DKIMCheckSignatureJob
::
DKIMCheckSignatureAuthenticationResult
&
result
:
qAsConst
(
mResult
.
listSignatureAuthenticationResult
))
{
switch
(
result
.
status
)
{
case
DKIMCheckSignatureJob
::
DKIMStatus
::
Unknown
:
...
...
@@ -232,8 +233,10 @@ void DKIMWidgetInfo::updateToolTip()
case
DKIMCheckSignatureJob
::
AuthenticationMethod
::
Dkim
:
case
DKIMCheckSignatureJob
::
AuthenticationMethod
::
Dmarc
:
case
DKIMCheckSignatureJob
::
AuthenticationMethod
::
Dkimatps
:
{
tooltip
+=
(
tooltip
.
isEmpty
()
?
QChar
()
:
QLatin1Char
(
'\n'
))
+
i18n
(
"%1: None"
,
MessageViewer
::
DKIMUtil
::
convertAuthenticationMethodEnumToString
(
result
.
method
));
const
QString
str
=
i18n
(
"%1: None"
,
MessageViewer
::
DKIMUtil
::
convertAuthenticationMethodEnumToString
(
result
.
method
));
if
(
!
tooltipList
.
contains
(
str
))
{
tooltipList
.
append
(
str
);
}
break
;
}
}
...
...
@@ -244,30 +247,44 @@ void DKIMWidgetInfo::updateToolTip()
break
;
}
case
DKIMCheckSignatureJob
::
AuthenticationMethod
::
Dkim
:
{
tooltip
+=
(
tooltip
.
isEmpty
()
?
QChar
()
:
QLatin1Char
(
'\n'
))
+
i18n
(
"%1: Valid (Signed by %2)"
,
MessageViewer
::
DKIMUtil
::
convertAuthenticationMethodEnumToString
(
result
.
method
),
const
QString
str
=
i18n
(
"%1: Valid (Signed by %2)"
,
MessageViewer
::
DKIMUtil
::
convertAuthenticationMethodEnumToString
(
result
.
method
),
result
.
sdid
);
if
(
!
tooltipList
.
contains
(
str
))
{
tooltipList
.
append
(
str
);
}
break
;
}
case
DKIMCheckSignatureJob
::
AuthenticationMethod
::
Spf
:
{
tooltip
+=
(
tooltip
.
isEmpty
()
?
QChar
()
:
QLatin1Char
(
'\n'
))
+
i18n
(
"%1: Valid"
,
MessageViewer
::
DKIMUtil
::
convertAuthenticationMethodEnumToString
(
result
.
method
));
const
QString
str
=
i18n
(
"%1: Valid"
,
MessageViewer
::
DKIMUtil
::
convertAuthenticationMethodEnumToString
(
result
.
method
));
if
(
!
tooltipList
.
contains
(
str
))
{
tooltipList
.
append
(
str
);
}
break
;
}
case
DKIMCheckSignatureJob
::
AuthenticationMethod
::
Dmarc
:
{
tooltip
+=
(
tooltip
.
isEmpty
()
?
QChar
()
:
QLatin1Char
(
'\n'
))
+
i18n
(
"%1: Valid"
,
MessageViewer
::
DKIMUtil
::
convertAuthenticationMethodEnumToString
(
result
.
method
));
const
QString
str
=
i18n
(
"%1: Valid"
,
MessageViewer
::
DKIMUtil
::
convertAuthenticationMethodEnumToString
(
result
.
method
));
if
(
!
tooltipList
.
contains
(
str
))
{
tooltipList
.
append
(
str
);
}
break
;
}
case
DKIMCheckSignatureJob
::
AuthenticationMethod
::
Dkimatps
:
{
tooltip
+=
(
tooltip
.
isEmpty
()
?
QChar
()
:
QLatin1Char
(
'\n'
))
+
i18n
(
"%1: Valid"
,
MessageViewer
::
DKIMUtil
::
convertAuthenticationMethodEnumToString
(
result
.
method
));
const
QString
str
=
i18n
(
"%1: Valid"
,
MessageViewer
::
DKIMUtil
::
convertAuthenticationMethodEnumToString
(
result
.
method
));
if
(
!
tooltipList
.
contains
(
str
))
{
tooltipList
.
append
(
str
);
}
break
;
}
}
break
;
}
}
if
(
!
tooltipList
.
isEmpty
())
{
tooltip
+=
(
tooltip
.
isEmpty
()
?
QChar
()
:
QLatin1Char
(
'\n'
))
+
tooltipList
.
join
(
QLatin1Char
(
'\n'
));
}
if
(
mResult
.
listSignatureAuthenticationResult
.
isEmpty
())
{
tooltip
+=
(
tooltip
.
isEmpty
()
?
QChar
()
:
QLatin1Char
(
'\n'
))
+
i18n
(
"Not Signed"
);
...
...
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