~ubuntu-clock-dev/ubuntu-clock-app/reboot-packaging

« back to all changes in this revision

Viewing changes to app/ubuntu-clock-app.qml

  • Committer: Nekhelesh Ramananthan
  • Date: 2014-07-26 09:34:15 UTC
  • mto: (37.1.1 reboot)
  • mto: This revision was merged to the branch mainline in revision 37.
  • Revision ID: krnekhelesh@gmail.com-20140726093415-67r3x357o0fnq08n
Initial working version

Show diffs side-by-side

added added

removed removed

Lines of Context:
57
57
 
58
58
    useDeprecatedToolbar: false
59
59
 
60
 
    onApplicationStateChanged: {
61
 
        /*
62
 
          Update Clock time immediately when the clock app is brought from
63
 
          suspend instead of waiting for the next minute to update.
64
 
        */
65
 
        if(applicationState)
66
 
            clockPage.updateTime()
67
 
    }
68
 
 
69
60
    Background {}
70
61
 
71
 
    Timer {
72
 
        id: clockTimer
73
 
 
74
 
        interval: 1000
75
 
        repeat: true
76
 
        running: true
77
 
        onTriggered: clockPage.updateTime()
78
 
    }
79
 
 
80
62
    // Database to store the user preferences locally
81
63
    U1db.Database {
82
64
        id: clockDB