Commit 36ab7aa5 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Use std::chrono_literals

parent c9283455
Pipeline #76760 passed with stage
in 6 minutes and 15 seconds
......@@ -41,6 +41,9 @@
#include <QIcon>
#include <QMenu>
#include <QToolButton>
#include <chrono>
using namespace std::chrono_literals;
Q_DECLARE_METATYPE(QPointer<QMenu>)
......@@ -166,7 +169,7 @@ TodoView::TodoView(const EventViews::PrefsPtr &prefs, bool sidebarView, QWidget
{
mResizeColumnsTimer = new QTimer(this);
connect(mResizeColumnsTimer, &QTimer::timeout, this, &TodoView::resizeColumns);
mResizeColumnsTimer->setInterval(100); // so we don't overdue it when user resizes window manually
mResizeColumnsTimer->setInterval(100ms); // so we don't overdue it when user resizes window manually
mResizeColumnsTimer->setSingleShot(true);
setPreferences(prefs);
......
......@@ -16,6 +16,9 @@
#include <QEvent>
#include <QHeaderView>
#include <QMouseEvent>
#include <chrono>
using namespace std::chrono_literals;
TodoViewView::TodoViewView(QWidget *parent)
: QTreeView(parent)
......@@ -23,7 +26,7 @@ TodoViewView::TodoViewView(QWidget *parent)
header()->installEventFilter(this);
setAlternatingRowColors(true);
connect(&mExpandTimer, &QTimer::timeout, this, &TodoViewView::expandParent);
mExpandTimer.setInterval(1000);
mExpandTimer.setInterval(1s);
header()->setStretchLastSection(false);
}
......
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