-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathgaugeview.qml
89 lines (79 loc) · 1.95 KB
/
gaugeview.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
import Qt 4.7
import GaugeImage 0.1
Rectangle {
x:0
y:0
width: 1280
height: 800
color: "black"
GaugeImage {
x:0
y:0
width:200
height:200
minimum:-40
maximum:200
numLabels:3
startAngle:45
endAngle:270
text: "Temp"
Behavior on m_value { PropertyAnimation { properties: "m_value"; duration: (propertyMap["0105_DURATION"] ? propertyMap["0105_DURATION"] : 500) } }
m_value: (propertyMap["0105"] ? propertyMap["0105"] : 0)
}
GaugeImage {
x:425
y:0
width:250
height:250
minimum:0
maximum:655
numLabels:3
startAngle:90
endAngle:270
text: "MAF"
Behavior on m_value { PropertyAnimation { properties: "m_value"; duration: (propertyMap["0110_DURATION"] ? propertyMap["0110_DURATION"] : 500) } }
m_value: (propertyMap["0110"] ? propertyMap["0110"] : 0) * 10
}
GaugeImage {
x:0
y:150
width:550
height:550
minimum: 0
maximum: 7000
numLabels: 7
startAngle: 45
endAngle: 315
text:"RPM"
Behavior on m_value { PropertyAnimation { properties: "m_value"; duration: (propertyMap["010C_DURATION"] ? propertyMap["010C_DURATION"] : 500) } }
m_value: (propertyMap["010C"] ? propertyMap["010C"] : 0)
}
GaugeImage {
x: 550
y: 150
width:550
height: 550
minimum:0
maximum: 140
numLabels: 7
startAngle: 45
endAngle: 315
text:"MPH"
Behavior on m_value { PropertyAnimation { properties: "m_value"; duration: (propertyMap["010D_DURATION"] ? propertyMap["010D_DURATION"] : 500) } }
m_value: (propertyMap["010D"] ? propertyMap["010D"] : 0)
}
GaugeImage {
x: 975
y: 0
width:250
height: 250
minimum:0
maximum: 140
numLabels: 7
startAngle: 45
endAngle: 315
text: "VAC"
Behavior on m_value { PropertyAnimation { properties: "m_value"; duration: (propertyMap["010F_DURATION"] ? propertyMap["010F_DURATION"] : 500) } }
m_value: (propertyMap["010F"] ? propertyMap["010F"] : 0)
}
}