Commit a498019e authored by Arjen Hiemstra's avatar Arjen Hiemstra
Browse files

Use updateRateLimit in the Text face

parent 5bc22d1d
......@@ -44,6 +44,7 @@ Faces.SensorFace {
showGroups: root.controller.faceConfiguration.groupByTotal
colorSource: root.colorSource
totalHeight: root.height
updateRateLimit: root.controller.updateRateLimit
}
Item { Layout.fillWidth: true; Layout.fillHeight: true }
......
......@@ -63,6 +63,7 @@ Faces.SensorFace {
showGroups: root.controller.faceConfiguration.groupByTotal
colorSource: root.colorSource
totalHeight: root.height
updateRateLimit: root.controller.updateRateLimit
}
Item { Layout.fillWidth: true; Layout.fillHeight: true }
......
......@@ -35,6 +35,7 @@ ColumnLayout {
property bool showGroups: false
property var colorSource
property real totalHeight
property int updateRateLimit
Repeater {
model: root.showGroups ? root.totalSensorIds : 1
......@@ -102,6 +103,7 @@ ColumnLayout {
Sensors.Sensor {
id: groupSensor
sensorId: root.showGroups ? modelData : ""
updateRateLimit: root.updateRateLimit
}
}
}
......@@ -112,7 +114,7 @@ ColumnLayout {
Instantiator {
model: root.highPrioritySensorIds
Sensors.Sensor { sensorId: modelData }
Sensors.Sensor { sensorId: modelData; updateRateLimit: root.updateRateLimit }
onObjectAdded: {
root.highPrioritySensors.push(object)
......@@ -127,7 +129,7 @@ ColumnLayout {
Instantiator {
model: root.lowPrioritySensorIds
Sensors.Sensor { sensorId: modelData }
Sensors.Sensor { sensorId: modelData; updateRateLimit: root.updateRateLimit }
onObjectAdded: {
root.lowPrioritySensors.push(object)
......
Supports Markdown
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