-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathLeftArea.qml
86 lines (70 loc) · 1.7 KB
/
LeftArea.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
import QtQuick 2.12
import QtQuick.Controls 2.12
Item {
id: root
width: 310
height: 600
property int ppeak: 28
property real expMinVol: 5.1
property int vte: 346
property int fTotal: 15
Timer {
running: true
repeat: true
interval: 100
onTriggered: {
var r = Math.floor(Math.random() * 4)
if (r === 0) {
r = Math.floor(Math.random() * 3) - 1
ppeak = ppeak + r
} else if(r === 1) {
} else if(r === 2) {
r = Math.floor(Math.random() * 3) - 1
vte = vte + r
} else if(r === 3) {
r = Math.floor(Math.random() * 3) - 1
fTotal = fTotal + r
}
}
}
Column {
spacing: 10
anchors.fill: parent
// Image {
// source: "qrc:///images/ppeak.png"
// //anchors.bottom: parent.bottom
// }
ParamCard {
width: 310
color: "#3C3E95"
radius: 10
pname: "Ppeak"
pvalue: ppeak
punit: "cmH2O"
}
ParamCard {
width: 310
color: "#3C3E95"
radius: 10
pname: "ExpMinVol"
pvalue: expMinVol
punit: "l/min"
}
ParamCard {
width: 310
color: "#3C3E95"
radius: 10
pname: "VTE"
pvalue: vte
punit: "ml"
}
ParamCard {
width: 310
color: "#3C3E95"
radius: 10
pname: "fTotal"
pvalue: fTotal
punit: "b/min"
}
}
}