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
KDE PIM Runtime
Commits
2f3d52e4
Commit
2f3d52e4
authored
Sep 12, 2022
by
Laurent Montel
Browse files
USe std::chrono_literals here
parent
2b06af16
Pipeline
#230836
failed with stage
in 8 minutes and 30 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
agents/newmailnotifier/newmailnotifieragent.cpp
View file @
2f3d52e4
...
...
@@ -38,6 +38,8 @@
#if HAVE_TEXT_TO_SPEECH_SUPPORT
#include
<QTextToSpeech>
#endif
using
namespace
std
::
chrono_literals
;
#include
<chrono>
using
namespace
Akonadi
;
...
...
@@ -81,7 +83,7 @@ NewMailNotifierAgent::NewMailNotifierAgent(const QString &id)
changeRecorder
()
->
ignoreSession
(
Akonadi
::
Session
::
defaultSession
());
changeRecorder
()
->
collectionFetchScope
().
setAncestorRetrieval
(
Akonadi
::
CollectionFetchScope
::
All
);
changeRecorder
()
->
setCollectionMonitored
(
Collection
::
root
(),
true
);
mTimer
.
setInterval
(
5
000
);
// 5secondes
mTimer
.
setInterval
(
5
s
);
// 5secondes
connect
(
&
mTimer
,
&
QTimer
::
timeout
,
this
,
&
NewMailNotifierAgent
::
slotShowNotifications
);
if
(
isActive
())
{
...
...
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