aboutsummaryrefslogtreecommitdiffstats
path: root/examples/declarative/snake/snake.qml
diff options
context:
space:
mode:
Diffstat (limited to 'examples/declarative/snake/snake.qml')
-rw-r--r--examples/declarative/snake/snake.qml4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/declarative/snake/snake.qml b/examples/declarative/snake/snake.qml
index 03657fec01..f21fc314ac 100644
--- a/examples/declarative/snake/snake.qml
+++ b/examples/declarative/snake/snake.qml
@@ -76,7 +76,7 @@ Rectangle {
Timer {
id: heartbeat;
interval: heartbeatInterval;
- running: activeGame && Qt.application.active
+ running: activeGame
repeat: true
onTriggered: { Logic.move() }
}
@@ -105,7 +105,7 @@ Rectangle {
source: "content/pics/pause.png"
anchors.centerIn: parent;
//opacity is deliberately not animated
- opacity: activeGame && !Qt.application.active
+ opacity: 0 //Was !Qt.application.active && activeGame, but application doesn't work (QTBUG-23331)
}
Image {