From fc6a0ea959ee0c8752d32872be994312478e3445 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: Thu, 9 Mar 2023 17:21:56 +0800 Subject: Properties for course item --- CourseItem.ui.qml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'CourseItem.ui.qml') diff --git a/CourseItem.ui.qml b/CourseItem.ui.qml index 502803e..18bc5d7 100644 --- a/CourseItem.ui.qml +++ b/CourseItem.ui.qml @@ -4,6 +4,9 @@ import QtQuick.Layouts 1.15 import QtGraphicalEffects 1.15 ColumnLayout { + property string imageSource: "https://eduport.webestica.com/assets/images/courses/4by3/08.jpg" + property string titleText: "Sketch from A to Z: for app designer" + property string priceText: "$150" readonly property bool doesntEmbed: Qt.platform.os === "android" || Qt.platform.os === "linux" || Qt.platform.os === "osx" @@ -49,7 +52,7 @@ ColumnLayout { left: parent.left right: parent.right } - source: image + source: imageSource fillMode: Image.PreserveAspectFit layer.enabled: true layer.effect: OpacityMask { @@ -67,7 +70,7 @@ ColumnLayout { Label { Layout.fillWidth: true - text: title + text: titleText font { family: heebo.name pointSize: 15 @@ -83,7 +86,7 @@ ColumnLayout { left: parent.left bottom: parent.bottom } - text: price + text: priceText color: "#0cbc87" font { family: doesntEmbed ? "Roboto" : regular.name -- cgit v1.2.3