-
Notifications
You must be signed in to change notification settings - Fork 0
/
fans.qml
60 lines (54 loc) · 1.44 KB
/
fans.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
import QtQuick 2.13
import QtQuick.Controls 2.13
import QtQuick.Layouts 1.13
Page {
width: parent ? parent.width : 0
height: parent ? parent.height : 0
title: qsTr("Fan Setup")
ScrollView {
anchors.fill: parent
GridLayout {
id: fansGrid
anchors.margins: 12
anchors.fill: parent
columns: 1
Fan {
title: qsTr("Fan 1")
fan: backEnd.fan1
fanNo: 1
visible: !!backEnd.fan1.pinPWM
lblTopMargin: 0
}
Fan {
title: qsTr("Fan 2")
fan: backEnd.fan2
fanNo: 2
visible: !!backEnd.fan2.pinPWM
}
Fan {
title: qsTr("Fan 3")
fan: backEnd.fan3
fanNo: 3
visible: !!backEnd.fan3.pinPWM
}
Fan {
title: qsTr("Fan 4")
fan: backEnd.fan4
fanNo: 4
visible: !!backEnd.fan4.pinPWM
}
Fan {
title: qsTr("Fan 5")
fan: backEnd.fan5
fanNo: 5
visible: !!backEnd.fan5.pinPWM
}
Fan {
title: qsTr("Fan 6")
fan: backEnd.fan6
fanNo: 6
visible: !!backEnd.fan6.pinPWM
}
}
}
}