14 m_updateTimer.setObjectName(name +
":timer");
36 m_updateTimer.start(ms);
55 if (!m_updateTimer.isActive())
static bool isInThisThread(const QObject *toBeTested)
Is the current thread the object's thread?
void stopTimer()
Safely stop update time.
CThreadedTimer(QObject *owner, const QString &name, bool singleShot=false)
Constructor.
void startTimer(std::chrono::milliseconds ms)
Start updating (start timer).
void timeout()
Timer timed out.
Free functions in swift::misc.
auto singleShot(int msec, QObject *target, F &&task)
Starts a single-shot timer which will call a task in the thread of the given object when it times out...
QMetaObject::Connection connect(const QObject *sender, PointerToMemberFunction signal, Functor functor)
QThread * thread() const const