summaryrefslogtreecommitdiffstats
path: root/examples/statemachine
diff options
context:
space:
mode:
authorKent Hansen <khansen@trolltech.com>2009-04-28 11:10:35 (GMT)
committerKent Hansen <khansen@trolltech.com>2009-04-28 11:10:35 (GMT)
commit77abdfda731e010f8f93eb083478d10c7fd860fb (patch)
treeb6a62893db5cbd9a7533b069d9438191de6f62ab /examples/statemachine
parenta460bee2b3051bf6a5176b5c620f81ff962a7f53 (diff)
downloadQt-77abdfda731e010f8f93eb083478d10c7fd860fb.zip
Qt-77abdfda731e010f8f93eb083478d10c7fd860fb.tar.gz
Qt-77abdfda731e010f8f93eb083478d10c7fd860fb.tar.bz2
compile after api changes
Diffstat (limited to 'examples/statemachine')
-rw-r--r--examples/statemachine/composition/main.cpp4
-rw-r--r--examples/statemachine/trafficlight/main.cpp8
2 files changed, 6 insertions, 6 deletions
diff --git a/examples/statemachine/composition/main.cpp b/examples/statemachine/composition/main.cpp
index 927fc62..0afff66 100644
--- a/examples/statemachine/composition/main.cpp
+++ b/examples/statemachine/composition/main.cpp
@@ -86,11 +86,11 @@ int main(int argc, char **argv)
s2_timer->addTransition(&t2, SIGNAL(timeout()), s2_done);
s2->setInitialState(s2_timer);
- s1->addFinishedTransition(s2);
+ s1->addTransition(s1, SIGNAL(finished()), s2);
QFinalState *s3 = new QFinalState();
s3->setObjectName("s3");
- s2->addFinishedTransition(s3);
+ s2->addTransition(s2, SIGNAL(finished()), s3);
machine.addState(s1);
machine.addState(s2);
diff --git a/examples/statemachine/trafficlight/main.cpp b/examples/statemachine/trafficlight/main.cpp
index 115ecad..ed0eeea 100644
--- a/examples/statemachine/trafficlight/main.cpp
+++ b/examples/statemachine/trafficlight/main.cpp
@@ -157,14 +157,14 @@ public:
redGoingYellow->setObjectName("redGoingYellow");
LightState *yellowGoingGreen = new LightState(widget->yellowLight(), 1000);
yellowGoingGreen->setObjectName("yellowGoingGreen");
- redGoingYellow->addFinishedTransition(yellowGoingGreen);
+ redGoingYellow->addTransition(redGoingYellow, SIGNAL(finished()), yellowGoingGreen);
LightState *greenGoingYellow = new LightState(widget->greenLight(), 3000);
greenGoingYellow->setObjectName("greenGoingYellow");
- yellowGoingGreen->addFinishedTransition(greenGoingYellow);
+ yellowGoingGreen->addTransition(yellowGoingGreen, SIGNAL(finished()), greenGoingYellow);
LightState *yellowGoingRed = new LightState(widget->yellowLight(), 1000);
yellowGoingRed->setObjectName("yellowGoingRed");
- greenGoingYellow->addFinishedTransition(yellowGoingRed);
- yellowGoingRed->addFinishedTransition(redGoingYellow);
+ greenGoingYellow->addTransition(greenGoingYellow, SIGNAL(finished()), yellowGoingRed);
+ yellowGoingRed->addTransition(yellowGoingRed, SIGNAL(finished()), redGoingYellow);
machine->addState(redGoingYellow);
machine->addState(yellowGoingGreen);