summaryrefslogtreecommitdiff
path: root/Home.qml
diff options
context:
space:
mode:
Diffstat (limited to 'Home.qml')
-rw-r--r--Home.qml53
1 files changed, 27 insertions, 26 deletions
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
}
}