void QBasicTimer stop if id QAbstractEventDispat cher eventDispatcher

1
2
3
4
5
6
7
8
9
void QBasicTimer::stop()
{
if (id) {
QAbstractEventDispatcher *eventDispatcher = QAbstractEventDispatcher::instance();
if (eventDispatcher)
eventDispatcher->unregisterTimer(id);
}
id = 0;
}