Merge lp:~macslow/unity8/qmltest-tweak-for-1354406-workaround into lp:unity8

Proposed by Mirco Müller
Status: Merged
Approved by: Michał Sawicz
Approved revision: 1185
Merged at revision: 1196
Proposed branch: lp:~macslow/unity8/qmltest-tweak-for-1354406-workaround
Merge into: lp:unity8
Diff against target: 53 lines (+7/-4)
2 files modified
qml/Notifications/Notification.qml (+4/-3)
qml/Notifications/Notifications.qml (+3/-1)
To merge this branch: bzr merge lp:~macslow/unity8/qmltest-tweak-for-1354406-workaround
Reviewer Review Type Date Requested Status
Michał Sawicz Approve
PS Jenkins bot (community) continuous-integration Approve
Review via email: mp+231687@code.launchpad.net

Commit message

Made notification qml-test pass again by using Component.onCompleted instead of onOpacityChanged for the time being.

Description of the change

Made notification qml-test pass again by using Component.onCompleted instead of onOpacityChanged for the time being. Added FIXME-remarks regarding currently used workaround for LP: #1354406. Avoid some QWARNs.

* Are there any related MPs required for this MP to build/function as expected? Please list.
No.

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

* Did you make sure that your branch does not contain spurious tags?
Yes.

* If you changed the packaging (debian), did you subscribe the ubuntu-unity team to this MP?
Not applicable.

* If you changed the UI, has there been a design review?
Not applicable.

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Michał Sawicz (saviq) wrote :

 * Did you perform an exploratory manual test run of the code change and any related functionality?
Y
 * Did CI run pass? If not, please explain why.
Y

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'qml/Notifications/Notification.qml'
2--- qml/Notifications/Notification.qml 2014-08-20 16:14:40 +0000
3+++ qml/Notifications/Notification.qml 2014-08-21 08:08:54 +0000
4@@ -52,7 +52,7 @@
5 implicitHeight: type !== Notification.PlaceHolder ? (fullscreen ? maxHeight : contentColumn.height + contentColumn.spacing * 2) : 0
6
7 color: Qt.rgba(0.132, 0.117, 0.109, 0.97)
8- opacity: 1
9+ opacity: 1 // FIXME: 1 because of LP: #1354406 workaround, has to be 0 really
10
11 state: {
12 var result = "";
13@@ -82,7 +82,8 @@
14 source: hints["suppress-sound"] != "true" && hints["sound-file"] != undefined ? hints["sound-file"] : ""
15 }
16
17- onOpacityChanged: {
18+ // FIXME: using onCompleted because of LP: #1354406 workaround, has to be onOpacityChanged really
19+ Component.onCompleted: {
20 if (opacity == 1.0 && hints["suppress-sound"] != "true" && sound.source) {
21 sound.play();
22 }
23@@ -380,7 +381,7 @@
24 id: comboRepeater
25
26 onVisibleChanged: {
27- comboButton.text = comboRepeater.itemAt(2).actionLabel
28+ comboButton.text = comboRepeater.count >= 3 ? comboRepeater.itemAt(2).actionLabel : ""
29 }
30
31 model: notification.actions
32
33=== modified file 'qml/Notifications/Notifications.qml'
34--- qml/Notifications/Notifications.qml 2014-08-20 16:14:40 +0000
35+++ qml/Notifications/Notifications.qml 2014-08-21 08:08:54 +0000
36@@ -63,7 +63,8 @@
37
38 // make sure there's no opacity-difference between the several
39 // elements in a notification
40- layer.enabled: add.running || remove.running || populate.running
41+ // FIXME: disabled all transitions because of LP: #1354406 workaround
42+ //layer.enabled: add.running || remove.running || populate.running
43
44 Component.onCompleted: {
45 if (index == 1) {
46@@ -79,6 +80,7 @@
47 }
48 }
49
50+ // FIXME: disabled all transitions because of LP: #1354406 workaround
51 /*populate: Transition {
52 UbuntuNumberAnimation {
53 property: "opacity"

Subscribers

People subscribed via source and target branches