Merge lp:~zeller-benjamin/ubuntu-ui-toolkit/fix-lp1535241 into lp:ubuntu-ui-toolkit/staging

Proposed by Benjamin Zeller
Status: Merged
Approved by: Tim Peeters
Approved revision: 1806
Merged at revision: 1808
Proposed branch: lp:~zeller-benjamin/ubuntu-ui-toolkit/fix-lp1535241
Merge into: lp:ubuntu-ui-toolkit/staging
Diff against target: 42 lines (+5/-2)
3 files modified
src/Ubuntu/Components/1.3/AdaptivePageLayout.qml (+2/-1)
src/Ubuntu/Components/plugin/ucabstractbutton.cpp (+0/-1)
tests/unit_x11/tst_components/tst_adaptivepagelayout.qml (+3/-0)
To merge this branch: bzr merge lp:~zeller-benjamin/ubuntu-ui-toolkit/fix-lp1535241
Reviewer Review Type Date Requested Status
ubuntu-sdk-build-bot continuous-integration Approve
Tim Peeters Approve
Florian Boucault (community) Approve
Review via email: mp+282987@code.launchpad.net

Commit message

Fix Bug lp:1535241 "AdaptivePageLayout first example is badly broken"

Description of the change

Fix Bug lp:1535241 "AdaptivePageLayout first example is badly broken"

To post a comment you must log in.
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
Florian Boucault (fboucault) wrote :

It's better but not enough, primaryPage is not respected: the wrong page is displayed

review: Needs Fixing
Revision history for this message
Florian Boucault (fboucault) wrote :

> It's better but not enough, primaryPage is not respected: the wrong page is
> displayed

Bad testing

review: Approve
Revision history for this message
Tim Peeters (tpeeters) wrote :

Looks good. Thanks for fixing and for adding the unit test.

review: Approve
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
ubuntu-sdk-build-bot (ubuntu-sdk-build-bot) wrote :
review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'src/Ubuntu/Components/1.3/AdaptivePageLayout.qml'
2--- src/Ubuntu/Components/1.3/AdaptivePageLayout.qml 2016-01-13 15:57:53 +0000
3+++ src/Ubuntu/Components/1.3/AdaptivePageLayout.qml 2016-01-18 17:17:58 +0000
4@@ -892,10 +892,11 @@
5 /*! \internal */
6 // Pages declared as children will be placed directly into hiddenPages
7 default property alias data: hiddenPages.data
8- Item {
9+ PageTreeNode {
10 id: hiddenPages
11 objectName: "HiddenPagePool"
12 visible: false
13+ active: false
14 // make sure nothing is shown eventually
15 clip: true
16 anchors.fill: parent
17
18=== modified file 'src/Ubuntu/Components/plugin/ucabstractbutton.cpp'
19--- src/Ubuntu/Components/plugin/ucabstractbutton.cpp 2015-12-17 13:00:10 +0000
20+++ src/Ubuntu/Components/plugin/ucabstractbutton.cpp 2016-01-18 17:17:58 +0000
21@@ -140,7 +140,6 @@
22 void UCAbstractButtonPrivate::_q_mouseAreaClicked()
23 {
24 // required by the deprecated ListItem module
25- Q_Q(UCAbstractButton);
26 if (!acceptEvents) {
27 return;
28 }
29
30=== modified file 'tests/unit_x11/tst_components/tst_adaptivepagelayout.qml'
31--- tests/unit_x11/tst_components/tst_adaptivepagelayout.qml 2015-10-02 05:22:25 +0000
32+++ tests/unit_x11/tst_components/tst_adaptivepagelayout.qml 2016-01-18 17:17:58 +0000
33@@ -160,6 +160,9 @@
34 compare(defaults.primaryPageSource, undefined, "primaryPageSource not set by default");
35 compare(defaults.layouts.length, 0, "no layouts by default");
36 compare(defaults.columns, columns, columns + " column(s) as default");
37+
38+ verify(page1.active, "Page1 is not active but should be! Bug(1535241)");
39+ verify(!page2.active, "Page2 is active but should not be! Bug(1535241)");
40 }
41
42 function test_change_primaryPage() {

Subscribers

People subscribed via source and target branches