summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2022-09-26 16:24:46 +0800
committerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2022-09-26 16:24:46 +0800
commita3211c73acb5730eae20bbea324e5784cc12476d (patch)
treef90c2a4f565c6395bd50c42f5e5a253f7250d7c9
parent42d737c08d6dc5ada6002afe7c74dc1fa6240a25 (diff)
Exposed properties are only that need to be set
-rw-r--r--Card.ui.qml16
1 files 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