fix landscape views

This commit is contained in:
Michael Zanetti 2019-01-07 13:54:20 +01:00
parent 78f015e80d
commit e1b2642f64

View File

@ -67,7 +67,8 @@ ListView {
Item {
Layout.fillWidth: true
Layout.fillHeight: true
Layout.rowSpan: 3
Layout.minimumWidth: app.iconSize * 5
Layout.rowSpan: app.landscape ? 5 : 1
ColorIcon {
anchors.centerIn: parent
height: app.iconSize * 4
@ -76,6 +77,10 @@ ListView {
color: device.states.getState(boolView.stateType.id).value === true ? app.interfaceToColor(boolView.interfaceName) : keyColor
}
}
Item {
Layout.fillHeight: true
Layout.fillWidth: true
}
RowLayout {
Layout.fillWidth: false
Layout.alignment: Qt.AlignHCenter