From 5d710aea64d1081fc3b46255b182a0459ad720bc 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, 7 Mar 2023 14:21:42 +0800 Subject: Course detail classic tabs --- CourseDetailClassic.ui.qml | 56 ++++++++++++++++++++++++++++++---------------- 1 file changed, 37 insertions(+), 19 deletions(-) diff --git a/CourseDetailClassic.ui.qml b/CourseDetailClassic.ui.qml index 16f3a7e..7a94160 100644 --- a/CourseDetailClassic.ui.qml +++ b/CourseDetailClassic.ui.qml @@ -139,10 +139,9 @@ Flickable { left: parent.left right: parent.right } - implicitHeight: tabsContent.height + implicitHeight: tabs.height + tabsContent.height + 83.2 ColumnLayout { - id: tabsContent anchors { left: parent.left leftMargin: 25.6 @@ -150,27 +149,46 @@ Flickable { rightMargin: 25.6 } - Label { - text: qsTr("Course Description") - color: "#24292d" - wrapMode: Text.Wrap + GridView { + id: tabs + interactive: false Layout.fillWidth: true + Layout.topMargin: 16 Layout.bottomMargin: 16 - font { - family: heebo.name - pointSize: 20.1 - } + cellWidth: 128 + cellHeight: 46 + implicitHeight: Math.ceil(count / Math.floor(count / (cellWidth * count / width))) * cellHeight + model: ["Overview", "Curriculum", "Instructor", "Reviews", "FAQs", "Comment"] + delegate: TabItem {} } - Label { - id: courseDescription - text: qsTr("Welcome to the Digital Marketing Ultimate Course Bundle - 12 Courses in 1 (Over 36 hours of content)") - color: "#747579" - wrapMode: Text.Wrap - Layout.fillWidth: true - font { - family: doesntEmbed ? "Roboto" : regular.name - pointSize: 15 + ColumnLayout { + id: tabsContent + Layout.topMargin: 25.6 + Layout.bottomMargin: 25.6 + + Label { + text: qsTr("Course Description") + color: "#24292d" + wrapMode: Text.Wrap + Layout.fillWidth: true + Layout.bottomMargin: 16 + font { + family: heebo.name + pointSize: 20.1 + } + } + + Label { + id: courseDescription + text: qsTr("Welcome to the Digital Marketing Ultimate Course Bundle - 12 Courses in 1 (Over 36 hours of content)") + color: "#747579" + wrapMode: Text.Wrap + Layout.fillWidth: true + font { + family: doesntEmbed ? "Roboto" : regular.name + pointSize: 15 + } } } } -- cgit v1.2.3