From 5aa1e18f970672ef882b5749120f6598ff270235 Mon Sep 17 00:00:00 2001 From: Martin Klapetek Date: Wed, 21 May 2014 17:45:45 +0200 Subject: [PATCH] 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 --- src/declarativeimports/plasmacomponents/qml/Button.qml | 1 + 1 file changed, 1 insertion(+) diff --git a/src/declarativeimports/plasmacomponents/qml/Button.qml b/src/declarativeimports/plasmacomponents/qml/Button.qml index 4d205e1d8..f53801aba 100644 --- a/src/declarativeimports/plasmacomponents/qml/Button.qml +++ b/src/declarativeimports/plasmacomponents/qml/Button.qml @@ -249,6 +249,7 @@ Item { color: theme.buttonTextColor horizontalAlignment: icon.valid ? Text.AlignLeft : Text.AlignHCenter verticalAlignment: Text.AlignVCenter + elide: Text.ElideRight } }