D9068: Use setSize() instead of setProperty width and height

Kai Uwe Broulik noreply at phabricator.kde.org
Thu Nov 30 13:14:54 UTC 2017


broulik created this revision.
broulik added a reviewer: Plasma.
Restricted Application added projects: Plasma, Frameworks.
Restricted Application added subscribers: Frameworks, plasma-devel.

REVISION SUMMARY
  We know we have a `QQuickItem` so we can just use its methods directly and then also use`setSize` which does both at once, saving intermediate signal emission and potential re-layouting

TEST PLAN
  Containment still looks normal

REPOSITORY
  R242 Plasma Framework (Library)

REVISION DETAIL
  https://phabricator.kde.org/D9068

AFFECTED FILES
  src/plasmaquick/containmentview.cpp
  src/plasmaquick/view.cpp

To: broulik, #plasma
Cc: plasma-devel, #frameworks, ZrenBot, progwolff, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20171130/85633045/attachment.html>


More information about the Kde-frameworks-devel mailing list