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:
parent
5aa1e18f97
commit
8b86279298
@ -368,7 +368,6 @@ Item {
|
|||||||
|
|
||||||
color: mouse.containsMouse || !button.flat ? theme.buttonTextColor : theme.textColor
|
color: mouse.containsMouse || !button.flat ? theme.buttonTextColor : theme.textColor
|
||||||
Behavior on color { ColorAnimation { duration: units.shortDuration * 2 } }
|
Behavior on color { ColorAnimation { duration: units.shortDuration * 2 } }
|
||||||
elide: Text.ElideRight
|
|
||||||
|
|
||||||
horizontalAlignment: icon.valid ? Text.AlignLeft : Text.AlignHCenter
|
horizontalAlignment: icon.valid ? Text.AlignLeft : Text.AlignHCenter
|
||||||
verticalAlignment: Text.AlignVCenter
|
verticalAlignment: Text.AlignVCenter
|
||||||
|
Loading…
Reference in New Issue
Block a user