Merge lp:~nik90/ubuntu-clock-app/dynamic-delete-alarm-size into lp:ubuntu-clock-app

Proposed by Nekhelesh Ramananthan
Status: Merged
Approved by: Nekhelesh Ramananthan
Approved revision: 151
Merged at revision: 148
Proposed branch: lp:~nik90/ubuntu-clock-app/dynamic-delete-alarm-size
Merge into: lp:ubuntu-clock-app
Diff against target: 166 lines (+25/-26)
3 files modified
app/alarm/EditAlarmPage.qml (+0/-3)
debian/changelog (+2/-0)
po/com.ubuntu.clock.pot (+23/-23)
To merge this branch: bzr merge lp:~nik90/ubuntu-clock-app/dynamic-delete-alarm-size
Reviewer Review Type Date Requested Status
Sebastien Bacher (community) Approve
Ubuntu Phone Apps Jenkins Bot continuous-integration Approve
Ubuntu Clock Developers Pending
Review via email: mp+238407@code.launchpad.net

Commit message

Removed the hardcoded size of the delete alarm button.

Description of the change

Removed the hardcoded size of the delete alarm button.

Note: width and height now depend on the label size. I looked at ButtonStyle.qml used by the SDK and noticed that it also set an implicit height of 4 gu units which matches clock app design spec. So removed the height definition as well.

To post a comment you must log in.
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
Sebastien Bacher (seb128) wrote :

Looks good, thanks! (the pot update doesn't seem useful though, or do you have a rule to update it with every commit?)

review: Approve
Revision history for this message
Nekhelesh Ramananthan (nik90) wrote :

Thnx for the review. The pot file update seems to be done whenever I run on the device through qtc. I will fix the cmakelist in another to not do that in the future.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'app/alarm/EditAlarmPage.qml'
2--- app/alarm/EditAlarmPage.qml 2014-10-11 18:56:01 +0000
3+++ app/alarm/EditAlarmPage.qml 2014-10-15 09:57:12 +0000
4@@ -331,9 +331,6 @@
5 horizontalCenter: parent.horizontalCenter
6 }
7
8- width: units.gu(17)
9- height: units.gu(4)
10-
11 visible: !isNewAlarm
12
13 color: "Red"
14
15=== modified file 'debian/changelog'
16--- debian/changelog 2014-10-14 13:48:02 +0000
17+++ debian/changelog 2014-10-15 09:57:12 +0000
18@@ -17,6 +17,8 @@
19 * Added world clock feature qml tests
20 * Delayed loading of xmltimezone model until add world city page is loaded and
21 dynamically load/unload the jsontimezone model only when necessary.
22+ * Removed hardcoded delete alarm button size and let it adapt to the label size
23+ dynamically (LP: #1381429)
24
25 [Akiva Shammai Avraham]
26 * Improved the analog clock performance by updating the clock hands every second
27
28=== modified file 'po/com.ubuntu.clock.pot'
29--- po/com.ubuntu.clock.pot 2014-10-11 18:33:17 +0000
30+++ po/com.ubuntu.clock.pot 2014-10-15 09:57:12 +0000
31@@ -8,7 +8,7 @@
32 msgstr ""
33 "Project-Id-Version: \n"
34 "Report-Msgid-Bugs-To: \n"
35-"POT-Creation-Date: 2014-10-10 16:52+0200\n"
36+"POT-Creation-Date: 2014-10-15 11:52+0200\n"
37 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
38 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
39 "Language-Team: LANGUAGE <LL@li.org>\n"
40@@ -18,45 +18,45 @@
41 "Content-Transfer-Encoding: 8bit\n"
42
43 #: ../app/alarm/AlarmLabel.qml:30 ../app/alarm/AlarmLabel.qml:56
44-#: ../app/alarm/EditAlarmPage.qml:299
45+#: ../app/alarm/EditAlarmPage.qml:303
46 msgid "Label"
47 msgstr ""
48
49-#: ../app/alarm/AlarmList.qml:78 ../app/alarm/AlarmPage.qml:110
50+#: ../app/alarm/AlarmList.qml:78 ../app/alarm/AlarmPage.qml:108
51 #: ../app/worldclock/UserWorldCityList.qml:101
52 msgid "Delete"
53 msgstr ""
54
55-#: ../app/alarm/AlarmPage.qml:28
56+#: ../app/alarm/AlarmPage.qml:26
57 msgid "Alarms"
58 msgstr ""
59
60-#: ../app/alarm/AlarmPage.qml:45 ../app/alarm/EditAlarmPage.qml:46
61-#: ../app/alarm/EditAlarmPage.qml:173
62+#: ../app/alarm/AlarmPage.qml:43 ../app/alarm/EditAlarmPage.qml:50
63+#: ../app/alarm/EditAlarmPage.qml:177
64 msgid "Alarm"
65 msgstr ""
66
67-#: ../app/alarm/AlarmPage.qml:60 ../app/worldclock/WorldCityList.qml:68
68+#: ../app/alarm/AlarmPage.qml:58 ../app/worldclock/WorldCityList.qml:79
69 msgid "Back"
70 msgstr ""
71
72-#: ../app/alarm/AlarmPage.qml:81
73+#: ../app/alarm/AlarmPage.qml:78
74 msgid "Select None"
75 msgstr ""
76
77-#: ../app/alarm/AlarmPage.qml:83 ../app/alarm/AlarmRepeat.qml:35
78+#: ../app/alarm/AlarmPage.qml:80 ../app/alarm/AlarmRepeat.qml:35
79 msgid "Select All"
80 msgstr ""
81
82-#: ../app/alarm/AlarmPage.qml:140
83+#: ../app/alarm/AlarmPage.qml:138
84 msgid "No saved alarms"
85 msgstr ""
86
87-#: ../app/alarm/AlarmPage.qml:141
88+#: ../app/alarm/AlarmPage.qml:139
89 msgid "Tap the + icon to add an alarm"
90 msgstr ""
91
92-#: ../app/alarm/AlarmRepeat.qml:31 ../app/alarm/EditAlarmPage.qml:289
93+#: ../app/alarm/AlarmRepeat.qml:31 ../app/alarm/EditAlarmPage.qml:293
94 msgid "Repeat"
95 msgstr ""
96
97@@ -94,7 +94,7 @@
98 msgid "Change time and date"
99 msgstr ""
100
101-#: ../app/alarm/AlarmSound.qml:28 ../app/alarm/EditAlarmPage.qml:312
102+#: ../app/alarm/AlarmSound.qml:28 ../app/alarm/EditAlarmPage.qml:316
103 msgid "Sound"
104 msgstr ""
105
106@@ -142,15 +142,15 @@
107 msgid "in %1m"
108 msgstr ""
109
110-#: ../app/alarm/EditAlarmPage.qml:39
111+#: ../app/alarm/EditAlarmPage.qml:43
112 msgid "New alarm"
113 msgstr ""
114
115-#: ../app/alarm/EditAlarmPage.qml:39
116+#: ../app/alarm/EditAlarmPage.qml:43
117 msgid "Edit alarm"
118 msgstr ""
119
120-#: ../app/alarm/EditAlarmPage.qml:336
121+#: ../app/alarm/EditAlarmPage.qml:337
122 msgid "Delete alarm"
123 msgstr ""
124
125@@ -163,7 +163,7 @@
126 msgstr ""
127
128 #: ../app/worldclock/AddWorldCityButton.qml:61
129-#: ../app/worldclock/WorldCityList.qml:54
130+#: ../app/worldclock/WorldCityList.qml:64
131 msgid "City"
132 msgstr ""
133
134@@ -203,27 +203,27 @@
135 msgid "Same time"
136 msgstr ""
137
138-#: ../app/worldclock/WorldCityList.qml:41
139+#: ../app/worldclock/WorldCityList.qml:51
140 msgid "Select a city"
141 msgstr ""
142
143-#: ../app/worldclock/WorldCityList.qml:82
144+#: ../app/worldclock/WorldCityList.qml:94
145 msgid "Search..."
146 msgstr ""
147
148-#: ../app/worldclock/WorldCityList.qml:159
149+#: ../app/worldclock/WorldCityList.qml:205
150 msgid "Searching for a city"
151 msgstr ""
152
153-#: ../app/worldclock/WorldCityList.qml:164
154+#: ../app/worldclock/WorldCityList.qml:210
155 msgid "No City Found"
156 msgstr ""
157
158-#: ../app/worldclock/WorldCityList.qml:170
159+#: ../app/worldclock/WorldCityList.qml:216
160 msgid "Unable to connect."
161 msgstr ""
162
163-#: ../app/worldclock/WorldCityList.qml:171
164+#: ../app/worldclock/WorldCityList.qml:217
165 msgid "Please check your network connection and try again"
166 msgstr ""
167

Subscribers

People subscribed via source and target branches