From b38a88ce3a02bd6306f1a6ff3ac23ac29a23830d Mon Sep 17 00:00:00 2001 From: APTX Date: Mon, 10 Jan 2011 03:17:16 +0100 Subject: [PATCH] Add missing files --- qml/tim-game/Components/Loading.qml | 8 ++++++++ qml/tim-game/Components/ScoreModel.qml | 18 ++++++++++++++++++ qml/tim-game/Components/qmldir | 11 +++++++++++ 3 files changed, 37 insertions(+) create mode 100644 qml/tim-game/Components/Loading.qml create mode 100644 qml/tim-game/Components/ScoreModel.qml create mode 100644 qml/tim-game/Components/qmldir diff --git a/qml/tim-game/Components/Loading.qml b/qml/tim-game/Components/Loading.qml new file mode 100644 index 0000000..94b77f2 --- /dev/null +++ b/qml/tim-game/Components/Loading.qml @@ -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 index 0000000..6214b07 --- /dev/null +++ b/qml/tim-game/Components/ScoreModel.qml @@ -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 index 0000000..d95203b --- /dev/null +++ b/qml/tim-game/Components/qmldir @@ -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 -- 2.52.0