diff options
author | Kent Hansen <khansen@trolltech.com> | 2009-09-29 14:40:48 (GMT) |
---|---|---|
committer | Kent Hansen <khansen@trolltech.com> | 2009-09-29 14:42:15 (GMT) |
commit | 544f06f1fe29e986cd2b3fd1fd7198d688275969 (patch) | |
tree | 015c0c61ecd2141d949a7d6cefd8c31327e3bd1f /src/corelib/statemachine/qstatemachine_p.h | |
parent | 86a30b667e189b8659fab384d93022e55a67b81e (diff) | |
download | Qt-544f06f1fe29e986cd2b3fd1fd7198d688275969.zip Qt-544f06f1fe29e986cd2b3fd1fd7198d688275969.tar.gz Qt-544f06f1fe29e986cd2b3fd1fd7198d688275969.tar.bz2 |
Make sure delayed events are cancelled when a state machine halts
Otherwise the events might creep into the event loop if the state
machine is restarted.
Reviewed-by: Eskil Abrahamsen Blomfeldt
Diffstat (limited to 'src/corelib/statemachine/qstatemachine_p.h')
-rw-r--r-- | src/corelib/statemachine/qstatemachine_p.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/corelib/statemachine/qstatemachine_p.h b/src/corelib/statemachine/qstatemachine_p.h index 141bc5c..cf7a073 100644 --- a/src/corelib/statemachine/qstatemachine_p.h +++ b/src/corelib/statemachine/qstatemachine_p.h @@ -160,6 +160,7 @@ public: void handleTransitionSignal(QObject *sender, int signalIndex, void **args); void processEvents(EventProcessingMode processingMode); + void cancelAllDelayedEvents(); #ifndef QT_NO_PROPERTIES typedef QPair<QObject *, QByteArray> RestorableId; |