2026-02-24 16:19:31 +00:00
|
|
|
import QtQuick 2.15
|
|
|
|
|
import org.kde.plasma.core 2.0 as PlasmaCore
|
|
|
|
|
|
|
|
|
|
Column {
|
|
|
|
|
id: root
|
|
|
|
|
|
|
|
|
|
property int temperature: 0
|
|
|
|
|
property int currentPerf: 100
|
|
|
|
|
signal perfChangeRequested(int newValue)
|
|
|
|
|
|
|
|
|
|
width: 200
|
|
|
|
|
spacing: 12
|
|
|
|
|
|
|
|
|
|
Item { width: 1; height: 4 }
|
|
|
|
|
|
2026-02-24 19:20:25 +00:00
|
|
|
TemperatureDisplay {
|
2026-02-24 16:19:31 +00:00
|
|
|
temperature: root.temperature
|
|
|
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Rectangle {
|
|
|
|
|
width: parent.width - 32
|
|
|
|
|
height: 1
|
|
|
|
|
color: PlasmaCore.Theme.textColor
|
|
|
|
|
opacity: 0.1
|
|
|
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
|
|
|
|
}
|
|
|
|
|
|
2026-02-24 19:20:25 +00:00
|
|
|
PerfLimiter {
|
2026-02-24 16:19:31 +00:00
|
|
|
currentPerf: root.currentPerf
|
|
|
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
|
|
|
|
onPerfChangeRequested: root.perfChangeRequested(newValue)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Item { width: 1; height: 4 }
|
|
|
|
|
}
|