summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEike Hein <hein@kde.org>2017-03-27 12:02:35 (GMT)
committerEike Hein <hein@kde.org>2017-03-27 12:03:43 (GMT)
commitf5f685ecdc630fdcd767e2a6f611b8f43e7f8c3e (patch)
treed125a3ececf15f10c9b65294ab1f1efe9937e4e3
parent20d160cc52db889a30c648e2531731eb27b1cf3c (diff)
Set wrapMode to NoWrap when maximumLineCount is 1.
Otherwise QML Text elides much too early for some reason.
-rw-r--r--applets/taskmanager/package/contents/ui/Task.qml2
1 files changed, 1 insertions, 1 deletions
diff --git a/applets/taskmanager/package/contents/ui/Task.qml b/applets/taskmanager/package/contents/ui/Task.qml
index 1408347..3521f96 100644
--- a/applets/taskmanager/package/contents/ui/Task.qml
+++ b/applets/taskmanager/package/contents/ui/Task.qml
@@ -472,7 +472,7 @@ MouseArea {
}
text: model.display
- wrapMode: Text.Wrap
+ wrapMode: (maximumLineCount == 1) ? Text.NoWrap : Text.Wrap
elide: Text.ElideRight
textFormat: Text.PlainText
verticalAlignment: Text.AlignVCenter