summaryrefslogtreecommitdiff
path: root/Home.qml
blob: e6d4804d483678c7e94ec6b0d92714626305edde (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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")

	StackLayout {
		id: layout
		anchors.fill: parent

		Page {}

		TaskListForm {
			listView {
				model: ticketList
				delegate: ListItemSingleTextForm {
					title.text: subject
					delegate.onClicked: {
						window.ticketHistoryList(id,
						true)
					}
				}
			}
		}

		Page {}
	}

	footer: MainTabBarForm {
		width: parent.width
		leftTabButton.onClicked: layout.currentIndex = 0
		middleTabButton.onClicked: layout.currentIndex = 1
		rightTabButton.onClicked: layout.currentIndex = 2
	}
}