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
PIM Messagelib
Commits
e1ee42d6
Commit
e1ee42d6
authored
Jun 20, 2021
by
Laurent Montel
Browse files
USe std::chrono_literals
parent
f3639838
Pipeline
#66801
passed with stage
in 41 minutes and 4 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
messageviewer/src/dkim-verify/autotests/dkimcheckauthenticationstatusjobtest.cpp
View file @
e1ee42d6
...
...
@@ -11,6 +11,9 @@
#include
<QSignalSpy>
#include
<QTest>
#include
<QTimer>
#include
<chrono>
using
namespace
std
::
chrono_literals
;
QTEST_MAIN
(
DKIMCheckAuthenticationStatusJobTest
)
...
...
@@ -61,7 +64,7 @@ void DKIMCheckAuthenticationStatusJobTest::shouldTestMail()
job
->
setHeaderParser
(
mHeaderParser
);
job
->
setUseRelaxedParsing
(
relaxedParsing
);
QSignalSpy
dkimSignatureSpy
(
job
,
&
MessageViewer
::
DKIMCheckAuthenticationStatusJob
::
result
);
QTimer
::
singleShot
(
10
,
job
,
&
MessageViewer
::
DKIMCheckAuthenticationStatusJob
::
start
);
QTimer
::
singleShot
(
10
ms
,
job
,
&
MessageViewer
::
DKIMCheckAuthenticationStatusJob
::
start
);
QVERIFY
(
dkimSignatureSpy
.
wait
());
delete
msg
;
}
messageviewer/src/viewer/urlhandlermanager.cpp
View file @
e1ee42d6
...
...
@@ -53,6 +53,9 @@
#include
<algorithm>
#include
<Libkleo/MessageBox>
#include
<chrono>
using
namespace
std
::
chrono_literals
;
using
std
::
find
;
using
std
::
for_each
;
...
...
@@ -871,7 +874,7 @@ bool KRunURLHandler::handleClick(const QUrl &url, ViewerPrivate *w) const
||
(
scheme
==
QLatin1String
(
"ftps"
))
||
(
scheme
==
QLatin1String
(
"sftp"
))
||
(
scheme
==
QLatin1String
(
"help"
))
||
(
scheme
==
QLatin1String
(
"vnc"
))
||
(
scheme
==
QLatin1String
(
"smb"
))
||
(
scheme
==
QLatin1String
(
"fish"
))
||
(
scheme
==
QLatin1String
(
"news"
))
||
(
scheme
==
QLatin1String
(
"tel"
)))
{
PimCommon
::
BroadcastStatus
::
instance
()
->
setTransientStatusMsg
(
i18n
(
"Opening URL..."
));
QTimer
::
singleShot
(
2
000
,
PimCommon
::
BroadcastStatus
::
instance
(),
&
PimCommon
::
BroadcastStatus
::
reset
);
QTimer
::
singleShot
(
2
s
,
PimCommon
::
BroadcastStatus
::
instance
(),
&
PimCommon
::
BroadcastStatus
::
reset
);
QMimeDatabase
mimeDb
;
auto
mime
=
mimeDb
.
mimeTypeForUrl
(
url
);
...
...
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