From a3211c73acb5730eae20bbea324e5784cc12476d 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: Mon, 26 Sep 2022 16:24:46 +0800 Subject: Exposed properties are only that need to be set --- Card.ui.qml | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/Card.ui.qml b/Card.ui.qml index ff46411..1f4c8c0 100644 --- a/Card.ui.qml +++ b/Card.ui.qml @@ -2,9 +2,10 @@ import QtQuick 2.15 import QtQuick.Controls 2.15 Item { - property alias cardImage: image - property alias cardTitle: title - property alias textTruncate: textTruncate + property string imageSource: "darapsa.svg" + property string badgeText: "Beginner" + property string titleText: "Sketch from A to Z: for app designer" + property string textTruncateText: "Rooms oh fully taken by worse do Points afraid but may end Rooms Points afraid but may end Rooms" width: 300 height: 480 @@ -22,7 +23,7 @@ Item { Image { id: image - source: "darapsa.svg" + source: imageSource sourceSize { width: parent.width height: parent.width * 3 / 4 @@ -49,7 +50,8 @@ Item { } Label { - text: qsTr("Beginner") + id: badge + text: badgeText font.pointSize:12 anchors { verticalCenter: parent.verticalCenter @@ -74,7 +76,7 @@ Item { Label { id: title - text: qsTr("Sketch from A to Z: for app designer") + text: titleText wrapMode: Text.Wrap font { weight: Font.Medium @@ -92,7 +94,7 @@ Item { Label { id: textTruncate - text: qsTr("Rooms oh fully taken by worse do Points afraid but may end Rooms Points afraid but may end Rooms") + text: textTruncateText wrapMode: Text.Wrap font { weight: Font.Light -- cgit v1.2.3