void toggleRunning() { if (timer.isActive()) timer.stop(); else { timer.start(10, this); el.start(); } }
void SharedTimerQt::start(double fireTime) { double interval = fireTime - currentTime(); unsigned int intervalInMS; if (interval < 0) intervalInMS = 0; else { interval *= 1000; intervalInMS = (unsigned int)interval; } m_timer.start(intervalInMS, this); }
Q_SLOT void start() { if (m_busy) return; m_counter = 0; m_busy = true; m_timer.start(0, this); }
void startTicker(QObject *object) { if (!ticker.isActive()) ticker.start(15, object); timeCounter.start(); }
UIQT(QWidget *parent = {}) : QWidget(parent) { m_layout.addWidget(&m_label, 0, 0); m_timer.start(500, this); refreshImage(); }
explicit StuckEventLoopNotifier(MonitoringApp * app) : m_app(app) { m_timer.start(100, Qt::CoarseTimer, this); }
Q_SLOT void on_lineEdit_textEdited() { if (m_queryBehavior == FinalQuery || !m_queryTimer.isActive()) m_queryTimer.start(100, this); }
void Start (int interval) { if (!Timer_.isActive ()) Timer_.start (interval, this); }