summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2023-05-13 18:19:38 +0800
committerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2023-05-13 18:19:38 +0800
commit2a2c1e58d25e23fb98fa25a09fd5b0bcc863d10c (patch)
treeba04449eafa9e4851614d3c9ac1c9453a3653467
parent4079fd9417e11c6233a4a85fa14d315788b18806 (diff)
Buttons next to price on courses
-rw-r--r--Shop/Course.ui.qml20
1 files changed, 19 insertions, 1 deletions
diff --git a/Shop/Course.ui.qml b/Shop/Course.ui.qml
index 277a50b..c22d3b6 100644
--- a/Shop/Course.ui.qml
+++ b/Shop/Course.ui.qml
@@ -8,6 +8,7 @@ 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"
+ property alias buttons: buttons
Rectangle {
Layout.fillWidth: true
@@ -64,15 +65,32 @@ ColumnLayout {
Item {
Layout.fillWidth: true
Layout.topMargin: 16
+ implicitHeight: buttons.height
+
Label {
+ id: price
anchors {
top: parent.top
left: parent.left
- bottom: parent.bottom
}
text: priceText
wrapMode: Label.Wrap
}
+
+ GridView {
+ id: buttons
+ interactive: false
+ anchors {
+ top: parent.top
+ right: parent.right
+ }
+ width: 137.016
+ model: ["Remove", "Edit"]
+ delegate: Button {
+ flat: true
+ text: modelData
+ }
+ }
}
}
}