From: Max Waterman Date: Sat, 30 Oct 2010 08:10:20 +0000 (+0300) Subject: playing with qtquick X-Git-Url: https://vcs.maemo.org/git/?a=commitdiff_plain;h=c980915f049c584f45e534f851fddd88f67df054;p=ptas playing with qtquick --- diff --git a/zouba/qtquickui/qtquickui.qml b/zouba/qtquickui/qtquickui.qml new file mode 100644 index 0000000..164c20e --- /dev/null +++ b/zouba/qtquickui/qtquickui.qml @@ -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 index 0000000..d55137e --- /dev/null +++ b/zouba/qtquickui/qtquickui.qmlproject @@ -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" ] +}