{
animTimer = new QTimer(this);
connect(animTimer, SIGNAL(timeout()), SLOT(animTimeout()));
animTimer->start(120 * 5);
// animTimer->start(120 * 5);
frame = 0;
// blank icon
// animation timer
d->animTimer = new QTimer(this);
d->animTimer->start(120 * 5);
// d->animTimer->start(120 * 5);
d->recalculateSizeTimer = new QTimer(this);
connect(d->recalculateSizeTimer, SIGNAL(timeout()), d, SLOT(recalculateSize()));
void restartTimer()
return;
if ( !paused && speed > 0 ) {
int frameperiod = frames[frame].period;
int i = frameperiod >= 0 ? frameperiod * 100/speed : 0;
d->idleSince = QDateTime::currentDateTime();
}
// poll every second (use a lower value if you need more accuracy)
// don't poll every second (use a lower value if you need more accuracy)
d->checkTimer.start(1000);
d->checkTimer.start(300000);
void Idle::stop()
PollingTuneController::PollingTuneController()
connect(&timer_, SIGNAL(timeout()), SLOT(check()));
timer_.start(3000);
// timer_.start(3000);
*/
void PollingTuneController::setInterval(int interval)
if (interval > 0)
timer_.start(interval);
else