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

« back to all changes in this revision

Viewing changes to NewEvent.qml

  • Committer: Tarmac
  • Author(s): Kunal Parmar
  • Date: 2015-05-22 12:25:24 UTC
  • mfrom: (638.1.2 ubuntu-calendar-app)
  • Revision ID: tarmac-20150522122524-l0xugnc750fpbm2n
Resolves Bug #1419001

Setting default reminder time to 15 min. Fixes: https://bugs.launchpad.net/bugs/1419001.

Approved by Ubuntu Phone Apps Jenkins Bot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
230
230
    }
231
231
 
232
232
    VisualReminder{
233
 
        id:visualReminder
 
233
        id: visualReminder
 
234
        //default reminder time = 15 min
 
235
        secondsBeforeStart: 900
234
236
    }
235
237
    AudibleReminder{
236
 
        id:audibleReminder
 
238
        id: audibleReminder
 
239
        //default reminder time = 15 min
 
240
        secondsBeforeStart: 900
237
241
    }
238
242
 
239
243
    function getDaysOfWeek(){
596
600
                id:eventReminder
597
601
                objectName  : "eventReminder"
598
602
 
599
 
                anchors{
600
 
                    left:parent.left
601
 
                }
 
603
                anchors.left:parent.left
602
604
                showDivider: false
603
605
                progression: true
604
606
                text: i18n.tr("Reminder")
609
611
 
610
612
                subText:{
611
613
                    if(visualReminder.secondsBeforeStart !== -1) {
612
 
                        for(var i=0; i<reminderModel.count; i++) {
613
 
                            if(visualReminder.secondsBeforeStart === reminderModel.get(i).value)
 
614
                        for( var i=0; i<reminderModel.count; i++ ) {
 
615
                            if(visualReminder.secondsBeforeStart === reminderModel.get(i).value) {
614
616
                                return reminderModel.get(i).label
 
617
                            }
615
618
                        }
616
 
                    } else {
617
 
                        reminderModel.get(0).label
618
619
                    }
619
620
                }
620
621