-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.qml
55 lines (49 loc) · 1.4 KB
/
main.qml
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
import QtQuick 2.9
import QtQuick.Controls 2.2
import QtQuick.Layouts 1.3
import sql.history.model 1.0
ApplicationWindow {
id: window
visible: true
width: 640
height: 480
title: qsTr("Debt")
SqlHistoryModel {
id: sqlHistoryModel
}
StackView {
id: stackView
anchors.fill: parent
initialItem: Page {
id: historyPage
header: DebtToolBar {
Label {
text: qsTr("Latest Activity")
font.pixelSize: 20
anchors.centerIn: parent
}
ToolButton {
text: qsTr("Debtors")
anchors.right: parent.right
anchors.rightMargin: 10
anchors.verticalCenter: parent.verticalCenter
onClicked: stackView.push("qrc:/DebtorPage.qml",{})
}
}
ListView {
id: listView
anchors.fill: parent
topMargin: 48
leftMargin: 48
bottomMargin: 48
rightMargin: 48
spacing: 20
model: sqlHistoryModel
delegate: Text {
id: name
text: id
}
}
}
}
}