Skip to content

Commit

Permalink
Update to not use old properties.
Browse files Browse the repository at this point in the history
Change-Id: I428d702613186adfc761925de23ae67677f286ba
Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
  • Loading branch information
Alan Alpert authored and Qt by Nokia committed Dec 30, 2011
1 parent 8eec051 commit 5aaa2dc
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions examples/declarative/snake/content/Cookie.qml
Expand Up @@ -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 }
}
}

Expand Down
4 changes: 2 additions & 2 deletions examples/declarative/snake/content/Link.qml
Expand Up @@ -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 }
}
}

Expand Down
4 changes: 2 additions & 2 deletions examples/declarative/snake/snake.qml
Expand Up @@ -76,7 +76,7 @@ Rectangle {
Timer {
id: heartbeat;
interval: heartbeatInterval;
running: activeGame && Qt.application.active
running: activeGame
repeat: true
onTriggered: { Logic.move() }
}
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 5aaa2dc

Please sign in to comment.