Commit 8fed989e authored by Arjen Hiemstra's avatar Arjen Hiemstra
Browse files

Use updateRateLimit in the Bar chart face

parent bab23525
......@@ -37,6 +37,8 @@ Charts.BarChart {
readonly property alias sensorsModel: sensorsModel
property int updateRateLimit
stacked: root.controller.faceConfiguration.barChartStacked
spacing: Math.round(width / 20)
......@@ -50,6 +52,7 @@ Charts.BarChart {
Sensors.SensorDataModel {
id: sensorsModel
sensors: root.controller.highPrioritySensorIds
updateRateLimit: chart.updateRateLimit
}
Instantiator {
......
......@@ -41,6 +41,7 @@ Faces.SensorFace {
Layout.fillWidth: true
Layout.fillHeight: true
Layout.alignment: Qt.AlignCenter
updateRateLimit: root.controller.updateRateLimit
}
QQC2.Label {
id: label
......
......@@ -98,6 +98,8 @@ Faces.SensorFace {
: 5 * Kirigami.Units.gridUnit
Layout.preferredHeight: 8 * Kirigami.Units.gridUnit
updateRateLimit: root.controller.updateRateLimit
Charts.GridLines {
id: horizontalLines
visible: showGridLines
......@@ -126,6 +128,7 @@ Faces.SensorFace {
chart: compactRepresentation
sourceModel: root.showLegend ? compactRepresentation.sensorsModel : null
sensorIds: root.showLegend ? root.controller.lowPrioritySensorIds : []
updateRateLimit: root.controller.updateRateLimit
}
}
}
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