diff options
author | Daniel Molkentin <daniel.molkentin@nokia.com> | 2010-10-18 17:37:56 (GMT) |
---|---|---|
committer | Daniel Molkentin <daniel.molkentin@nokia.com> | 2010-10-19 09:05:27 (GMT) |
commit | 11da34417464ae2806e3f25a170f4d330cfaa090 (patch) | |
tree | cd9fffca2bb2f958d248b4f7c30300cd3714ea69 /examples/declarative | |
parent | e39a2e39451bf106a9845f8a60fc571faaa4dde5 (diff) | |
download | Qt-11da34417464ae2806e3f25a170f4d330cfaa090.zip Qt-11da34417464ae2806e3f25a170f4d330cfaa090.tar.gz Qt-11da34417464ae2806e3f25a170f4d330cfaa090.tar.bz2 |
Tic-tac-toe: Fix z-order of status text.
Reviewed-By: Bea Lam
Diffstat (limited to 'examples/declarative')
-rw-r--r-- | examples/declarative/toys/tic-tac-toe/tic-tac-toe.qml | 34 |
1 files changed, 18 insertions, 16 deletions
diff --git a/examples/declarative/toys/tic-tac-toe/tic-tac-toe.qml b/examples/declarative/toys/tic-tac-toe/tic-tac-toe.qml index 4c1ad51..c60f2df 100644 --- a/examples/declarative/toys/tic-tac-toe/tic-tac-toe.qml +++ b/examples/declarative/toys/tic-tac-toe/tic-tac-toe.qml @@ -55,22 +55,6 @@ Rectangle { source: "content/pics/board.png" } - Text { - id: messageDisplay - anchors.centerIn: parent - color: "blue" - style: Text.Outline; styleColor: "white" - font.pixelSize: 50; font.bold: true - visible: false - - Timer { - running: messageDisplay.visible - onTriggered: { - messageDisplay.visible = false; - Logic.restartGame(); - } - } - } Column { id: display @@ -118,4 +102,22 @@ Rectangle { } } } + + + Text { + id: messageDisplay + anchors.centerIn: parent + color: "blue" + style: Text.Outline; styleColor: "white" + font.pixelSize: 50; font.bold: true + visible: false + + Timer { + running: messageDisplay.visible + onTriggered: { + messageDisplay.visible = false; + Logic.restartGame(); + } + } + } } |