diff options
author | Kent Hansen <khansen@trolltech.com> | 2009-05-22 14:31:40 (GMT) |
---|---|---|
committer | Kent Hansen <khansen@trolltech.com> | 2009-05-22 14:31:40 (GMT) |
commit | 1602820bb4d2b13f843594194ace2186f4f72806 (patch) | |
tree | b00d38441edb1029b6e9f59f298c24785519c7ba /src/corelib/statemachine/qsignaltransition_p.h | |
parent | 24d798694b794732240e85fa65b958b8c97cbef5 (diff) | |
download | Qt-1602820bb4d2b13f843594194ace2186f4f72806.zip Qt-1602820bb4d2b13f843594194ace2186f4f72806.tar.gz Qt-1602820bb4d2b13f843594194ace2186f4f72806.tar.bz2 |
make sure signal transition is correctly unregistered/re-registered
When the signal or senderObject is changed while the state is active,
the transition needs to be unregistered _before_ either property is
changed, only _then_ can it be re-registered.
Diffstat (limited to 'src/corelib/statemachine/qsignaltransition_p.h')
-rw-r--r-- | src/corelib/statemachine/qsignaltransition_p.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/corelib/statemachine/qsignaltransition_p.h b/src/corelib/statemachine/qsignaltransition_p.h index a23e58c..339de63 100644 --- a/src/corelib/statemachine/qsignaltransition_p.h +++ b/src/corelib/statemachine/qsignaltransition_p.h @@ -66,7 +66,8 @@ public: static QSignalTransitionPrivate *get(QSignalTransition *q); - void invalidate(); + void unregister(); + void maybeRegister(); QObject *sender; QByteArray signal; |