~charlesk/ubuntu-clock-app/lp-1275560

« back to all changes in this revision

Viewing changes to alarm/AlarmPage.qml

  • Committer: Tarmac
  • Author(s): Nekhelesh Ramananthan
  • Date: 2014-02-19 01:38:49 UTC
  • mfrom: (326.1.32 fix-alarm-tests)
  • Revision ID: tarmac-20140219013849-407u35re9qe24rzn
Fixes the alarm tests. Fixes: https://bugs.launchpad.net/bugs/1188809, https://bugs.launchpad.net/bugs/1188810.

Approved by Ubuntu Phone Apps Jenkins Bot, Leo Arias.

Show diffs side-by-side

added added

removed removed

Lines of Context:
202
202
                currentIndex: -1
203
203
 
204
204
                delegate: ListItem.Base {
 
205
                    objectName: "alarm" + index
205
206
                    Label {
206
207
                        id: alarmTime
207
 
                        objectName: "listAlarmTime"
 
208
                        objectName: "listAlarmTime" + index
208
209
                        fontSize: "large";
209
210
                        text: Utils.convertTime(date.getHours(), date.getMinutes(), 0, appSetting.contents.timeFormat)
210
211
                        anchors { verticalCenter: parent.verticalCenter; right: alarmStatus.left; rightMargin: units.gu(2) }
213
214
 
214
215
                    Label {
215
216
                        id: alarmLabel
216
 
                        objectName: "listAlarmLabel"
 
217
                        objectName: "listAlarmLabel" + index
217
218
                        fontSize: "large";
218
219
                        text: message
219
220
                        elide: Text.ElideRight
230
231
 
231
232
                    Label {
232
233
                        id: alarmSubtitle
233
 
                        objectName: "listAlarmSubtitle"
 
234
                        objectName: "listAlarmSubtitle" + index
234
235
                        fontSize: "small";
235
236
                        text: format_day_string(daysOfWeek, type)
236
237
                        anchors { left: alarmLabel.left; top: alarmLabel.bottom }
239
240
 
240
241
                    Switch {
241
242
                        id: alarmStatus
242
 
                        objectName: "listAlarmStatus"
 
243
                        objectName: "listAlarmStatus" + index
243
244
                        checked: model.enabled
244
245
                        anchors { right: parent.right; verticalCenter: alarmTime.verticalCenter }
245
246
                        onClicked: {