Match toolbutton sizing behaviour with button

Removing eliding in Toolbutton, this causes a binding loop as the
sizeHint is dependent on the paintedSize, which will change if you
elide.

In all cases we are trying to make toolbuttons fit the contents, so this
actually got in the way of that.
This commit is contained in:
David Edmundson 2014-05-21 20:05:50 +02:00
parent 5aa1e18f97
commit 8b86279298

View File

@ -368,7 +368,6 @@ Item {
color: mouse.containsMouse || !button.flat ? theme.buttonTextColor : theme.textColor
Behavior on color { ColorAnimation { duration: units.shortDuration * 2 } }
elide: Text.ElideRight
horizontalAlignment: icon.valid ? Text.AlignLeft : Text.AlignHCenter
verticalAlignment: Text.AlignVCenter