diff options
author | Alessandro Portale <alessandro.portale@qt.io> | 2016-08-19 13:25:49 +0200 |
---|---|---|
committer | Thomas Hartmann <Thomas.Hartmann@theqtcompany.com> | 2016-09-01 09:33:03 +0000 |
commit | 7c3787a8cec5e6c137107737ae4ae8f63fb724d7 (patch) | |
tree | 49e3358392016f743f854426ae8e4328e955ca0a /examples | |
parent | 90b000155eea734a4892eec01e24cd69b5efdd16 (diff) |
TrafficLight example: Use relative image file names in .qml examples
It is not just better practice to reduce the absolute source file names
to a minimum, but in this case it also enables the Qt Quick Designer to
properly display the scene.
Change-Id: I0be935584687c5f5099619ffe9c0e356d0b4d56b
Reviewed-by: Erik Verbruggen <erik.verbruggen@qt.io>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/scxml/trafficlight-common/TrafficLight.qml | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/scxml/trafficlight-common/TrafficLight.qml b/examples/scxml/trafficlight-common/TrafficLight.qml index 87a36ac..9ae08e6 100644 --- a/examples/scxml/trafficlight-common/TrafficLight.qml +++ b/examples/scxml/trafficlight-common/TrafficLight.qml @@ -62,7 +62,7 @@ Window { Image { id: lights - source: "qrc:///background.png" + source: "background.png" MouseArea { anchors.fill: parent @@ -75,7 +75,7 @@ Window { id: redLight x: (lights.width - width) / 2 y: 40 - source: "qrc:///red.png" + source: "red.png" visible: stateMachine.red || stateMachine.redGoingGreen } @@ -83,7 +83,7 @@ Window { id: yellowLight x: (lights.width - width) / 2 y: 135 - source: "qrc:///yellow.png" + source: "yellow.png" visible: stateMachine.yellow || stateMachine.blinking } @@ -91,7 +91,7 @@ Window { id: greenLight x: (lights.width - width) / 2 y: 230 - source: "qrc:///green.png" + source: "green.png" visible: stateMachine.green } } @@ -102,7 +102,7 @@ Window { anchors.bottom: parent.bottom anchors.margins: 20 - source: stateMachine.working ? "qrc:///pause.png" : "qrc:///play.png" + source: stateMachine.working ? "pause.png" : "play.png" onClicked: { if (stateMachine.working) |