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
PIM Messagelib
Commits
2dc0ae3c
Commit
2dc0ae3c
authored
Aug 26, 2021
by
Laurent Montel
😁
Browse files
Use std::chrono_literals
parent
d6781e8a
Pipeline
#76644
passed with stage
in 42 minutes and 20 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
messageviewer/src/dkim-verify/autotests/dkimchecksignaturejobtest.cpp
View file @
2dc0ae3c
...
...
@@ -9,6 +9,9 @@
#include
<QSignalSpy>
#include
<QTest>
#include
<QTimer>
using
namespace
std
::
chrono_literals
;
QTEST_MAIN
(
DKIMCheckSignatureJobTest
)
//#define USE_EXTRA_CHECK 1
DKIMCheckSignatureJobTest
::
DKIMCheckSignatureJobTest
(
QObject
*
parent
)
...
...
@@ -107,7 +110,7 @@ void DKIMCheckSignatureJobTest::shouldTestMail()
pol
.
setSaveKey
(
false
);
job
->
setPolicy
(
pol
);
QSignalSpy
dkimSignatureSpy
(
job
,
&
MessageViewer
::
DKIMCheckSignatureJob
::
result
);
QTimer
::
singleShot
(
10
,
job
,
&
MessageViewer
::
DKIMCheckSignatureJob
::
start
);
QTimer
::
singleShot
(
10
ms
,
job
,
&
MessageViewer
::
DKIMCheckSignatureJob
::
start
);
QVERIFY
(
dkimSignatureSpy
.
wait
());
QCOMPARE
(
dkimSignatureSpy
.
count
(),
1
);
const
auto
info
=
dkimSignatureSpy
.
at
(
0
).
at
(
0
).
value
<
MessageViewer
::
DKIMCheckSignatureJob
::
CheckSignatureResult
>
();
...
...
messageviewer/src/viewer/viewer_p.cpp
View file @
2dc0ae3c
...
...
@@ -149,7 +149,8 @@
#include
"dkim-verify/dkimwidgetinfo.h"
#include
"remote-content/remotecontentmenu.h"
#include
<chrono>
using
namespace
std
::
chrono_literals
;
using
namespace
boost
;
using
namespace
MailTransport
;
using
namespace
MessageViewer
;
...
...
@@ -2196,7 +2197,7 @@ void ViewerPrivate::slotPrintPreview()
return
;
}
// Need to delay
QTimer
::
singleShot
(
1
000
,
this
,
&
ViewerPrivate
::
slotDelayPrintPreview
);
// 1 second
QTimer
::
singleShot
(
1
s
,
this
,
&
ViewerPrivate
::
slotDelayPrintPreview
);
// 1 second
}
void
ViewerPrivate
::
slotDelayPrintPreview
()
...
...
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