Here is a complete listing of the example source file.
import QtQuick 2.11
import QtQuick.Controls 2.4
import QtQuick.Layouts 1.3
Rectangle {
anchors.fill: parent
color: Theme.palette.background
ColumnLayout {
anchors.fill: parent
anchors.margins: 10
spacing: 20
RowLayout {
Label {
text: qsTr("Size:")
}
Slider {
from: 10
to: 240
value: Theme.units.quadrat
onValueChanged: Theme.units.quadrat = value
}
}
Flickable {
Layout.fillHeight: true
Layout.fillWidth: true
ScrollBar.vertical: ScrollBar {}
ScrollBar.horizontal: ScrollBar {}
contentWidth: row.width
contentHeight: row.height
Row {
id: row
GridLayout {
rows: 3
flow: GridLayout.TopToBottom
Label {
Layout.alignment:
Qt.AlignCenter
text: qsTr("Air filter")
}
id: filter
Layout.alignment:
Qt.AlignCenter
}
Layout.alignment:
Qt.AlignTop
filter: filter
}
Label {
Layout.alignment:
Qt.AlignCenter
text: qsTr("Basic cooler")
}
id: basicCooler
Layout.alignment:
Qt.AlignCenter
}
Layout.alignment:
Qt.AlignTop
element: basicCooler
}
Label {
Layout.alignment:
Qt.AlignCenter
text: qsTr("Basic discrete instrument")
}
id: basicDiscreteInstrument
Layout.alignment:
Qt.AlignCenter
}
Layout.alignment:
Qt.AlignTop
instrument: basicDiscreteInstrument
}
Label {
Layout.alignment:
Qt.AlignCenter
text: qsTr("Basic heater")
}
id: basicHeater
Layout.alignment:
Qt.AlignCenter
}
Layout.alignment:
Qt.AlignTop
element: basicHeater
}
Label {
Layout.alignment:
Qt.AlignCenter
text: qsTr("Blade damper")
}
id: bladeDamper
Layout.alignment:
Qt.AlignCenter
}
Layout.alignment:
Qt.AlignTop
damper: bladeDamper
}
Label {
Layout.alignment:
Qt.AlignCenter
text: qsTr("Centrifugal fan")
}
id: centrifugalFan
Layout.alignment:
Qt.AlignCenter
}
Layout.alignment:
Qt.AlignTop
fan: centrifugalFan
}
Label {
Layout.alignment:
Qt.AlignCenter
text: qsTr("Cooler")
}
id: cooler
Layout.alignment:
Qt.AlignCenter
}
Layout.alignment:
Qt.AlignTop
element: cooler
}
Label {
Layout.alignment:
Qt.AlignCenter
text: qsTr("Heater")
}
id: heater
Layout.alignment:
Qt.AlignCenter
}
Layout.alignment:
Qt.AlignTop
element: heater
}
Label {
Layout.alignment:
Qt.AlignCenter
text: qsTr("Heat exchanger")
}
id: heatExchanger
Layout.alignment:
Qt.AlignCenter
}
Layout.alignment:
Qt.AlignTop
element: heatExchanger
}
Label {
Layout.alignment:
Qt.AlignCenter
text: qsTr("Heat recovery wheel")
}
id: wheel
Layout.alignment:
Qt.AlignCenter
}
Layout.alignment:
Qt.AlignTop
wheel: wheel
}
Label {
Layout.alignment:
Qt.AlignCenter
text: qsTr("Motor actuator")
}
id: motorActuator
Layout.alignment:
Qt.AlignCenter
}
Layout.alignment:
Qt.AlignTop
actuator: motorActuator
}
Label {
Layout.alignment:
Qt.AlignCenter
text: qsTr("Pump")
}
id: pump
Layout.alignment:
Qt.AlignCenter
}
Layout.alignment:
Qt.AlignTop
pump: pump
}
Label {
Layout.alignment:
Qt.AlignCenter
text: qsTr("Tank")
}
id: tank
Layout.alignment:
Qt.AlignCenter
}
Layout.alignment:
Qt.AlignTop
tank: tank
}
Label {
Layout.alignment:
Qt.AlignCenter
text: qsTr("Valve")
}
id: valve
Layout.alignment:
Qt.AlignCenter
}
Layout.alignment:
Qt.AlignTop
valve: valve
}
}
}
}
}
}
Definition: AirFilterSettings.qml:7
Definition: BasicDiscreteInstrumentSettings.qml:7
Definition: BladeDamperSettings.qml:7
Definition: CentrifugalFanSettings.qml:7
Definition: ElementSettings.qml:6
Definition: HeatRecoveryWheelSettings.qml:7
Definition: MotorActuatorSettings.qml:7
Definition: PumpSettings.qml:7
Definition: TankSettings.qml:7
Definition: ValveSettings.qml:7