summaryrefslogtreecommitdiffstats
path: root/examples/statemachine
diff options
context:
space:
mode:
Diffstat (limited to 'examples/statemachine')
-rw-r--r--examples/statemachine/pingpong/main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/statemachine/pingpong/main.cpp b/examples/statemachine/pingpong/main.cpp
index 7e3d8b1..358c499 100644
--- a/examples/statemachine/pingpong/main.cpp
+++ b/examples/statemachine/pingpong/main.cpp
@@ -86,7 +86,7 @@ protected:
}
virtual void onTransition(QEvent *)
{
- machine()->postEvent(new PingEvent(), 500);
+ machine()->postDelayedEvent(new PingEvent(), 500);
fprintf(stdout, "ping?\n");
}
};
@@ -104,7 +104,7 @@ protected:
}
virtual void onTransition(QEvent *)
{
- machine()->postEvent(new PongEvent(), 500);
+ machine()->postDelayedEvent(new PongEvent(), 500);
fprintf(stdout, "pong!\n");
}
};