4#ifndef QTIMERINFO_UNIX_P_H
5#define QTIMERINFO_UNIX_P_H
18#include <QtCore/private/qglobal_p.h>
31 using TimePoint = std::chrono::time_point<std::chrono::steady_clock, Duration>;
54 std::optional<Duration> timerWait();
62 bool unregisterTimers(
QObject *
object);
63 QList<TimerInfo> registeredTimers(
QObject *
object)
const;
66 bool hasPendingTimers();
74 bool isEmpty()
const {
return timers.empty(); }
80 auto matchesId = [timerId](
const auto &
t) {
return t->id == timerId; };
81 return std::find_if(timers.cbegin(), timers.cend(), matchesId);
85 std::chrono::steady_clock::time_point updateCurrentTime()
const;
89 QList<QTimerInfo *> timers;
std::chrono::nanoseconds Duration
A {std::chrono::duration} type that is used in various API in this class.
std::chrono::steady_clock::time_point currentTime
QAbstractEventDispatcher::Duration Duration
auto findTimerById(Qt::TimerId timerId) const
qDeleteAll(list.begin(), list.end())
Combined button and popup list for selecting options.
GLbitfield GLuint64 timeout
[4]
\variable QAbstractEventDispatcher::TimerInfo::timerId
QTimerInfo ** activateRef
std::chrono::time_point< std::chrono::steady_clock, Duration > TimePoint
QAbstractEventDispatcher::Duration Duration
QTimerInfo(Qt::TimerId timerId, Duration interval, Qt::TimerType type, QObject *obj)