From e80248b9dafa5fc136f068da61e76e6ac2460e26 Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Fri, 14 Feb 2020 13:36:29 +0100 Subject: [PATCH] warnings-- --- .../package/contents/ui/launcher/Delegate.qml | 13 +++---------- .../package/contents/ui/launcher/FavoriteStrip.qml | 2 +- 2 files changed, 4 insertions(+), 11 deletions(-) diff --git a/containments/homescreen/package/contents/ui/launcher/Delegate.qml b/containments/homescreen/package/contents/ui/launcher/Delegate.qml index 8c7c5c88..2fd9b869 100644 --- a/containments/homescreen/package/contents/ui/launcher/Delegate.qml +++ b/containments/homescreen/package/contents/ui/launcher/Delegate.qml @@ -139,17 +139,10 @@ ContainmentLayoutManager.ItemContainer { horizontalAlignment: Text.AlignHCenter verticalAlignment: Text.AlignTop maximumLineCount: 2 - //elide: Text.ElideRight - elide: truncated ? Text.ElideLeft : Text.ElideRight + elide: Text.ElideRight + + text: model.ApplicationNameRole - text: { - // This trick can get us a shorter text but without ... - if (truncated) { - return model.ApplicationNameRole + "\x9C" - } else { - return model.ApplicationNameRole; - } - } //FIXME: export smallestReadableFont font.pointSize: theme.defaultFont.pointSize * 0.9 color: "white"//model.ApplicationLocationRole == ApplicationListModel.Desktop ? "white" : theme.textColor diff --git a/containments/homescreen/package/contents/ui/launcher/FavoriteStrip.qml b/containments/homescreen/package/contents/ui/launcher/FavoriteStrip.qml index 4f301521..2aae87fb 100644 --- a/containments/homescreen/package/contents/ui/launcher/FavoriteStrip.qml +++ b/containments/homescreen/package/contents/ui/launcher/FavoriteStrip.qml @@ -38,7 +38,7 @@ LauncherContainer { opacity: launcherDragManager.active && plasmoid.nativeInterface.applicationListModel.favoriteCount >= plasmoid.nativeInterface.applicationListModel.maxFavoriteCount ? 0.3 : 1 - height: launcherGrid.cellHeight + topPadding + bottomPadding + height: launcherGrid.cellHeight frame.implicitWidth: launcherGrid.cellWidth * Math.max(1, flow.children.length) + frame.leftPadding + frame.rightPadding