From 4a64f8d229461abbe262ba66ee189d9c3fa4c5ff 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: Wed, 2 Feb 2022 12:58:03 +0800 Subject: Conform to updated qrtclient & design --- Home.qml | 53 +++++++++++++++++++++++++++-------------------------- 1 file changed, 27 insertions(+), 26 deletions(-) (limited to 'Home.qml') diff --git a/Home.qml b/Home.qml index 33caa1b..c836ecf 100644 --- a/Home.qml +++ b/Home.qml @@ -1,43 +1,44 @@ -import QtQuick 2.12 import QtQuick 2.15 import QtQuick.Controls 2.15 import QtQuick.Layouts 1.15 import "larva/features" +import "larva/components" HomeForm { - menuButton.onClicked: drawer.open() - profileButton.onClicked: pageView.push("Profile.qml") + //menuButton.onClicked: drawer.open() + //profileButton.onClicked: pageView.push("Profile.qml") - Drawer { - id: drawer - width: window.width * 0.8 - height: window.height - visible: false + StackLayout { + id: layout + anchors.fill: parent - DayListForm { - todayItemDelegate { - text: qsTr("Today") - onClicked: { - contentView.push("TicketList.qml") - var ticketList = contentView.currentItem - ticketList.title = qsTr("Today") - drawer.close() - } - } + Page {} - futureItemDelegate { - text:qsTr("Future") - onClicked: { - contentView.push("TicketList.qml") - var ticketList = contentView.currentItem - ticketList.title = qsTr("Future ticket") - drawer.close() + TaskListForm { + listView { + model: ticketList + delegate: ListItemSingleTextForm { + title.text: subject + delegate.onClicked: { + window.ticketHistoryList(id, + true) + } } } } + + Page {} } contentView.initialItem: TicketList { - title: qsTr("Today") + title: qsTr("Projects") + } + + footer: MainTabBarForm { + id: tabBar + width: parent.width + leftTabButton.onClicked: layout.currentIndex = 0 + middleTabButton.onClicked: layout.currentIndex = 1 + rightTabButton.onClicked: layout.currentIndex = 2 } } -- cgit v1.2.3