Merge lp:~loic.molinari/ubuntu-ui-toolkit/ubuntu-ui-toolkit-use-set-implicit-size into lp:ubuntu-ui-toolkit/staging

Proposed by Loïc Molinari
Status: Work in progress
Proposed branch: lp:~loic.molinari/ubuntu-ui-toolkit/ubuntu-ui-toolkit-use-set-implicit-size
Merge into: lp:ubuntu-ui-toolkit/staging
Prerequisite: lp:~loic.molinari/ubuntu-ui-toolkit/ubuntu-ui-toolkit-resolution-independance
Diff against target: 22 lines (+2/-4)
1 file modified
modules/Ubuntu/Components/plugin/ucubuntushape.cpp (+2/-4)
To merge this branch: bzr merge lp:~loic.molinari/ubuntu-ui-toolkit/ubuntu-ui-toolkit-use-set-implicit-size
Reviewer Review Type Date Requested Status
PS Jenkins bot continuous-integration Needs Fixing
Ubuntu SDK team Pending
Review via email: mp+251893@code.launchpad.net

Commit message

[UbuntuShape] Code clean up.

Made use of a single QQuickItem::setImplicitSize() call instead of two QQuickItem::setImplicitWidth() and QQuickItem::setImplicitHeight() calls.

Description of the change

[UbuntuShape] Code clean up.

Made use of a single QQuickItem::setImplicitSize() call instead of two QQuickItem::setImplicitWidth() and QQuickItem::setImplicitHeight() calls.

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)

Unmerged revisions

1341. By Loïc Molinari

Made use of setImplicitSize instead of setImplicit[Width,Height].

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'modules/Ubuntu/Components/plugin/ucubuntushape.cpp'
--- modules/Ubuntu/Components/plugin/ucubuntushape.cpp 2015-03-05 10:25:20 +0000
+++ modules/Ubuntu/Components/plugin/ucubuntushape.cpp 2015-03-05 10:25:21 +0000
@@ -291,8 +291,7 @@
291 QObject::connect(&UCUnits::instance(), SIGNAL(gridUnitChanged()), this,291 QObject::connect(&UCUnits::instance(), SIGNAL(gridUnitChanged()), this,
292 SLOT(_q_gridUnitChanged()));292 SLOT(_q_gridUnitChanged()));
293 const float gridUnit = UCUnits::instance().gridUnit();293 const float gridUnit = UCUnits::instance().gridUnit();
294 setImplicitWidth(implicitWidthGU * gridUnit);294 setImplicitSize(implicitWidthGU * gridUnit, implicitHeightGU * gridUnit);
295 setImplicitHeight(implicitHeightGU * gridUnit);
296 update();295 update();
297}296}
298297
@@ -976,8 +975,7 @@
976void UCUbuntuShape::_q_gridUnitChanged()975void UCUbuntuShape::_q_gridUnitChanged()
977{976{
978 const float gridUnit = UCUnits::instance().gridUnit();977 const float gridUnit = UCUnits::instance().gridUnit();
979 setImplicitWidth(implicitWidthGU * gridUnit);978 setImplicitSize(implicitWidthGU * gridUnit, implicitHeightGU * gridUnit);
980 setImplicitHeight(implicitHeightGU * gridUnit);
981 update();979 update();
982}980}
983981

Subscribers

People subscribed via source and target branches