Пример #1
0
 void toggleRunning() {
    if (timer.isActive())
       timer.stop();
    else {
       timer.start(10, this);
       el.start();
    }
 }
Пример #2
0
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);
}
Пример #3
0
 Q_SLOT void start() {
     if (m_busy) return;
     m_counter = 0;
     m_busy = true;
     m_timer.start(0, this);
 }
Пример #4
0
 void startTicker(QObject *object)
 {
     if (!ticker.isActive())
         ticker.start(15, object);
     timeCounter.start();
 }
Пример #5
0
 UIQT(QWidget *parent = {}) : QWidget(parent) {
    m_layout.addWidget(&m_label, 0, 0);
    m_timer.start(500, this);
    refreshImage();
 }
Пример #6
0
 explicit StuckEventLoopNotifier(MonitoringApp * app) : m_app(app) {
   m_timer.start(100, Qt::CoarseTimer, this);
 }
Пример #7
0
 Q_SLOT void on_lineEdit_textEdited() {
    if (m_queryBehavior == FinalQuery || !m_queryTimer.isActive())
       m_queryTimer.start(100, this);
 }
Пример #8
0
				void Start (int interval)
				{
					if (!Timer_.isActive ())
						Timer_.start (interval, this);
				}