Commit 4458986e authored by Arjen Hiemstra's avatar Arjen Hiemstra
Browse files

Move flow assignment to individual faces

So things don't depend on values magically being correct.
parent 762f80d5
...@@ -79,6 +79,7 @@ Faces.SensorFace { ...@@ -79,6 +79,7 @@ Faces.SensorFace {
sourceModel: root.showLegend ? compactRepresentation.sensorsModel : null sourceModel: root.showLegend ? compactRepresentation.sensorsModel : null
colorSource: root.colorSource colorSource: root.colorSource
sensorIds: root.showLegend ? root.controller.lowPrioritySensorIds : [] sensorIds: root.showLegend ? root.controller.lowPrioritySensorIds : []
flow: root.width > root.height * 1.5 ? GridLayout.LeftToRight : GridLayout.TopToBottom
} }
Item { Item {
......
...@@ -75,6 +75,7 @@ Faces.SensorFace { ...@@ -75,6 +75,7 @@ Faces.SensorFace {
sourceModel: root.showLegend ? compactRepresentation.sensorsModel : null sourceModel: root.showLegend ? compactRepresentation.sensorsModel : null
colorSource: root.colorSource colorSource: root.colorSource
sensorIds: root.showLegend ? root.controller.lowPrioritySensorIds : [] sensorIds: root.showLegend ? root.controller.lowPrioritySensorIds : []
flow: root.width > root.height * 1.5 ? GridLayout.LeftToRight : GridLayout.TopToBottom
} }
} }
} }
...@@ -79,6 +79,7 @@ Faces.SensorFace { ...@@ -79,6 +79,7 @@ Faces.SensorFace {
sourceModel: root.showLegend ? compactRepresentation.sensorsModel : null sourceModel: root.showLegend ? compactRepresentation.sensorsModel : null
colorSource: root.colorSource colorSource: root.colorSource
sensorIds: root.showLegend ? root.controller.lowPrioritySensorIds : [] sensorIds: root.showLegend ? root.controller.lowPrioritySensorIds : []
flow: root.width > root.height * 1.5 ? GridLayout.LeftToRight : GridLayout.TopToBottom
} }
Item { Item {
......
...@@ -38,7 +38,7 @@ ChartsControls.Legend { ...@@ -38,7 +38,7 @@ ChartsControls.Legend {
property var sourceModel property var sourceModel
property var colorSource property var colorSource
flow: parent.width > parent.height * 1.5 ? GridLayout.LeftToRight : GridLayout.TopToBottom flow: GridLayout.TopToBottom
Layout.maximumHeight: implicitHeight Layout.maximumHeight: implicitHeight
Layout.maximumWidth: parent.width Layout.maximumWidth: parent.width
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment