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

Use chrono_literals

parent b2ff4e32
Pipeline #76757 passed with stage
in 5 minutes and 52 seconds
......@@ -9,6 +9,9 @@
#include "debugmodel.h"
#include <KCheckComboBox>
#include <chrono>
using namespace std::chrono_literals;
#ifndef COMPILE_WITH_UNITY_CMAKE_SUPPORT
Q_DECLARE_METATYPE(DebugModel::Message)
......@@ -19,7 +22,7 @@ using namespace KPIM;
DebugFilterModel::DebugFilterModel(QObject *parent)
: QSortFilterProxyModel(parent)
{
mInvalidateTimer.setInterval(50);
mInvalidateTimer.setInterval(50ms);
mInvalidateTimer.setSingleShot(true);
connect(&mInvalidateTimer, &QTimer::timeout, this, &DebugFilterModel::invalidate);
}
......
......@@ -15,7 +15,9 @@
#include <akonadi/private/instance_p.h>
#include <cassert>
#include <chrono>
using namespace std::chrono_literals;
QString JobInfo::stateAsString() const
{
switch (state) {
......@@ -42,7 +44,7 @@ public:
, q(_q)
{
timer.setSingleShot(true);
timer.setInterval(200);
timer.setInterval(200ms);
connect(&timer, &QTimer::timeout, q, &JobTracker::signalUpdates);
}
......
......@@ -12,13 +12,15 @@
#ifndef COMPILE_WITH_UNITY_CMAKE_SUPPORT
Q_DECLARE_METATYPE(LoggingModel::Message)
#endif
#include <chrono>
using namespace std::chrono_literals;
using namespace KPIM;
LoggingFilterModel::LoggingFilterModel(QObject *parent)
: QSortFilterProxyModel(parent)
{
mInvalidateTimer.setInterval(50);
mInvalidateTimer.setInterval(50ms);
mInvalidateTimer.setSingleShot(true);
connect(&mInvalidateTimer, &QTimer::timeout, this, &LoggingFilterModel::invalidate);
}
......
......@@ -10,6 +10,9 @@
#include <KCheckComboBox>
#include <QStandardItemModel>
#include <chrono>
using namespace std::chrono_literals;
using KPIM::KCheckComboBox;
......@@ -18,7 +21,7 @@ Q_DECLARE_METATYPE(Akonadi::ChangeNotification)
NotificationFilterModel::NotificationFilterModel(QObject *parent)
: QSortFilterProxyModel(parent)
{
mInvalidateTimer.setInterval(50);
mInvalidateTimer.setInterval(50ms);
mInvalidateTimer.setSingleShot(true);
connect(&mInvalidateTimer, &QTimer::timeout, this, &NotificationFilterModel::invalidateFilter);
}
......
Supports Markdown
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