diff options
author | Charles Yin <charles.yin@nokia.com> | 2010-12-01 14:21:47 +1000 |
---|---|---|
committer | Charles Yin <charles.yin@nokia.com> | 2010-12-01 14:21:47 +1000 |
commit | 546ed77d09d00fba35dd0881cb94c3d5870941c6 (patch) | |
tree | 2f8a09a7efaacbfbdf001f61f8580402d65576bc | |
parent | 6d7cf1ceea2eaf1c70f36f0f52bd4688fd4d5365 (diff) |
organizer qml example:add example ics file for memory backend
Change-Id: If1a761c2dd11245e21f7b4873b6acf3dbdfedb6a
-rw-r--r-- | examples/qmlorganizer/contents/MenuBar.qml | 3 | ||||
-rw-r--r-- | examples/qmlorganizer/contents/monthview.qml | 10 | ||||
-rw-r--r-- | examples/qmlorganizer/organizer.qml | 11 | ||||
-rw-r--r-- | examples/qmlorganizer/qmlorganizer.pro | 3 | ||||
-rw-r--r-- | examples/qmlorganizer/qmlorganizer.qrc | 1 |
5 files changed, 14 insertions, 14 deletions
diff --git a/examples/qmlorganizer/contents/MenuBar.qml b/examples/qmlorganizer/contents/MenuBar.qml index c064d7df97..095f2d2bb2 100644 --- a/examples/qmlorganizer/contents/MenuBar.qml +++ b/examples/qmlorganizer/contents/MenuBar.qml @@ -52,11 +52,8 @@ Rectangle { } Row { spacing: 2 - //anchors.horizontalCenter: parent.horizontalCenter; Image { id: quitButton - anchors.left: parent.left//; anchors.leftMargin: 0 - anchors.verticalCenter: parent.verticalCenter height: monthButton.height width:height source: "images/quit.png" diff --git a/examples/qmlorganizer/contents/monthview.qml b/examples/qmlorganizer/contents/monthview.qml index 7703c7a72b..ea1db78bc2 100644 --- a/examples/qmlorganizer/contents/monthview.qml +++ b/examples/qmlorganizer/contents/monthview.qml @@ -49,7 +49,15 @@ Item { property date startDay:new Date(year, month, 1) property int startWeekday:startDay.getDay() property int today - property OrganizerModel model:null + OrganizerModel { + id: organizer; + startPeriod:startDay; + endPeriod:new Date(year, month+1, 1); + Component.onCompleted : { + if (manager == "memory") + organizer.importItems(Qt.resolvedUrl("2010-FIFA-WorldCup.ics")); + } + } anchors.fill: parent diff --git a/examples/qmlorganizer/organizer.qml b/examples/qmlorganizer/organizer.qml index 88c2a22a6f..ccc9a9ee68 100644 --- a/examples/qmlorganizer/organizer.qml +++ b/examples/qmlorganizer/organizer.qml @@ -56,8 +56,6 @@ Item { SystemPalette { id: activePalette } - // OrganizerModel {id: organizerModelId; manager:'memory'; startPeriod:'2010-08-12T13:22:01'; endPeriod:'2010-09-12T13:22:01'} - //OrganizerItem {id:organizerItem; guid:'1112232133'} // Quick hack top menu bar to change views TimeScape.MenuBar { id: menuBar; width: parent.width; height: 40; opacity: 0.9 } @@ -66,7 +64,8 @@ Item { State {name: "TimelineView"; PropertyChanges { target: timelineView; opacity: 1; }}, State {name: "WeekView"; PropertyChanges { target: weekView; opacity: 1; }}, State {name: "DayView"; PropertyChanges { target: dayView; opacity: 1; }}, - State {name: "AgenderView"; PropertyChanges { target: agenderView; opacity: 1; }} + State {name: "AgenderView"; PropertyChanges { target: agenderView; opacity: 1; }}, + State {name: "DetailsView"; PropertyChanges { target: detailsView; opacity: 1; }} ] transitions: [ Transition { @@ -89,7 +88,6 @@ Item { // TODO these should be components too Rectangle { id: monthView; - color: "#808000"; width: 360; height: 600; opacity: 0; @@ -98,7 +96,6 @@ Item { } Rectangle { id: timelineView; - color: "#008080"; width: 360; height: 600; opacity: 0; @@ -108,7 +105,6 @@ Item { } Rectangle { id: weekView; - color: "#008000"; width: 360; height: 600; opacity: 0; @@ -118,7 +114,6 @@ Item { } Rectangle { id: dayView; - color: "#F08000"; width: 360; height: 600; opacity: 0; @@ -128,7 +123,6 @@ Item { } Rectangle { id: agenderView; - color: "#F08000"; width: 360; height: 600; opacity: 0; @@ -138,7 +132,6 @@ Item { } Rectangle { id: detailsView; - color: "#F08000"; width: 360; height: 600; opacity: 0; diff --git a/examples/qmlorganizer/qmlorganizer.pro b/examples/qmlorganizer/qmlorganizer.pro index c458027c43..158e35defd 100644 --- a/examples/qmlorganizer/qmlorganizer.pro +++ b/examples/qmlorganizer/qmlorganizer.pro @@ -36,7 +36,8 @@ OTHER_FILES += \ contents/images/button-pressed.png \ contents/images/button.png \ contents/month.js \ - contents/monthview.qml + contents/monthview.qml \ + contents/2010-FIFA-WorldCup.ics symbian: { load(data_caging_paths) diff --git a/examples/qmlorganizer/qmlorganizer.qrc b/examples/qmlorganizer/qmlorganizer.qrc index c790f50be7..baacc162d2 100644 --- a/examples/qmlorganizer/qmlorganizer.qrc +++ b/examples/qmlorganizer/qmlorganizer.qrc @@ -26,5 +26,6 @@ <file>contents/images/toolbutton.png</file> <file>contents/images/toolbutton.sci</file> <file>contents/month.js</file> + <file>contents/2010-FIFA-WorldCup.ics</file> </qresource> </RCC> |