Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
libksysguard
Commits
8fed989e
Commit
8fed989e
authored
Mar 08, 2021
by
Arjen Hiemstra
Browse files
Use updateRateLimit in the Bar chart face
parent
bab23525
Changes
3
Hide whitespace changes
Inline
Side-by-side
faces/facepackages/barchart/contents/ui/BarChart.qml
View file @
8fed989e
...
...
@@ -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
{
...
...
faces/facepackages/barchart/contents/ui/CompactRepresentation.qml
View file @
8fed989e
...
...
@@ -41,6 +41,7 @@ Faces.SensorFace {
Layout.fillWidth
:
true
Layout.fillHeight
:
true
Layout.alignment
:
Qt
.
AlignCenter
updateRateLimit
:
root
.
controller
.
updateRateLimit
}
QQC2.Label
{
id
:
label
...
...
faces/facepackages/barchart/contents/ui/FullRepresentation.qml
View file @
8fed989e
...
...
@@ -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
}
}
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment