forked from oepi-loepi/toonTemp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ToonTempScreen1.qml
54 lines (45 loc) · 1.19 KB
/
ToonTempScreen1.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
import QtQuick 2.1
import BasicUIControls 1.0
import qb.components 1.0
Screen {
id: toonTempScreen1
property variant dataValues : app.tempDATA[0]
Component.onCompleted: {
app.temperaturesUpdated1.connect(updateScreen);
}
function updateScreen() {
todaybarGraph.dataValues = app.tempDATA[0]
}
ToonTempBarGraph {
id: todaybarGraph
anchors {
bottom: parent.bottom
bottomMargin: isNxt? 80:64
left : parent.left
leftMargin : isNxt? 10:8
}
height: isNxt? parent.height-100 : parent.height-80
width: isNxt? parent.width - 40 : parent.width - 32
hourGridColor: "red"
titleText: app.sensorNames[0]
titleFont: qfont.bold.name
titleSize: isNxt ? 20 : 16
showTitle: true
backgroundcolor : "lightgrey"
axisColor : "black"
barColor :dimmableColors.graphSolar
lineXaxisvisible : true
textXaxisColor : "red"
stepXtext: 20
valueFont: qfont.regular.name
valueSize: isNxt ? 16 : 12
valueTextColor : "black"
showValuesOnBar : false
levelColor :"red"
levelTextColor : "blue"
showLevels : true
showValuesOnLevel : true
debugOutput : app.debugOutput
dataValues: app.tempDATA[0]
}
}