Merge lp:~faenil/ubuntu-ui-toolkit/oldcaption_alignment_fix into lp:ubuntu-ui-toolkit/staging
Proposed by
Andrea Bernabei
Status: | Merged |
---|---|
Approved by: | Tim Peeters |
Approved revision: | 1523 |
Merged at revision: | 1520 |
Proposed branch: | lp:~faenil/ubuntu-ui-toolkit/oldcaption_alignment_fix |
Merge into: | lp:ubuntu-ui-toolkit/staging |
Diff against target: |
59 lines (+18/-6) 2 files modified
modules/Ubuntu/Components/ListItems/1.2/Caption.qml (+9/-3) modules/Ubuntu/Components/ListItems/1.3/Caption.qml (+9/-3) |
To merge this branch: | bzr merge lp:~faenil/ubuntu-ui-toolkit/oldcaption_alignment_fix |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
PS Jenkins bot | continuous-integration | Approve | |
Tim Peeters | Approve | ||
Review via email: mp+260278@code.launchpad.net |
Commit message
Modify ListItem.Caption label margins
Description of the change
This commit adds margins to ListItem.Caption.
Since we can't access ListItem.Empty's __contentsMargins from here, I created a local variable with the hardcoded margin value. This is not optimal, suggestions welcome.
I verified this fixes the misalignment in the captions of ubuntu-
To post a comment you must log in.
I'm not sure this is the place where the bug should be fixed. I commented about that in the bug report.
Please check out the QML coding conventions on http:// doc.qt. io/qt-4. 8/qml-coding- conventions. html
26 + anchors. verticalCenter: parent. verticalCenter rightMargin: __contentMargin
27 + anchors.left: parent.left
28 + anchors.right: parent.right
29 + anchors.leftMargin: __contentMargin
30 + anchors.
These should be grouped in
anchors {
...
}