Merge lp:~tpeeters/ubuntu-ui-toolkit/cppHeader into lp:ubuntu-ui-toolkit/staging
| Status: | Merged |
|---|---|
| Approved by: | Tim Peeters on 2015-09-23 |
| Approved revision: | 1681 |
| Merged at revision: | 1648 |
| Proposed branch: | lp:~tpeeters/ubuntu-ui-toolkit/cppHeader |
| Merge into: | lp:ubuntu-ui-toolkit/staging |
| Diff against target: |
908 lines (+775/-7) 10 files modified
components.api (+4/-0) src/Ubuntu/Components/ListItems/1.2/ListItemHeader.qml (+1/-0) src/Ubuntu/Components/ListItems/1.3/ListItemHeader.qml (+1/-0) src/Ubuntu/Components/ListItems/ListItems.pro (+2/-2) src/Ubuntu/Components/ListItems/qmldir (+3/-3) src/Ubuntu/Components/plugin/plugin.cpp (+2/-0) src/Ubuntu/Components/plugin/plugin.pri (+4/-2) src/Ubuntu/Components/plugin/ucheader.cpp (+328/-0) src/Ubuntu/Components/plugin/ucheader.h (+76/-0) tests/unit_x11/tst_components/tst_header.qml (+354/-0) |
| To merge this branch: | bzr merge lp:~tpeeters/ubuntu-ui-toolkit/cppHeader |
| Related bugs: |
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| PS Jenkins bot | continuous-integration | Approve on 2015-09-23 | |
| Zsombor Egri (community) | 2015-09-16 | Approve on 2015-09-23 | |
|
Review via email:
|
|||
Commit Message
New Header C++ component.
Description of the Change
New Header C++ component.
This will be used as the application header in following MRs.
Note that I had to disable the docs of the ListItems.Header by renaming ListItems/
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:1653
http://
Executed test runs:
FAILURE: http://
FAILURE: http://
FAILURE: http://
Click here to trigger a rebuild:
http://
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:1654
http://
Executed test runs:
FAILURE: http://
FAILURE: http://
FAILURE: http://
Click here to trigger a rebuild:
http://
| PS Jenkins bot (ps-jenkins) wrote : | # |
PASSED: Continuous integration, rev:1655
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 : | # |
FAILED: Continuous integration, rev:1656
http://
Executed test runs:
FAILURE: http://
FAILURE: http://
FAILURE: http://
Click here to trigger a rebuild:
http://
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:1658
http://
Executed test runs:
FAILURE: http://
FAILURE: http://
FAILURE: http://
Click here to trigger a rebuild:
http://
| PS Jenkins bot (ps-jenkins) wrote : | # |
PASSED: Continuous integration, rev:1659
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:1660
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:1661
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:1663
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
| Zsombor Egri (zsombi) wrote : | # |
Nice tests! I see you included some bug guards as well.
I have commented inline, reply on each if you want to keep the inline commenting active. I'll see them inline.
| Tim Peeters (tpeeters) wrote : | # |
All the proposed changes done (see inline comments), except the flickable.topMargin PropertyChange and the CPO. I'll push an update later with those two.
| PS Jenkins bot (ps-jenkins) wrote : | # |
PASSED: Continuous integration, rev:1671
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:1673
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
| Zsombor Egri (zsombi) wrote : | # |
Do you expect to be able to override the Header properties? if not (especially exposed and flickable, but I think all) then please make them FINAL!!!!
Also, see 2 comments inline. ListItem.header tests woudl be welcome!!!
| Tim Peeters (tpeeters) wrote : | # |
> Do you expect to be able to override the Header properties? if not (especially
> exposed and flickable, but I think all) then please make them FINAL!!!!
>
> Also, see 2 comments inline. ListItem.header tests woudl be welcome!!!
I made the properties FINAL in r1676.
About the ListItem.header I am not sure what to test. You can have code like this:
Item {
Header {
flickable: listView
}
ListView {
id: listView
anchors.fill: parent
model: 50
}
}
here the Header works exactly like with a Flickable, so no additional tests are needed.
Alternatively you can have code like this:
ListView {
model: 50
headerPosit
header: Component {
Header { }
}
}
here, (since you don't set the flickable of the header), the Header does not manipulate its y-value so it is positioned like any Item. What would I have to test there?
The two cases give similar results, but there is a difference when scrolling, and then releasing while the header is partially exposed: in the first case it will either show or hide completely (depending on how much it was exposed), it the second case it will just stay where it is.
| Zsombor Egri (zsombi) wrote : | # |
Looks good now! Looking forward to see the code removals when we put these in Page :)
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:1679
http://
Executed test runs:
UNSTABLE: http://
SUCCESS: http://
deb: http://
UNSTABLE: http://
Click here to trigger a rebuild:
http://
| PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Autolanding.
More details in the following jenkins job:
http://
Executed test runs:
UNSTABLE: http://
SUCCESS: http://
deb: http://
UNSTABLE: http://
- 1681. By Tim Peeters on 2015-09-23
-
fix init
| PS Jenkins bot (ps-jenkins) wrote : | # |
PASSED: Continuous integration, rev:1681
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
| Tim Peeters (tpeeters) wrote : | # |
CI approved it and jenkins?? set it back to "needs review"? Weird. I re-happroved it.

FAILED: Continuous integration, rev:1652 jenkins. qa.ubuntu. com/job/ ubuntu- sdk-team- ubuntu- ui-toolkit- staging- ci/2235/ jenkins. qa.ubuntu. com/job/ ubuntu- sdk-team- ubuntu- ui-toolkit- staging- vivid-amd64- ci/963/ console jenkins. qa.ubuntu. com/job/ ubuntu- sdk-team- ubuntu- ui-toolkit- staging- vivid-armhf- ci/965/ console jenkins. qa.ubuntu. com/job/ ubuntu- sdk-team- ubuntu- ui-toolkit- staging- vivid-i386- ci/962/ console
http://
Executed test runs:
FAILURE: http://
FAILURE: http://
FAILURE: http://
Click here to trigger a rebuild: s-jenkins. ubuntu- ci:8080/ job/ubuntu- sdk-team- ubuntu- ui-toolkit- staging- ci/2235/ rebuild
http://