forked from IgorYbema/tscSettings
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathChangeMaxHeatingScreen.qml
More file actions
60 lines (45 loc) · 1.38 KB
/
ChangeMaxHeatingScreen.qml
File metadata and controls
60 lines (45 loc) · 1.38 KB
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
import QtQuick 2.1
import qb.components 1.0
import qb.base 1.0
import BxtClient 1.0
Screen {
id: tscChangeMaxHeatingScreen
isSaveCancelDialog: true
screenTitle: "Change max heating setpoint"
property bool firstShown: true; // we need this because exiting a keyboard will load onShown again. Without this the input will be overwritten with the app settings again
onSaved: {
app.setMaxHeat(maxHeating.inputText);
}
onShown: {
if (firstShown) {
maxHeating.inputText = globals.tsc["maxHeatingTemp"]
firstShown = false;
}
}
Text {
id: bodyText
width: Math.round(650 * app.nxtScale)
wrapMode: Text.WordWrap
text: "Set maximum heating temp, after setting the toon will restart for changes to take effect"
color: "#000000"
font.pixelSize: qfont.bodyText
font.family: qfont.regular.name
anchors {
top: parent.top
topMargin: isNxt ? Math.round(10 * 1.28) : 10
horizontalCenter: parent.horizontalCenter
}
}
EditTextLabel {
id: maxHeating
width: isNxt ? 300 : 250
leftText: "Max temp.:"
inputHints: Qt.ImhDigitsOnly
anchors {
top: bodyText.bottom
topMargin : 10
left: parent.left
leftMargin: isNxt ? 60 : 50
}
}
}