summaryrefslogtreecommitdiff
path: root/sowatchui/qml/MainPage.qml
diff options
context:
space:
mode:
authorJavier S. Pedro <maemo@javispedro.com>2012-04-26 01:36:20 +0200
committerJavier S. Pedro <maemo@javispedro.com>2012-04-26 01:36:20 +0200
commit93f3acd128d6b349efe14e97b12c2703ca4f81f3 (patch)
tree937f3de2307444f0c28d6d21f26f1580e789b074 /sowatchui/qml/MainPage.qml
parent1375a26b135547fdd8e07db62acf8116a8482560 (diff)
downloadsowatch-93f3acd128d6b349efe14e97b12c2703ca4f81f3.tar.gz
sowatch-93f3acd128d6b349efe14e97b12c2703ca4f81f3.zip
Moved the core framework to GConf & D-Bus
Diffstat (limited to 'sowatchui/qml/MainPage.qml')
-rw-r--r--sowatchui/qml/MainPage.qml62
1 files changed, 60 insertions, 2 deletions
diff --git a/sowatchui/qml/MainPage.qml b/sowatchui/qml/MainPage.qml
index 45b72f3..a7ba7d7 100644
--- a/sowatchui/qml/MainPage.qml
+++ b/sowatchui/qml/MainPage.qml
@@ -1,9 +1,67 @@
import QtQuick 1.1
import com.nokia.meego 1.0
-import "sowatch.js" as Sowatch
-
Page {
+ id: mainPage
tools: commonTools
+ ListModel {
+ id: testModel
+ ListElement {
+ name: "one"
+ }
+ ListElement {
+ name: "two"
+ }
+ }
+
+ Flickable {
+ anchors.fill: parent
+ contentWidth: mainPage.width
+ contentHeight: mainColumn.height + 100
+
+ Column {
+ id: mainColumn
+
+ width: mainPage.width
+ height: childrenRect.height
+ spacing: 8
+
+ ListView {
+ model: testModel
+ width: mainPage.width
+ height: 50*model.count
+ clip: true
+ interactive: false
+ delegate: Rectangle {
+ height: 50
+ width: mainPage.width
+ color: "red"
+ Text {
+ text: name
+ }
+ }
+ }
+ ListView {
+ model: testModel
+ width: mainPage.width
+ height: 50*model.count
+ clip: true
+ interactive: false
+ delegate: Rectangle {
+ height: 50
+ width: mainPage.width
+ color: "green"
+ Text {
+ text: name
+ }
+ }
+ }
+ Button {
+ anchors.horizontalCenter: parent.horizontalCenter
+ text: qsTr("Refresh")
+ onClicked: Sowatch.refreshWatches()
+ }
+ }
+ }
}