From 4319223da42e33a8a2e3d331447f00a7b2049e12 Mon Sep 17 00:00:00 2001 From: ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ 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.3