]> Some of my projects - tim.git/commitdiff
Add missing files
authorAPTX <marek321@gmail.com>
Mon, 10 Jan 2011 02:17:16 +0000 (03:17 +0100)
committerAPTX <marek321@gmail.com>
Mon, 10 Jan 2011 02:17:16 +0000 (03:17 +0100)
qml/tim-game/Components/Loading.qml [new file with mode: 0644]
qml/tim-game/Components/ScoreModel.qml [new file with mode: 0644]
qml/tim-game/Components/qmldir [new file with mode: 0644]

diff --git a/qml/tim-game/Components/Loading.qml b/qml/tim-game/Components/Loading.qml
new file mode 100644 (file)
index 0000000..94b77f2
--- /dev/null
@@ -0,0 +1,8 @@
+import Qt 4.7
+
+Image {
+    id: loading; source: "images/loading.png"
+    NumberAnimation on rotation {
+        from: 0; to: 360; running: loading.visible == true; loops: Animation.Infinite; duration: 900
+    }
+}
diff --git a/qml/tim-game/Components/ScoreModel.qml b/qml/tim-game/Components/ScoreModel.qml
new file mode 100644 (file)
index 0000000..6214b07
--- /dev/null
@@ -0,0 +1,18 @@
+import Qt 4.7
+
+Item { id: wrapper
+       property variant model: scoreModel
+       property int status:scoreModel.status
+       function reload() { scoreModel.reload(); }
+       XmlListModel {
+               id: scoreModel
+
+               source: "http://localhost/tim/index.php?a=score"
+               query: "/message/scores/entry"
+
+               XmlRole { name: "position"; query: "position/string()" }
+               XmlRole { name: "userId"; query: "user-id/string()" }
+               XmlRole { name: "userName"; query: "user-name/string()" }
+               XmlRole { name: "score"; query: "score/string()" }
+       }
+}
diff --git a/qml/tim-game/Components/qmldir b/qml/tim-game/Components/qmldir
new file mode 100644 (file)
index 0000000..d95203b
--- /dev/null
@@ -0,0 +1,11 @@
+Button 1.0 Button.qml
+ChatView 1.0 ChatView.qml
+HighScoreForm 1.0 HighScoreForm.qml
+Input 1.0 Input.qml
+Loading 1.0 Loading.qml
+LoginForm 1.0 LoginForm.qml
+MessageBox 1.0 MessageBox.qml
+RegistrationForm 1.0 RegistrationForm.qml
+ScoreDelegate 1.0 ScoreDelegate.qml
+ScoreModel 1.0 ScoreModel.qml
+ToolBar 1.0 ToolBar.qml