diff options
author | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2023-07-11 15:32:51 +0800 |
---|---|---|
committer | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2023-07-11 15:32:51 +0800 |
commit | 963f459978d017a83e17fba20eddce5b60097092 (patch) | |
tree | 80f0133c502cd2260f6215882fd7fb4f552962bf /Home/Default/Card.ui.qml | |
parent | 8bc03b9a68bfa7eac745805861220de25fb5273a (diff) |
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"
Diffstat (limited to 'Home/Default/Card.ui.qml')
-rw-r--r-- | Home/Default/Card.ui.qml | 3 |
1 files changed, 2 insertions, 1 deletions
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 |