playing with qtquick
authorMax Waterman <davidmaxwaterman+maemogit@fastmail.co.uk>
Sat, 30 Oct 2010 08:18:53 +0000 (11:18 +0300)
committerMax Waterman <davidmaxwaterman+maemogit@fastmail.co.uk>
Sat, 30 Oct 2010 08:18:53 +0000 (11:18 +0300)
zouba/qtquickui/qtquickui.qml [new file with mode: 0644]
zouba/qtquickui/qtquickui.qmlproject [new file with mode: 0644]

diff --git a/zouba/qtquickui/qtquickui.qml b/zouba/qtquickui/qtquickui.qml
new file mode 100644 (file)
index 0000000..164c20e
--- /dev/null
@@ -0,0 +1,30 @@
+import Qt 4.7
+import com.meego 1.0
+
+Window {
+    id: window
+
+    Component {
+        id: journeysPageComponent
+
+        Page {
+            title: "Journeys"
+            ListView {
+                anchors.fill: parent
+                model: Journeys { }
+                delegate: BasicListItem {
+                    title: journeys
+                    onClicked: {
+                        window.nextPage(Qt.createComponent(source));
+                    }
+                }
+
+                PositionIndicator { }
+            }
+        }
+    }
+
+    Component.onCompleted: {
+        window.nextPage(pageComponent)
+    }
+}
diff --git a/zouba/qtquickui/qtquickui.qmlproject b/zouba/qtquickui/qtquickui.qmlproject
new file mode 100644 (file)
index 0000000..d55137e
--- /dev/null
@@ -0,0 +1,19 @@
+/* File generated by QtCreator */
+
+import QmlProject 1.0
+
+Project {
+    /* Include .qml, .js, and image files from current directory and subdirectories */
+    QmlFiles {
+        directory: "."
+    }
+    JavaScriptFiles {
+        directory: "."
+    }
+    ImageFiles {
+        directory: "."
+    }
+    /* List of plugin directories passed to QML runtime */
+    // importPaths: [ "../exampleplugin" ]
+    importPaths: [ "/opt/qtsdk-2010.05/qt/lib", "/opt/qtsdk-2010.05/qt/import" ]
+}