summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2023-08-25 21:34:03 +0800
committerGitHub <noreply@github.com>2023-08-25 21:34:03 +0800
commit0732c9f3ebfd3d328eea056160dc1f5072ee5da3 (patch)
tree0aa098088265ed13b05c4031c59a153d2c160f2f
parent3d130f28ee0aa785d40be22f23950bf52cc4ac7b (diff)
parent07e18a1c69f288f095b4d94e5202bad0d5c1f10d (diff)
Merge pull request #1 from civilH/master
Implement Student dashboard thead
-rw-r--r--HomeDefault.qrc2
-rw-r--r--Student/Dashboard.ui.qml42
2 files changed, 32 insertions, 12 deletions
diff --git a/HomeDefault.qrc b/HomeDefault.qrc
index c463172..725788a 100644
--- a/HomeDefault.qrc
+++ b/HomeDefault.qrc
@@ -14,5 +14,7 @@
<file>Font-Awesome/svgs/solid/table.svg</file>
<file>Home/Default/Card.ui.qml</file>
<file>Home/Default.ui.qml</file>
+ <file>Student/Dashboard.ui.qml</file>
+ <file>Student/Dashboard/CourseListItem.ui.qml</file>
</qresource>
</RCC>
diff --git a/Student/Dashboard.ui.qml b/Student/Dashboard.ui.qml
index a461492..eee64ad 100644
--- a/Student/Dashboard.ui.qml
+++ b/Student/Dashboard.ui.qml
@@ -1,20 +1,38 @@
import QtQuick 2.15
import QtQuick.Controls 2.15
import "Dashboard"
+import QtQuick.Layouts 1.15
-ListView {
- model: ListModel {
- ListElement {
- title: qsTr("Building Scalable APIs with GraphQL")
- image: "https://eduport.webestica.com/assets/images/courses/4by3/08.jpg"
+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"
+ }
+ ListElement {
+ title: qsTr("Create a Design System in Figma")
+ image: "https://eduport.webestica.com/assets/images/courses/4by3/03.jpg"
+ }
}
- ListElement {
- title: qsTr("Create a Design System in Figma")
- image: "https://eduport.webestica.com/assets/images/courses/4by3/03.jpg"
+ delegate: CourseListItem {
+ courseTitle.text: title
+ courseThumb.source: image
}
}
- delegate: CourseListItem {
- courseTitle.text: title
- courseThumb.source: image
- }
}