Merge lp:~nik90/ubuntu-clock-app/minor-fixes-new-design into lp:ubuntu-clock-app

Proposed by Nekhelesh Ramananthan
Status: Merged
Approved by: Nekhelesh Ramananthan
Approved revision: 449
Merged at revision: 446
Proposed branch: lp:~nik90/ubuntu-clock-app/minor-fixes-new-design
Merge into: lp:ubuntu-clock-app
Diff against target: 135 lines (+16/-24)
6 files modified
app/MainPage.qml (+0/-2)
app/components/ActionIcon.qml (+1/-4)
app/components/HeaderNavigation.qml (+5/-5)
app/stopwatch/LapListView.qml (+9/-4)
app/ubuntu-clock-app.qml (+0/-9)
debian/changelog (+1/-0)
To merge this branch: bzr merge lp:~nik90/ubuntu-clock-app/minor-fixes-new-design
Reviewer Review Type Date Requested Status
Jenkins Bot continuous-integration Approve
Alan Pope 🍺🐧🐱 πŸ¦„ (community) Approve
Review via email: mp+287283@code.launchpad.net

Commit message

- Reduced bindings in ActionIcon.qml
- Removed unnecessary QtQuick.Layout import
- Fixed stopwatch swipe delete UI issue introduced in new design implementation

Description of the change

- Reduced bindings in ActionIcon.qml
- Removed unnecessary QtQuick.Layout import
- Fixed stopwatch swipe delete UI issue introduced in new design implementation

Steps to reproduce the stopwatch swipe delete issue in trunk,
1. Start stopwatch and create 2-3 laps.
2. Swipe right to show the delete icon. Don't delete the lap though.
3. Instead swipe left to hide the delete icon.

Notice in step 3 that the delete icon doesn't fully go back to hiding.

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

Check list,

* Does the MP add/remove user visible strings? If Yes, has the pot file been
    updated?

Not applicable

* Does the MP change the UI? If Yes, has it been approved by design?

No UI Changes

* Did you perform an exploratory manual test run of your code change and any
    related functionality?

Yes

* If the MP fixes a bug or implements a feature, are there accompanying unit
    and autopilot tests?

None

* Is the clock app trunk buildable and runnable using Qtcreator?

Yes

* Was the debian changelog updated?

Yes

* Was the copyright years updated if necessary?

Not applicable.

Revision history for this message
Jenkins Bot (ubuntu-core-apps-jenkins-bot) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Alan Pope 🍺🐧🐱 πŸ¦„ (popey) wrote :

Looks good to me!

review: Approve
Revision history for this message
Jenkins Bot (ubuntu-core-apps-jenkins-bot) :
review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'app/MainPage.qml'
2--- app/MainPage.qml 2016-02-25 22:46:35 +0000
3+++ app/MainPage.qml 2016-02-26 10:04:29 +0000
4@@ -48,8 +48,6 @@
5 // Clock App Alarm Model Reference Variable
6 property var alarmModel
7
8- flickable: null
9-
10 Timer {
11 id: hideBottomEdgeHintTimer
12 interval: 3000
13
14=== modified file 'app/components/ActionIcon.qml'
15--- app/components/ActionIcon.qml 2016-02-25 22:16:54 +0000
16+++ app/components/ActionIcon.qml 2016-02-26 10:04:29 +0000
17@@ -22,10 +22,7 @@
18 AbstractButton {
19 id: abstractButton
20
21- property alias iconName: _icon.name
22- property alias iconSource: _icon.source
23- property alias iconWidth: _icon.width
24- property alias iconColor: _icon.color
25+ property alias icon: _icon
26
27 width: units.gu(4)
28 height: width
29
30=== modified file 'app/components/HeaderNavigation.qml'
31--- app/components/HeaderNavigation.qml 2016-02-25 22:16:54 +0000
32+++ app/components/HeaderNavigation.qml 2016-02-26 10:04:29 +0000
33@@ -31,14 +31,14 @@
34 spacing: units.gu(2)
35
36 ActionIcon {
37- iconName: "clock"
38- iconColor: listview.currentIndex == 0 ? "#19b6ee" : "#5d5d5d"
39+ icon.name: "clock"
40+ icon.color: listview.currentIndex === 0 ? "#19b6ee" : "#5d5d5d"
41 onClicked: listview.currentIndex = 0
42 }
43
44 ActionIcon {
45- iconName: "stopwatch"
46- iconColor: listview.currentIndex == 1 ? "#19b6ee" : "#5d5d5d"
47+ icon.name: "stopwatch"
48+ icon.color: listview.currentIndex === 1 ? "#19b6ee" : "#5d5d5d"
49 onClicked: listview.currentIndex = 1
50 }
51 }
52@@ -54,7 +54,7 @@
53 rightMargin: units.gu(1)
54 }
55
56- iconName: "settings"
57+ icon.name: "settings"
58
59 onClicked: {
60 mainStack.push(Qt.resolvedUrl("../alarm/AlarmSettingsPage.qml"))
61
62=== modified file 'app/stopwatch/LapListView.qml'
63--- app/stopwatch/LapListView.qml 2016-02-25 22:16:54 +0000
64+++ app/stopwatch/LapListView.qml 2016-02-26 10:04:29 +0000
65@@ -17,14 +17,14 @@
66 */
67
68 import QtQuick 2.4
69-import QtQuick.Layouts 1.1
70 import Ubuntu.Components 1.3
71 import Stopwatch 1.0
72
73-ListView {
74+UbuntuListView {
75 id: lapListView
76
77 clip: true
78+ currentIndex: -1
79
80 StopwatchFormatTime {
81 id: stopwatchFormatTime
82@@ -77,7 +77,11 @@
83
84 delegate: ListItem {
85 divider.visible: true
86- width: parent.width - units.gu(4)
87+ divider.anchors.leftMargin: units.gu(2)
88+ divider.anchors.right: parent.right
89+ divider.anchors.rightMargin: units.gu(2)
90+
91+ width: parent.width
92 anchors.horizontalCenter: parent.horizontalCenter
93
94 leadingActions: ListItemActions {
95@@ -96,7 +100,8 @@
96 left: parent.left
97 right: parent.right
98 verticalCenter: parent.verticalCenter
99- leftMargin: units.gu(1)
100+ leftMargin: units.gu(3)
101+ rightMargin: units.gu(2)
102 }
103
104 Label {
105
106=== modified file 'app/ubuntu-clock-app.qml'
107--- app/ubuntu-clock-app.qml 2016-02-25 22:16:54 +0000
108+++ app/ubuntu-clock-app.qml 2016-02-26 10:04:29 +0000
109@@ -116,15 +116,6 @@
110 asynchronous: false
111 }
112
113- /*
114- Create a new Date() object and pass the date, month, year, hour, minute
115- and second received from the DateTime plugin manually to ensure the
116- timezone info is set correctly.
117-
118- Javascript Month is 0-11 while QDateTime month is 1-12. Hence the -1
119- is required.
120- */
121-
122 alarmModel: alarmModelLoader.item
123 /*
124 FIXME: When the upstream QT bug at
125
126=== modified file 'debian/changelog'
127--- debian/changelog 2016-02-25 23:11:44 +0000
128+++ debian/changelog 2016-02-26 10:04:29 +0000
129@@ -24,6 +24,7 @@
130 [ Nekhelesh Ramananthan ]
131 * Fix 'Shutter' effect animation on title bar when opening bottom edge (LP: #1543496)
132 * Migrate to the new SDK Bottom edge (LP: #1549988)
133+ * Reduce binding in ActionIcon.qml and fixed stopwatch slide delete UI issue.
134
135 -- Bartosz Kosiorek <gang65@poczta.onet.pl> Wed, 30 Dec 2015 01:43:24 +0100
136

Subscribers

People subscribed via source and target branches