From 963f459978d017a83e17fba20eddce5b60097092 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: Tue, 11 Jul 2023 15:32:51 +0800 Subject: Interface for customising card title heading type Providing the alias to title instead, in the hopes that Bootstrap.heading can be overridden in the implementation QML file, would lead to "Attached properties cannot be used here" --- Home/Default/Card.ui.qml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Home/Default/Card.ui.qml b/Home/Default/Card.ui.qml index ecaafbf..676540d 100644 --- a/Home/Default/Card.ui.qml +++ b/Home/Default/Card.ui.qml @@ -20,6 +20,7 @@ Item { property color badgeBackgroundColor: "#1a6f42c1" property alias favorite: favorite property string titleText: "Build Responsive Websites with HTML" + property int titleHeading: 5 property alias titleArea: titleArea property string truncatedText: "Far advanced settling say finished raillery. Offered chiefly farther" property bool truncatedVisible: true @@ -141,7 +142,7 @@ Item { id: title text: titleText wrapMode: Label.Wrap - Bootstrap.heading: 5 + Bootstrap.heading: titleHeading color: Eduport.bsCardTitleColor Layout.fillWidth: true Layout.bottomMargin: 8 -- cgit v1.2.3