Elide Components' Button label
Otherwise the label can get out of the button boundaries. Tested with RTL text too, it's elided properly as the elipsis switches to Left on its own. Reviewed-by: Marco Martin BUG: 334867
This commit is contained in:
parent
78e6000e72
commit
5aa1e18f97
@ -249,6 +249,7 @@ Item {
|
|||||||
color: theme.buttonTextColor
|
color: theme.buttonTextColor
|
||||||
horizontalAlignment: icon.valid ? Text.AlignLeft : Text.AlignHCenter
|
horizontalAlignment: icon.valid ? Text.AlignLeft : Text.AlignHCenter
|
||||||
verticalAlignment: Text.AlignVCenter
|
verticalAlignment: Text.AlignVCenter
|
||||||
|
elide: Text.ElideRight
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user