D7010: KSqueezedTextLabel: call updateGeometry() when text changes

Christoph Feck noreply at phabricator.kde.org
Thu Aug 3 15:47:50 UTC 2017


cfeck requested changes to this revision.
cfeck added a comment.
This revision now requires changes to proceed.


  The title says "when text changes", but you call it even if the text does not change. Note that squeezeTextToLabel() is called from many places, including resizeEvent(), so avoid calling updateGeometry() if not needed.

REPOSITORY
  R236 KWidgetsAddons

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

To: brauch, cfeck
Cc: aacid, #frameworks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20170803/5bf0e971/attachment.html>


More information about the Kde-frameworks-devel mailing list