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
eb6be669
Commit
eb6be669
authored
Aug 17, 2021
by
Laurent Montel
Browse files
USe std::chrono_literals
parent
73c9beff
Pipeline
#75428
passed with stage
in 42 minutes and 36 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
messagelist/src/core/model.cpp
View file @
eb6be669
...
...
@@ -57,6 +57,9 @@
#include
<QTimer>
#include
<algorithm>
#include
<chrono>
using
namespace
std
::
chrono_literals
;
namespace
MessageList
{
...
...
@@ -343,7 +346,7 @@ Model::Model(View *pParent)
});
if
(
!
_k_heartBeatTimer
->
isActive
())
{
// First model starts it
_k_heartBeatTimer
->
start
(
60000
);
// 1 minute
_k_heartBeatTimer
->
start
(
1min
);
// 1 minute
}
}
...
...
messagelist/src/core/widgetbase.cpp
View file @
eb6be669
...
...
@@ -43,9 +43,12 @@
#include
<QUrl>
#include
<Akonadi/KMime/MessageStatus>
#include
<chrono>
#include
<collection.h>
#include
<core/widgets/filternamedialog.h>
using
namespace
std
::
chrono_literals
;
using
namespace
MessageList
::
Core
;
class
Widget
::
Private
...
...
@@ -961,7 +964,7 @@ void Widget::searchEditTextEdited()
}
d
->
mSearchTimer
->
setSingleShot
(
true
);
d
->
mSearchTimer
->
start
(
1
000
);
d
->
mSearchTimer
->
start
(
1
s
);
}
void
Widget
::
slotStatusButtonsClicked
()
...
...
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