anchors.centerIn: parent
width: Window.width
height: Window.height
- scale: Window.scale
ColumnLayout {
anchors.fill: parent
Layout.fillHeight: true
Layout.alignment: Qt.AlignHCenter
Image {
- source: './images/HMI_HVAC_Fan_Icon.svg'
+ source: 'qrc:/images/HMI_HVAC_Fan_Icon.svg'
}
Item {
width: 1080 * 0.8
Layout.fillWidth: true
spacing: 20
ToggleButton {
- onImage: './images/HMI_HVAC_Active.svg'
- offImage: './images/HMI_HVAC_Inactive.svg'
+ onImage: 'qrc:/images/HMI_HVAC_Active.svg'
+ offImage: 'qrc:/images/HMI_HVAC_Inactive.svg'
Label {
anchors.centerIn: parent
color: parent.checked ? '#00ADDC' : '#848286'
}
}
ToggleButton {
- onImage: './images/HMI_HVAC_Active.svg'
- offImage: './images/HMI_HVAC_Inactive.svg'
+ onImage: 'qrc:/images/HMI_HVAC_Active.svg'
+ offImage: 'qrc:/images/HMI_HVAC_Inactive.svg'
Label {
anchors.centerIn: parent
color: parent.checked ? '#00ADDC' : '#848286'
}
}
ToggleButton {
- onImage: './images/HMI_HVAC_Circulation_Active.svg'
- offImage: './images/HMI_HVAC_Circulation_Inactive.svg'
+ onImage: 'qrc:/images/HMI_HVAC_Circulation_Active.svg'
+ offImage: 'qrc:/images/HMI_HVAC_Circulation_Inactive.svg'
onCheckedChanged: {
console.debug('Circulation', checked)
}
Repeater {
model: ['AirDown', 'AirUp', 'AirRight', 'Rear', 'Front']
ToggleButton {
- onImage: './images/HMI_HVAC_%1_Active.svg'.arg(model.modelData)
- offImage: './images/HMI_HVAC_%1_Inactive.svg'.arg(model.modelData)
+ onImage: 'qrc:/images/HMI_HVAC_%1_Active.svg'.arg(model.modelData)
+ offImage: 'qrc:/images/HMI_HVAC_%1_Inactive.svg'.arg(model.modelData)
onCheckedChanged: {
console.debug(model.modelData, checked)
}
anchors.centerIn: parent
Image {
id: chair
- source: './images/HMI_HVAC_%1_Chair_OFF.svg'.arg(root.side)
+ source: 'qrc:/images/HMI_HVAC_%1_Chair_OFF.svg'.arg(root.side)
states: [
State {
when: root.headLevel > 0
PropertyChanges {
target: chair
- source: './images/HMI_HVAC_%1_Chair_ON.svg'.arg(root.side)
+ source: 'qrc:/images/HMI_HVAC_%1_Chair_ON.svg'.arg(root.side)
}
}
]
id: indicator
width: 178
height: 18
- source: './images/HMI_HVAC_ChairIndicator_OFF.svg'
+ source: 'qrc:/images/HMI_HVAC_ChairIndicator_OFF.svg'
states: [
State {
when: root.headLevel === 1
PropertyChanges {
target: indicator
- source: './images/HMI_HVAC_ChairIndicator_One.svg'
+ source: 'qrc:/images/HMI_HVAC_ChairIndicator_One.svg'
}
},
State {
when: root.headLevel === 2
PropertyChanges {
target: indicator
- source: './images/HMI_HVAC_ChairIndicator_Two.svg'
+ source: 'qrc:/images/HMI_HVAC_ChairIndicator_Two.svg'
}
}
]