Merge lp:~tpeeters/ubuntu-ui-toolkit/pageHead-sectionsIndex into lp:ubuntu-ui-toolkit/staging
| Status: | Merged |
|---|---|
| Approved by: | Christian Dywan on 2015-12-10 |
| Approved revision: | 1753 |
| Merged at revision: | 1751 |
| Proposed branch: | lp:~tpeeters/ubuntu-ui-toolkit/pageHead-sectionsIndex |
| Merge into: | lp:ubuntu-ui-toolkit/staging |
| Diff against target: |
287 lines (+163/-10) 7 files modified
src/Ubuntu/Components/1.3/Sections.qml (+38/-5) src/Ubuntu/Components/Themes/Ambiance/1.3/PageHeadStyle.qml (+1/-1) src/Ubuntu/Components/Themes/Ambiance/1.3/SectionsForPageHead.qml (+46/-0) src/Ubuntu/Components/Themes/Ambiance/Ambiance.pro (+1/-0) src/Ubuntu/Components/Themes/Ambiance/qmldir (+1/-0) tests/unit_x11/tst_components/tst_pagehead_sections.qml (+8/-2) tests/unit_x11/tst_components/tst_sections.qml (+68/-2) |
| To merge this branch: | bzr merge lp:~tpeeters/ubuntu-ui-toolkit/pageHead-sectionsIndex |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Christian Dywan | 2015-12-07 | Approve on 2015-12-10 | |
| PS Jenkins bot | continuous-integration | Approve on 2015-12-09 | |
|
Review via email:
|
|||
Commit Message
To prevent an invalid sectionIndex, reset the value of sectionIndex to -1 when the model of Sections is changed.
| Tim Peeters (tpeeters) wrote : | # |
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:1744
http://
Executed test runs:
UNSTABLE: http://
SUCCESS: http://
deb: http://
UNSTABLE: http://
Click here to trigger a rebuild:
http://
- 1746. By Tim Peeters on 2015-12-08
-
documentation
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:1746
http://
Executed test runs:
UNSTABLE: http://
SUCCESS: http://
deb: http://
UNSTABLE: http://
Click here to trigger a rebuild:
http://
- 1747. By Tim Peeters on 2015-12-08
-
update unit test
- 1748. By Tim Peeters on 2015-12-08
-
clean
| PS Jenkins bot (ps-jenkins) wrote : | # |
PASSED: Continuous integration, rev:1747
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
| PS Jenkins bot (ps-jenkins) wrote : | # |
PASSED: Continuous integration, rev:1748
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
- 1749. By Tim Peeters on 2015-12-08
-
select index 0 by default, and trigger selected action.
- 1750. By Tim Peeters on 2015-12-08
-
deal with invalid model
- 1751. By Tim Peeters on 2015-12-08
-
don't regress bug 1511839
| Tim Peeters (tpeeters) wrote : | # |
Automatically setting the index when the model changes regresses bug 1511839. To work around that, I use the older copy of Sections inside the AppHeader that is configured using Page.head.sections. That means to get the automatic updates to selectedIndex when changing the model, the app must update to use the new PageHeader instead of the old Page.head.sections. See also comment #4 on bug 1513933.
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:1749
http://
Executed test runs:
UNSTABLE: http://
FAILURE: http://
UNSTABLE: http://
Click here to trigger a rebuild:
http://
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:1751
http://
Executed test runs:
SUCCESS: http://
FAILURE: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
| Christian Dywan (kalikiana) wrote : | # |
> Automatically setting the index when the model changes regresses bug 1511839.
> To work around that, I use the older copy of Sections inside the AppHeader
> that is configured using Page.head.sections. That means to get the automatic
> updates to selectedIndex when changing the model, the app must update to use
> the new PageHeader instead of the old Page.head.sections. See also comment #4
> on bug 1513933.
Will setting -1 be explicitly supported with PageHeader then? I feel having different behavior between these might be both hard to support and use..
- 1752. By Tim Peeters on 2015-12-09
-
kick jenkins
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:1752
http://
Executed test runs:
SUCCESS: http://
FAILURE: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
| Tim Peeters (tpeeters) wrote : | # |
To summarize: The desired behavior is implemented in Sections (and can be used in the new PageTreeNode), and if you use Page.head.sections, you still get the old behavior because changing that would break the fix for this bug: https:/
I discussed this with Zsombor and Christian and we agree that this is the best solution. Apps will have to update to use the new PageHeader if they require the new automatic behavior.
- 1753. By Tim Peeters on 2015-12-09
-
kick jenkins again
| PS Jenkins bot (ps-jenkins) wrote : | # |
PASSED: Continuous integration, rev:1752
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
| PS Jenkins bot (ps-jenkins) wrote : | # |
PASSED: Continuous integration, rev:1753
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://

Here https:/ /bugs.launchpad .net/ubuntu/ +source/ ubuntu- ui-toolkit/ +bug/1511839 it is requested NOT to change the sectionIndex when it was -1. This MR would break that, so we need a more complex solution.