summaryrefslogtreecommitdiff
path: root/Home
diff options
context:
space:
mode:
authorꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2023-07-11 15:32:51 +0800
committerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2023-07-11 15:32:51 +0800
commit963f459978d017a83e17fba20eddce5b60097092 (patch)
tree80f0133c502cd2260f6215882fd7fb4f552962bf /Home
parent8bc03b9a68bfa7eac745805861220de25fb5273a (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')
-rw-r--r--Home/Default/Card.ui.qml3
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