~ubuntu-calendar-dev/ubuntu-calendar-app/ViewRedisign

« back to all changes in this revision

Viewing changes to TimeLineHeader.qml

  • Committer: Mihir Soni
  • Date: 2014-09-17 19:16:01 UTC
  • Revision ID: mihirsoni.123@gmail.com-20140917191601-6t6datlzzcjhk07e
code indentation

Show diffs side-by-side

added added

removed removed

Lines of Context:
45
45
 
46
46
        width: {
47
47
            if( type == ViewType.ViewTypeWeek ) {
48
 
                 parent.width
 
48
                parent.width
49
49
            } else if( type == ViewType.ViewTypeDay && isCurrentItem ){
50
50
                (header.width/7) * 5
51
51
            } else {
55
55
 
56
56
        startDay: {
57
57
            (type == ViewType.ViewTypeWeek) ?
58
 
                date.addDays(7*header.indexType(index)) :
59
 
                date.addDays(1*header.indexType(index));
 
58
                        date.addDays(7*header.indexType(index)) :
 
59
                        date.addDays(1*header.indexType(index));
60
60
        }
61
61
 
62
62
        onDateSelected: {