Commit eb6be669 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

USe std::chrono_literals

parent 73c9beff
Pipeline #75428 passed with stage
in 42 minutes and 36 seconds
......@@ -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
}
}
......
......@@ -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(1000);
d->mSearchTimer->start(1s);
}
void Widget::slotStatusButtonsClicked()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment