summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEike Hein <hein@kde.org>2017-03-27 12:04:19 (GMT)
committerEike Hein <hein@kde.org>2017-03-27 12:04:19 (GMT)
commita03d08a99e86c13ee50407f5189d70bf0a2b37fc (patch)
treeaf00f219cb1be90aaa010a74151e3125b0412f54
parentf5f685ecdc630fdcd767e2a6f611b8f43e7f8c3e (diff)
Set wrapMode to NoWrap when maximumLineCount is 1.
Otherwise QML Text elides much too early for some reason.
-rw-r--r--containments/desktop/package/contents/ui/FolderItemDelegate.qml2
1 files changed, 1 insertions, 1 deletions
diff --git a/containments/desktop/package/contents/ui/FolderItemDelegate.qml b/containments/desktop/package/contents/ui/FolderItemDelegate.qml
index c56a9ae..4b8ad7c 100644
--- a/containments/desktop/package/contents/ui/FolderItemDelegate.qml
+++ b/containments/desktop/package/contents/ui/FolderItemDelegate.qml
@@ -300,7 +300,7 @@ Item {
textFormat: Text.PlainText
- wrapMode: Text.Wrap
+ wrapMode: (maximumLineCount == 1) ? Text.NoWrap : Text.Wrap
elide: Text.ElideRight
color: textShadow.visible ? "white" : PlasmaCore.ColorScope.textColor