Merge lp:~loic.molinari/ubuntu-ui-toolkit/ubuntu-ui-toolkit-proportional-shape-ensured-correct-ratio-width-default-size into lp:ubuntu-ui-toolkit/staging

Proposed by Loïc Molinari on 2016-02-17
Status: Merged
Approved by: Zsombor Egri on 2016-02-18
Approved revision: 1856
Merged at revision: 1857
Proposed branch: lp:~loic.molinari/ubuntu-ui-toolkit/ubuntu-ui-toolkit-proportional-shape-ensured-correct-ratio-width-default-size
Merge into: lp:ubuntu-ui-toolkit/staging
Diff against target: 25 lines (+8/-0)
2 files modified
src/Ubuntu/Components/plugin/ucproportionalshape.cpp (+6/-0)
src/Ubuntu/Components/plugin/ucproportionalshape.h (+2/-0)
To merge this branch: bzr merge lp:~loic.molinari/ubuntu-ui-toolkit/ubuntu-ui-toolkit-proportional-shape-ensured-correct-ratio-width-default-size
Reviewer Review Type Date Requested Status
ubuntu-sdk-build-bot continuous-integration Approve on 2016-02-18
Zsombor Egri 2016-02-17 Approve on 2016-02-18
Review via email: mp+286390@code.launchpad.net

Commit message

[ProportionalShape] Ensured width/height ratio is correct with default values.

Description of the change

[ProportionalShape] Ensured width/height ratio is correct with default values.

To post a comment you must log in.
Zsombor Egri (zsombi) wrote :

Ahh... the bloody fox sniffed out a chicken :)

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'src/Ubuntu/Components/plugin/ucproportionalshape.cpp'
--- src/Ubuntu/Components/plugin/ucproportionalshape.cpp 2015-08-11 13:02:37 +0000
+++ src/Ubuntu/Components/plugin/ucproportionalshape.cpp 2016-02-17 19:34:52 +0000
@@ -56,3 +56,9 @@
56 setHeight(newHeight);56 setHeight(newHeight);
57 }57 }
58}58}
59
60void UCProportionalShape::componentComplete()
61{
62 QQuickItem::componentComplete();
63 _q_updateHeight();
64}
5965
=== modified file 'src/Ubuntu/Components/plugin/ucproportionalshape.h'
--- src/Ubuntu/Components/plugin/ucproportionalshape.h 2015-08-11 13:02:37 +0000
+++ src/Ubuntu/Components/plugin/ucproportionalshape.h 2016-02-17 19:34:52 +0000
@@ -33,6 +33,8 @@
33 void _q_updateHeight();33 void _q_updateHeight();
3434
35private:35private:
36 void componentComplete();
37
36 Q_DISABLE_COPY(UCProportionalShape)38 Q_DISABLE_COPY(UCProportionalShape)
37};39};
3840

Subscribers

People subscribed via source and target branches