summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2023-08-28 17:13:27 +0800
committerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2023-08-28 17:13:27 +0800
commitad2e9c9e654dfe041303e24c6faad8d85deaaa20 (patch)
tree0416f423c7c55bf8fbcffe300705f5821523dc8e
parent0178d9b1b72885e42f88ee279098015d0f4be780 (diff)
Student dashboard is contained in flickable
that scrolls horizontally
-rw-r--r--Student/Dashboard.ui.qml66
1 files changed, 39 insertions, 27 deletions
diff --git a/Student/Dashboard.ui.qml b/Student/Dashboard.ui.qml
index eee64ad..326303b 100644
--- a/Student/Dashboard.ui.qml
+++ b/Student/Dashboard.ui.qml
@@ -3,36 +3,48 @@ import QtQuick.Controls 2.15
import "Dashboard"
import QtQuick.Layouts 1.15
-ColumnLayout{
- RowLayout {
- Label{
- text: "Course Title"
- }
- Label{
- text: "Total Lectures"
- }
- Label{
- text: "Completed Lecture"
- }
- Label{
- text: "Action"
- }
-}
- ListView {
- height: 100 * count
- model: ListModel {
- ListElement {
- title: qsTr("Building Scalable APIs with GraphQL")
- image: "https://eduport.webestica.com/assets/images/courses/4by3/08.jpg"
+Flickable {
+ contentWidth: table.width
+
+ ColumnLayout{
+ id: table
+ width: 839.878
+
+ RowLayout {
+ Layout.fillWidth: true
+ Label{
+ text: "Course Title"
+ }
+ Label{
+ text: "Total Lectures"
+ }
+ Label{
+ text: "Completed Lecture"
}
- ListElement {
- title: qsTr("Create a Design System in Figma")
- image: "https://eduport.webestica.com/assets/images/courses/4by3/03.jpg"
+ Label{
+ text: "Action"
}
}
- delegate: CourseListItem {
- courseTitle.text: title
- courseThumb.source: image
+
+ ListView {
+ id: tableBody
+ Layout.fillWidth: true
+ height: 100 * count
+ model: ListModel {
+ ListElement {
+ title: qsTr("Building Scalable APIs with GraphQL")
+ image: "https://eduport.webestica.com/assets/images/courses/4by3/08.jpg"
+ }
+ ListElement {
+ title: qsTr("Create a Design System in Figma")
+ image: "https://eduport.webestica.com/assets/images/courses/4by3/03.jpg"
+ }
+ }
+ delegate: CourseListItem {
+ width: tableBody.width
+ courseTitle.text: title
+ courseThumb.source: image
+ }
}
}
}