~nik90/ubuntu-clock-app/prep-new-design-part1

« back to all changes in this revision

Viewing changes to alarm/AlarmPage.qml

  • Committer: Nekhelesh Ramananthan
  • Date: 2014-02-11 12:03:34 UTC
  • Revision ID: krnekhelesh@gmail.com-20140211120334-0v84qf4k45yxgnfs
Moved next alarm test into alarm face

Show diffs side-by-side

added added

removed removed

Lines of Context:
121
121
        AlarmFace {
122
122
            id: alarmFace
123
123
 
124
 
            Label {
125
 
                id: nextAlarmText
126
 
                text: i18n.tr("Next Alarm")
127
 
                fontSize: "small"
128
 
                parent: alarmFace.centerItem
129
 
                visible: modelCount === 0 ? false : true
130
 
                anchors {
131
 
                    horizontalCenter: parent.horizontalCenter
132
 
                    verticalCenter: parent.verticalCenter
133
 
                    verticalCenterOffset: units.gu(-3.5)
134
 
                }
135
 
            }
136
 
 
137
124
            anchors { top: parent.top; topMargin: units.gu(10); horizontalCenter: parent.horizontalCenter }
138
125
            showSetupMessage: modelCount == 0 ? true : false
139
126
            enableMouseArea: showSetupMessage
140
127
            onTimeFormatChanged: get_next_active_alarm()
141
128
            onPressAndHold: pagestack.push(Qt.resolvedUrl("AddAlarmPage.qml"), {"isNewAlarm": true})
142
 
 
143
129
        }
144
130
 
145
131
        // Label to show the name of the next active alarm