aboutsummaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorFlorian Bruhin <me@the-compiler.org>2021-11-12 07:57:07 +0100
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2021-11-13 20:44:42 +0000
commitc2eb6d2e7540401503198fafc0235d8e2aa337fd (patch)
treea49b420785f396b846f0e09c7bccfa5292d41c6d /examples
parent839f48397f1784abeea06c429e791b14c753d9b8 (diff)
Examples: Fix copy-paste issue in trafficlight.py
Change-Id: I00db0a8e8668678d5e11a1c469ec658d4a9e0a75 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> (cherry picked from commit 50adf7beaae1202bc0f462bd1ee0294c5d19440a) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'examples')
-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)