From 4319223da42e33a8a2e3d331447f00a7b2049e12 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=EA=A6=AB=EA=A6=B6=EA=A6=8F=EA=A7=80=EA=A6=A6?= =?UTF-8?q?=EA=A6=BF=EA=A6=A7=EA=A6=AE=EA=A6=91=EA=A6=A9=EA=A6=AD=EA=A7=80?= Date: Sun, 25 Sep 2022 19:42:29 +0800 Subject: Property for text-truncate(-2) --- CardItem.ui.qml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CardItem.ui.qml b/CardItem.ui.qml index 741a1a5..bd13997 100644 --- a/CardItem.ui.qml +++ b/CardItem.ui.qml @@ -4,6 +4,7 @@ import QtQuick.Controls 2.15 Rectangle { property alias cardImage: image property alias cardTitle: title + property alias textTruncate: textTruncate width: 300 height: 480 @@ -71,7 +72,7 @@ Rectangle { } Label { - id: comment + id: textTruncate text: qsTr("Rooms oh fully taken by worse do Points afraid but may end Rooms Points afraid but may end Rooms") wrapMode: Text.Wrap anchors { -- cgit v1.2.3