From 2a2c1e58d25e23fb98fa25a09fd5b0bcc863d10c 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: Sat, 13 May 2023 18:19:38 +0800 Subject: Buttons next to price on courses --- Shop/Course.ui.qml | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) 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 + } + } } } } -- cgit v1.2.3