summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Edmundson <[email protected]>2016-09-30 22:25:44 +0100
committerDavid Edmundson <[email protected]>2016-09-30 22:26:41 +0100
commit77dad58290769e2e1223c1275b8e074c8e8ff3bd (patch)
tree794fbee797eab92912133f66277209e856f2e244
parentf722ae24231822613f45ae75a203b7e5ccae00f1 (diff)
Constrain kickoff config button label size
Summary: A better way to achieve center aligning is to use the alignment property of QtQuick.Text. This looks the same but because we now have left and right anchors text gets elided properly rather than overflowing out the box. Test Plan: Opened, looks identical Reviewers: #plasma Subscribers: jsalatas, plasma-devel Tags: #plasma Differential Revision: https://phabricator.kde.org/D2901
-rw-r--r--applets/kickoff/package/contents/ui/KickoffConfigurationButton.qml5
1 files changed, 4 insertions, 1 deletions
diff --git a/applets/kickoff/package/contents/ui/KickoffConfigurationButton.qml b/applets/kickoff/package/contents/ui/KickoffConfigurationButton.qml
index ef95dec..31bf05f 100644
--- a/applets/kickoff/package/contents/ui/KickoffConfigurationButton.qml
+++ b/applets/kickoff/package/contents/ui/KickoffConfigurationButton.qml
@@ -48,8 +48,11 @@ PlasmaCore.FrameSvgItem {
id: textElement
anchors {
top: iconElement.bottom
- horizontalCenter: parent.horizontalCenter
+ left: parent.left
+ right: parent.right
}
+ horizontalAlignment: Text.AlignHCenter
+ elide: Text.ElideRight
color: PlasmaCore.ColorScope.textColor
font.pointSize: theme.smallestFont.pointSize
}