summaryrefslogtreecommitdiffstats
path: root/src/corelib/statemachine/qabstracttransition.h
diff options
context:
space:
mode:
authorKent Hansen <khansen@trolltech.com>2009-05-05 18:17:43 +0200
committerKent Hansen <khansen@trolltech.com>2009-05-05 18:17:43 +0200
commit2e0430832d3656753f73b09765769d10aa51add3 (patch)
tree04c9fa068c57b90de15ebd01831a0e140b2b8e6c /src/corelib/statemachine/qabstracttransition.h
parent6eae8aedd14acbc4ea73f336124b0243e9ebb9c0 (diff)
add event as argument to onEntry(), onExit() and onTransition()
Accessing the event can be useful. E.g., onEntry() can do some common event processing regardless of which transition caused the state to be entered; onTransition() can be used in combination with eventTest(), where eventTest() would first check that the input matches some criteria, and then the actual processing of that input would be done in onTransition.
Diffstat (limited to 'src/corelib/statemachine/qabstracttransition.h')
-rw-r--r--src/corelib/statemachine/qabstracttransition.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/statemachine/qabstracttransition.h b/src/corelib/statemachine/qabstracttransition.h
index 79ab8080cf..e2079444d1 100644
--- a/src/corelib/statemachine/qabstracttransition.h
+++ b/src/corelib/statemachine/qabstracttransition.h
@@ -90,7 +90,7 @@ public:
protected:
virtual bool eventTest(QEvent *event) const = 0;
- virtual void onTransition() = 0;
+ virtual void onTransition(QEvent *event) = 0;
bool event(QEvent *e);