From 5aaa2dca91ea42cc3d6d362051efcf790fa0d484 Mon Sep 17 00:00:00 2001 From: Alan Alpert Date: Fri, 23 Dec 2011 13:39:12 +1000 Subject: [PATCH] Update to not use old properties. Change-Id: I428d702613186adfc761925de23ae67677f286ba Reviewed-by: Michael Brasser --- examples/declarative/snake/content/Cookie.qml | 4 ++-- examples/declarative/snake/content/Link.qml | 4 ++-- examples/declarative/snake/snake.qml | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/examples/declarative/snake/content/Cookie.qml b/examples/declarative/snake/content/Cookie.qml index d9fedd9..f3c49fa 100644 --- a/examples/declarative/snake/content/Cookie.qml +++ b/examples/declarative/snake/content/Cookie.qml @@ -79,9 +79,9 @@ Item { anchors.fill: parent group: "star" emitRate: 50 - emitting: false + enabled: false lifeSpan: 700 - acceleration: AngledDirection { angleVariation: 360; magnitude: 200 } + acceleration: AngleDirection { angleVariation: 360; magnitude: 200 } } } diff --git a/examples/declarative/snake/content/Link.qml b/examples/declarative/snake/content/Link.qml index 31ad622..259cab6 100644 --- a/examples/declarative/snake/content/Link.qml +++ b/examples/declarative/snake/content/Link.qml @@ -104,9 +104,9 @@ Item { id:link anchors.fill: parent group: "star" emitRate: 50 - emitting: false + enabled: false lifeSpan: 700 - acceleration: AngledDirection { angleVariation: 360; magnitude: 200 } + acceleration: AngleDirection { angleVariation: 360; magnitude: 200 } } } diff --git a/examples/declarative/snake/snake.qml b/examples/declarative/snake/snake.qml index 03657fe..f21fc31 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 { -- 2.7.4