~renatofilho/ubuntu-calendar-app/optimize

« back to all changes in this revision

Viewing changes to TimeLineBaseComponent.qml

  • Committer: Renato Araujo Oliveira Filho
  • Date: 2016-03-01 18:47:39 UTC
  • Revision ID: renato.filho@canonical.com-20160301184739-go6fy3oodrik4pb3
Switching from week to day view will show the first day of the week or the last event start date clicked.

Show diffs side-by-side

added added

removed removed

Lines of Context:
406
406
            flickable: root.isCurrentItem ? timeLineView : null
407
407
            clip: true
408
408
            opacity: parent.enabled ? 1.0 : 0.3
 
409
 
 
410
            // send a signal to update application current date
 
411
            onClicked: root.dateHighlighted(event.startDateTime)
 
412
            onIsLiveEditingChanged: {
 
413
                if (isLiveEditing)
 
414
                    root.dateHighlighted(event.startDateTime)
 
415
            }
409
416
        }
410
417
    }
411
418
}