~mihirsoni/ubuntu-calendar-app/dateSelectNewEventTest

« back to all changes in this revision

Viewing changes to EventView.qml

  • Committer: Frank Mertens
  • Date: 2013-03-19 23:42:36 UTC
  • mto: This revision was merged to the branch mainline in revision 11.
  • Revision ID: frank@cyblogic.de-20130319234236-p5tcchd8harzcfwa
Added the EventListModel to support the display of event lists.

Show diffs side-by-side

added added

removed removed

Lines of Context:
53
53
    model: 3
54
54
 
55
55
    delegate: DiaryView {
56
 
 
 
56
        dayStart: {
 
57
            if (index == intern.currentIndex) return intern.currentDayStart
 
58
            var previousIndex = intern.currentIndex > 0 ? intern.currentIndex - 1 : 2
 
59
            if (index == previousIndex) return intern.currentDayStart.addDays(-1)
 
60
            return intern.currentDayStart.addDays(1)
 
61
        }
 
62
        width: eventView.width
 
63
        height: eventView.height
57
64
    }
58
65
}