summaryrefslogtreecommitdiff
path: root/demos/declarative
diff options
context:
space:
mode:
authorJoona Petrell <joona.t.petrell@nokia.com>2010-12-23 12:24:47 +1000
committerJoona Petrell <joona.t.petrell@nokia.com>2011-01-07 15:04:09 +1000
commitd3a6fcd9174b893aaac9db7d5e541ceb54b12402 (patch)
treec230bacdbb45ed0bd8454306383570232aa2019c /demos/declarative
parent5f4bf308ac7d4c81374f651103f85d45e0065d05 (diff)
downloadqt4-tools-d3a6fcd9174b893aaac9db7d5e541ceb54b12402.tar.gz
Introduce Qt.application.active property
Replaces qmlviewer's runtime.activeWindow property. Task-number: QTBUG-13351 Reviewed-by: Martin Jones
Diffstat (limited to 'demos/declarative')
-rw-r--r--demos/declarative/snake/snake.qml2
1 files changed, 1 insertions, 1 deletions
diff --git a/demos/declarative/snake/snake.qml b/demos/declarative/snake/snake.qml
index af86aac1ce..366c1727d2 100644
--- a/demos/declarative/snake/snake.qml
+++ b/demos/declarative/snake/snake.qml
@@ -105,7 +105,7 @@ Rectangle {
source: "content/pics/pause.png"
anchors.centerIn: parent;
//opacity is deliberately not animated
- opacity: activeGame && !runtime.isActiveWindow
+ opacity: activeGame && !Qt.application.active
}
Image {