26 if (!myself) {
return; }
33 m_updateTimer.
start(ms);
43 if (!myself) {
return; }
49 if (!m_updateTimer.
isActive()) {
return; }
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)
void setObjectName(QAnyStringView name)
QThread * thread() const const
bool isActive() const const
void setSingleShot(bool singleShot)