Review Request 115500: Set minimumWidth of button to actually fit the text

David Edmundson david at
Wed Feb 5 16:00:40 UTC 2014

This is an automatically generated e-mail. To reply, visit:

(Updated Feb. 5, 2014, 4 p.m.)


This change has been marked as submitted.

Review request for Plasma.

Repository: plasma-framework


Set minimumWidth of button to actually show the text

The minimumWidth of a plasma button is based on the paintedWidth
of the text item. There is no way to work out the correct width it
should be if we set the text to elide.
(except for the hack of using a hidden fake text item)

We should always fit contents. This won't cause any problems unless a
developer has a broken layout, at which point that should be fixed


  src/declarativeimports/plasmacomponents/qml/Button.qml 03fa42c 




David Edmundson

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the Plasma-devel mailing list