-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmain.qml
104 lines (80 loc) · 2.15 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
import QtQuick
import QtCore
import QtQuick.Controls
import QtQuick.Layouts
import "qml"
import "qml/order"
import "qml/book"
import "qml/header"
ApplicationWindow {
id: main
property string title
property string logTxt
property real price_buy: 0
property real price_sell: 0
property real amount_buy: 0
property real amount_sell: 0
width: 1000
height: 820
visible: true
title: "BTC / USDT"
Material.background: "#364554"
Settings {
id: settings
location: "settings.ini"
property string pk
property string pass
property alias x: main.x
property alias y: main.y
property alias width: main.width
property alias height: main.height
}
header: MainHeader {} // bar_height: Qt.platform.os === "android" ? 210 : 250 }
RowLayout {
anchors.fill: parent
focus: false
spacing: 1
// SALE BOOK LIST
Rectangle {
color: 'transparent'
Layout.fillWidth: true
Layout.fillHeight: true
Layout.maximumWidth: main.width * 0.4
ScrollView {
width: parent.width
height: parent.height
BookList {
model: crp.buy_book
}
}
}
// TRADE HISTORY LIST
Rectangle {
color: 'transparent'
Layout.fillWidth: true
Layout.fillHeight: true
Layout.maximumWidth: parent.width * 0.2
ScrollView {
width: parent.width
height: parent.height
TradeHistoryList {
model: crp.history_trade_items
}
}
}
// BUY BOOK LIST
Rectangle {
color: 'transparent'
Layout.fillWidth: true
Layout.fillHeight: true
Layout.maximumWidth: parent.width * 0.4
ScrollView {
width: parent.width
height: parent.height
BookList {
model: crp.sell_book
}
}
}
}
}