summaryrefslogtreecommitdiffstats
path: root/demos/declarative
diff options
context:
space:
mode:
authormae <qt-info@nokia.com>2010-03-15 09:33:43 (GMT)
committermae <qt-info@nokia.com>2010-03-15 09:35:45 (GMT)
commit642e73beb83012ec243014bf34ec97f880fc1d37 (patch)
tree52a1fa31d1c209bd0461ea9dee9e4ed17c15907c /demos/declarative
parent946c129376058ba1b02349df833498a5cab418a4 (diff)
downloadQt-642e73beb83012ec243014bf34ec97f880fc1d37.zip
Qt-642e73beb83012ec243014bf34ec97f880fc1d37.tar.gz
Qt-642e73beb83012ec243014bf34ec97f880fc1d37.tar.bz2
Import "content" with as qualifier to support network without qmldir
Diffstat (limited to 'demos/declarative')
-rw-r--r--demos/declarative/snake/snake.qml10
1 files changed, 5 insertions, 5 deletions
diff --git a/demos/declarative/snake/snake.qml b/demos/declarative/snake/snake.qml
index f9d02c7..317c7de 100644
--- a/demos/declarative/snake/snake.qml
+++ b/demos/declarative/snake/snake.qml
@@ -1,5 +1,5 @@
import Qt 4.6
-import "content"
+import "content" as Content
Rectangle {
id: screen;
@@ -27,7 +27,7 @@ Rectangle {
property var head;
- HighScoreModel {
+ Content.HighScoreModel {
id: highScores
game: "Snake"
}
@@ -46,7 +46,7 @@ Rectangle {
onTriggered: { moveSkull() }
}
Timer {
- id: startNewGameTimer;
+
interval: 700;
onTriggered: {startNewGame(); }
}
@@ -97,7 +97,7 @@ Rectangle {
height: numRowsAvailable * gridSize + 2*margin
- Skull {
+ Content.Skull {
id: skull
}
@@ -148,7 +148,7 @@ Rectangle {
height: 32; width: parent.width
anchors.bottom: screen.bottom
- Button {
+ Content.Button {
id: btnA; text: "New Game"; onClicked: {startNewGame();}
anchors.left: parent.left; anchors.leftMargin: 3
anchors.verticalCenter: parent.verticalCenter