diff options
Diffstat (limited to 'examples/statemachine')
-rw-r--r-- | examples/statemachine/rogue/movementtransition.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/statemachine/rogue/movementtransition.h b/examples/statemachine/rogue/movementtransition.h index b919360..3452155 100644 --- a/examples/statemachine/rogue/movementtransition.h +++ b/examples/statemachine/rogue/movementtransition.h @@ -61,7 +61,7 @@ public: //![1] protected: bool eventTest(QEvent *event) { - if (event->type() == QEvent::Wrapped && + if (event->type() == QEvent::StateMachineWrapped && static_cast<QStateMachine::WrappedEvent *>(event)->event()->type() == QEvent::KeyPress) { QEvent *wrappedEvent = static_cast<QStateMachine::WrappedEvent *>(event)->event(); |