aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Bruhin <me@the-compiler.org>2021-11-12 07:57:07 +0100
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2021-11-13 19:45:10 +0100
commit50adf7beaae1202bc0f462bd1ee0294c5d19440a (patch)
tree6a528f2e19d575e73222cfa52d6561adeb1f9a49
parent5f41829130badf34721cb24f1a9af29f777d5927 (diff)
Examples: Fix copy-paste issue in trafficlight.py
Pick-to: 6.2 Change-Id: I00db0a8e8668678d5e11a1c469ec658d4a9e0a75 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
-rw-r--r--examples/widgets/state-machine/trafficlight/trafficlight.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/widgets/state-machine/trafficlight/trafficlight.py b/examples/widgets/state-machine/trafficlight/trafficlight.py
index 4bfced01f..4fbd5e4e8 100644
--- a/examples/widgets/state-machine/trafficlight/trafficlight.py
+++ b/examples/widgets/state-machine/trafficlight/trafficlight.py
@@ -123,13 +123,13 @@ class TrafficLight(QWidget):
red_going_yellow = create_light_state(widget._red_light, 1000)
red_going_yellow.setObjectName('redGoingYellow')
yellow_going_green = create_light_state(widget._red_light, 1000)
- yellow_going_green.setObjectName('redGoingYellow')
+ yellow_going_green.setObjectName('yellowGoingGreen')
red_going_yellow.addTransition(red_going_yellow, SIGNAL('finished()'), yellow_going_green)
green_going_yellow = create_light_state(widget._yellow_light, 3000)
- green_going_yellow.setObjectName('redGoingYellow')
+ green_going_yellow.setObjectName('greenGoingYellow')
yellow_going_green.addTransition(yellow_going_green, SIGNAL('finished()'), green_going_yellow)
yellow_going_red = create_light_state(widget._green_light, 1000)
- yellow_going_red.setObjectName('redGoingYellow')
+ yellow_going_red.setObjectName('yellowGoingRed')
green_going_yellow.addTransition(green_going_yellow, SIGNAL('finished()'), yellow_going_red)
yellow_going_red.addTransition(yellow_going_red, SIGNAL('finished()'), red_going_yellow)