Commit 93776ac8 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

USe std::chrono_literals

parent c7f7b3a8
Pipeline #75429 passed with stage
in 6 minutes and 38 seconds
......@@ -38,7 +38,10 @@
#include <QTimer>
#include <QWheelEvent>
#include <cmath> // for fabs()
#include <chrono>
#include <cmath>
using namespace std::chrono_literals; // for fabs()
using namespace EventViews;
......@@ -173,7 +176,7 @@ void MarcusBains::updateLocationRecalc(bool recalculate)
d->mTimeBox->raise();
if (showSeconds || recalculate) {
d->mTimer->start(1000);
d->mTimer->start(1s);
} else {
d->mTimer->start(1000 * (60 - time.second()));
}
......
......@@ -45,8 +45,11 @@
#include <QStyle>
#include <QTimer>
#include <chrono>
#include <vector>
using namespace std::chrono_literals;
using namespace EventViews;
enum { SPACING = 2 };
......@@ -1052,7 +1055,7 @@ void AgendaView::zoomView(const int delta, QPoint pos, const Qt::Orientation ori
zoomDate = d->mSelectedDates[pos.x()];
}
t->setSingleShot(true);
t->start(1000);
t->start(1s);
}
if (delta > 0) {
zoomOutHorizontally(zoomDate);
......
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