Merge lp:~nik90/ubuntu-clock-app/fix-disapearing-text into lp:ubuntu-clock-app/saucy

Proposed by Nekhelesh Ramananthan
Status: Merged
Approved by: Nekhelesh Ramananthan
Approved revision: 245
Merged at revision: 243
Proposed branch: lp:~nik90/ubuntu-clock-app/fix-disapearing-text
Merge into: lp:ubuntu-clock-app/saucy
Diff against target: 49 lines (+10/-7)
1 file modified
alarm/AddAlarmPage.qml (+10/-7)
To merge this branch: bzr merge lp:~nik90/ubuntu-clock-app/fix-disapearing-text
Reviewer Review Type Date Requested Status
Ubuntu Phone Apps Jenkins Bot continuous-integration Approve
Ubuntu Clock Developers Pending
Review via email: mp+191773@code.launchpad.net

Commit message

Fixes the issue of the add alarm page being broken due to upstream SDK rev 796.

Description of the change

Due to upstream change, the add alarms page broke. This has been fixed in this MP.

To post a comment you must log in.
Revision history for this message
Nekhelesh Ramananthan (nik90) wrote :

Reverted the disappearing alarm day fix since it turns out it is an upstream SDK bug involving optionSelector.

Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'alarm/AddAlarmPage.qml'
--- alarm/AddAlarmPage.qml 2013-10-05 09:43:45 +0000
+++ alarm/AddAlarmPage.qml 2013-10-18 10:39:28 +0000
@@ -25,6 +25,15 @@
25import "../common"25import "../common"
2626
27// Page to edit or create a new alarm27// Page to edit or create a new alarm
28/*
29 Parameters passed:
30
31 Variable to check if the page is for creating a new alarm or editing an existing one
32 bool isNewAlarm
33
34 Variable to hold the index of the alarm which is being edited. If page is called for creating a new alarm, this variable will not be available
35 int alarmIndex
36 */
28Page {37Page {
29 id: addAlarmPage38 id: addAlarmPage
3039
@@ -59,10 +68,6 @@
59 }68 }
60 }69 }
6170
62 actions: [
63
64 ]
65
66 // Function to save a new alarm71 // Function to save a new alarm
67 function saveNewAlarm() {72 function saveNewAlarm() {
68 var alarmTime = new Date();73 var alarmTime = new Date();
@@ -238,9 +243,8 @@
238 OptionSelector {243 OptionSelector {
239 id: occurSelector244 id: occurSelector
240 text: i18n.tr("Occurs")245 text: i18n.tr("Occurs")
241 visible: repeatSelector.selectedIndex == 0246 visible: repeatSelector.selectedIndex == 0 // Show the day selector only when the alarm is a one-type alarm
242 model: [Qt.locale().standaloneDayName(0), Qt.locale().standaloneDayName(1), Qt.locale().standaloneDayName(2), Qt.locale().standaloneDayName(3), Qt.locale().standaloneDayName(4), Qt.locale().standaloneDayName(5), Qt.locale().standaloneDayName(6)]247 model: [Qt.locale().standaloneDayName(0), Qt.locale().standaloneDayName(1), Qt.locale().standaloneDayName(2), Qt.locale().standaloneDayName(3), Qt.locale().standaloneDayName(4), Qt.locale().standaloneDayName(5), Qt.locale().standaloneDayName(6)]
243 expanded: false
244248
245 selectedIndex: alarm.date.getDay();249 selectedIndex: alarm.date.getDay();
246250
@@ -296,7 +300,6 @@
296 id: repeatSelector300 id: repeatSelector
297 text: i18n.tr("Repeats")301 text: i18n.tr("Repeats")
298 model: [i18n.tr("One Time"), i18n.tr("Daily"), i18n.tr("Weekly")]302 model: [i18n.tr("One Time"), i18n.tr("Daily"), i18n.tr("Weekly")]
299 expanded: false
300303
301 selectedIndex: {304 selectedIndex: {
302 if (alarm.type == Alarm.OneTime)305 if (alarm.type == Alarm.OneTime)

Subscribers

People subscribed via source and target branches