~pkunal-parmar/ubuntu-calendar-app/UrlInvocation

« back to all changes in this revision

Viewing changes to AllDayEventComponent.qml

  • Committer: Kunal Parmar
  • Date: 2015-07-16 14:02:53 UTC
  • mfrom: (622.1.72 ubuntu-calendar-app)
  • Revision ID: pkunal.parmar@gmail.com-20150716140253-vvhhy1dzq0sft4wy
mergeĀ fromĀ trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
import QtQuick 2.3
19
19
import Ubuntu.Components 1.1
20
20
import Ubuntu.Components.Popups 1.0
 
21
import QtOrganizer 5.0
21
22
 
22
23
import "dateExt.js" as DateExt
23
24
import "ViewType.js" as ViewType
39
40
        for(var i = 0 ; i < items.length ; ++i) {
40
41
            var event = items[(i)];
41
42
            if( event && event.allDay ) {
42
 
                for(var d = event.startDateTime; d <= event.endDateTime; d = d.addDays(1)) {
 
43
                for(var d = event.startDateTime; d < event.endDateTime; d = d.addDays(1)) {
43
44
                    var key = Qt.formatDateTime(d, "dd-MMM-yyyy");
44
45
                    if( !(key in map)) {
45
46
                        map[key] = [];