summaryrefslogtreecommitdiffstats
path: root/examples/statemachine/clockticking/main.cpp
diff options
context:
space:
mode:
authorGeir Vattekar <geir.vattekar@trolltech.com>2009-05-07 13:56:50 (GMT)
committerGeir Vattekar <geir.vattekar@trolltech.com>2009-05-07 13:56:50 (GMT)
commit90057dabcb99759bcb42c1c21db7151c69d98706 (patch)
treec2215154650ea6ec0d9ad13cb4271cca55a62449 /examples/statemachine/clockticking/main.cpp
parent2a410483a29c0e821588fd94c3179f7ab775ebbf (diff)
parent8b57ae82ef507db1912a35fbe5d60f2cc3668cdb (diff)
downloadQt-90057dabcb99759bcb42c1c21db7151c69d98706.zip
Qt-90057dabcb99759bcb42c1c21db7151c69d98706.tar.gz
Qt-90057dabcb99759bcb42c1c21db7151c69d98706.tar.bz2
Merge branch 'kinetic-animations' of git@scm.dev.nokia.troll.no:qt/kinetic into kinetic-animations
Diffstat (limited to 'examples/statemachine/clockticking/main.cpp')
-rw-r--r--examples/statemachine/clockticking/main.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/statemachine/clockticking/main.cpp b/examples/statemachine/clockticking/main.cpp
index 9b54f29..ea8e692 100644
--- a/examples/statemachine/clockticking/main.cpp
+++ b/examples/statemachine/clockticking/main.cpp
@@ -61,7 +61,7 @@ public:
: QState(parent) {}
protected:
- virtual void onEntry()
+ virtual void onEntry(QEvent *)
{
fprintf(stdout, "ClockState entered; posting the initial tick\n");
machine()->postEvent(new ClockEvent());
@@ -77,7 +77,7 @@ protected:
virtual bool eventTest(QEvent *e) const {
return (e->type() == QEvent::User+2);
}
- virtual void onTransition()
+ virtual void onTransition(QEvent *)
{
fprintf(stdout, "ClockTransition triggered; posting another tick with a delay of 1 second\n");
machine()->postEvent(new ClockEvent(), 1000);
@@ -93,7 +93,7 @@ protected:
virtual bool eventTest(QEvent *e) const {
return (e->type() == QEvent::User+2);
}
- virtual void onTransition()
+ virtual void onTransition(QEvent *)
{
fprintf(stdout, "ClockListener heard a tick!\n");
}