Merge lp:~nik90/ubuntu-clock-app/fix-empty-state-wrap into lp:ubuntu-clock-app

Proposed by Nekhelesh Ramananthan
Status: Merged
Approved by: Niklas Wenzel
Approved revision: 209
Merged at revision: 207
Proposed branch: lp:~nik90/ubuntu-clock-app/fix-empty-state-wrap
Merge into: lp:ubuntu-clock-app
Diff against target: 92 lines (+19/-8)
4 files modified
app/alarm/AlarmPage.qml (+6/-1)
app/components/EmptyState.qml (+9/-4)
debian/changelog (+1/-0)
po/com.ubuntu.clock.pot (+3/-3)
To merge this branch: bzr merge lp:~nik90/ubuntu-clock-app/fix-empty-state-wrap
Reviewer Review Type Date Requested Status
Ubuntu Phone Apps Jenkins Bot continuous-integration Approve
Niklas Wenzel (community) Approve
Review via email: mp+251924@code.launchpad.net

Commit message

Fixed the empty state message not wrapping correctly.

Description of the change

Fixes the empty state message not wrapping correctly. Tested with a really long string as shown in http://imgur.com/U41ixrZ

To post a comment you must log in.
208. By Nekhelesh Ramananthan

Updated debian changelog

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
Niklas Wenzel (nikwen) wrote :

Looks fine to me. I just have one suggestion which I've added to the diff.
That being said, I'll happily approve this if you apply that small change. :)

review: Needs Fixing
209. By Nekhelesh Ramananthan

Also ensured empty state title wraps if required

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

> Looks fine to me. I just have one suggestion which I've added to the diff.
> That being said, I'll happily approve this if you apply that small change. :)

Thanks for the review. Originally I chose not to put wrapMode for title since it is supposed to be short and discourage 3rd party devs from making it too long. But I guess when you translate it, there is the chance it could need more space.

Revision history for this message
Niklas Wenzel (nikwen) wrote :

You never know what us translators come up with. :D

But thank you for fixing that now. Shall I do a top-level approve as well?

review: Approve
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
Nekhelesh Ramananthan (nik90) wrote :

Yeah sure go ahead ;)

Revision history for this message
Niklas Wenzel (nikwen) wrote :

Thanks again. :)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'app/alarm/AlarmPage.qml'
2--- app/alarm/AlarmPage.qml 2014-10-28 10:54:45 +0000
3+++ app/alarm/AlarmPage.qml 2015-03-05 15:54:04 +0000
4@@ -140,7 +140,12 @@
5
6 Loader {
7 id: emptyStateLoader
8- anchors.centerIn: parent
9+ anchors {
10+ left: parent.left
11+ right: parent.right
12+ margins: units.gu(2)
13+ verticalCenter: parent.verticalCenter
14+ }
15 active: alarmModel ? alarmModel.count === 0 : true
16 Component.onCompleted: {
17 setSource(Qt.resolvedUrl("../components/EmptyState.qml"),
18
19=== modified file 'app/components/EmptyState.qml'
20--- app/components/EmptyState.qml 2014-10-16 14:24:25 +0000
21+++ app/components/EmptyState.qml 2015-03-05 15:54:04 +0000
22@@ -33,6 +33,7 @@
23 property alias subTitle: emptySublabel.text
24
25 height: childrenRect.height
26+ width: parent.width
27
28 Icon {
29 id: emptyIcon
30@@ -44,16 +45,20 @@
31
32 Label {
33 id: emptyLabel
34+ fontSize: "large"
35+ font.bold: true
36+ width: parent.width
37+ wrapMode: Text.WordWrap
38 anchors.top: emptyIcon.bottom
39 anchors.topMargin: units.gu(5)
40- anchors.horizontalCenter: parent.horizontalCenter
41- fontSize: "large"
42- font.bold: true
43+ horizontalAlignment: Text.AlignHCenter
44 }
45
46 Label {
47 id: emptySublabel
48+ width: parent.width
49+ wrapMode: Text.WordWrap
50 anchors.top: emptyLabel.bottom
51- anchors.horizontalCenter: parent.horizontalCenter
52+ horizontalAlignment: Text.AlignHCenter
53 }
54 }
55
56=== modified file 'debian/changelog'
57--- debian/changelog 2015-02-26 21:21:41 +0000
58+++ debian/changelog 2015-03-05 15:54:04 +0000
59@@ -9,6 +9,7 @@
60 * Fixed Day-of-Week picker in alarms not respecting user locale (LP: #1372545)
61 * Fixed predefined cities and countries not being translatable in the timezone
62 selection dialog (LP: #1354466)
63+ * Fixed empty state description not wrapping (LP: #1428165)
64
65 [Brendan Donegan]
66 * Fixed AP failure by waiting for the bottom edge tip visible property to be true
67
68=== modified file 'po/com.ubuntu.clock.pot'
69--- po/com.ubuntu.clock.pot 2015-02-27 12:15:58 +0000
70+++ po/com.ubuntu.clock.pot 2015-03-05 15:54:04 +0000
71@@ -8,7 +8,7 @@
72 msgstr ""
73 "Project-Id-Version: \n"
74 "Report-Msgid-Bugs-To: \n"
75-"POT-Creation-Date: 2015-02-27 13:15+0100\n"
76+"POT-Creation-Date: 2015-03-05 13:52+0100\n"
77 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
78 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
79 "Language-Team: LANGUAGE <LL@li.org>\n"
80@@ -48,11 +48,11 @@
81 msgid "Select All"
82 msgstr ""
83
84-#: ../app/alarm/AlarmPage.qml:149
85+#: ../app/alarm/AlarmPage.qml:154
86 msgid "No saved alarms"
87 msgstr ""
88
89-#: ../app/alarm/AlarmPage.qml:150
90+#: ../app/alarm/AlarmPage.qml:155
91 msgid "Tap the + icon to add an alarm"
92 msgstr ""
93

Subscribers

People subscribed via source and target branches