fix configpage

This commit is contained in:
Flummi 2024-01-22 01:58:17 +01:00
parent 5b423c2ab7
commit ef3ed2726b
Signed by: Flummi
GPG Key ID: AA2AEF822A6F4817

View File

@ -1,13 +1,14 @@
import QtQuick 2.0
import QtQuick.Layouts 1.3
import org.kde.plasma.components as PlasmaComponents
import org.kde.plasma.core 2.0 as PlasmaCore
import org.kde.plasma.components 2.0 as PlasmaComponents
import QtQuick.Controls 2.5 as QQC2
import org.kde.kirigami 2.4 as Kirigami
import org.kde.kquickcontrols 2.0 as KQControls
import "./lib/helper.js" as Helper
PlasmaComponents.Pane {
QQC2.Pane {
id: root
property alias cfg_pollingrate: pollingrate.value
@ -33,10 +34,9 @@ PlasmaComponents.Pane {
PlasmaComponents.Slider {
id: pollingrate
value: 10
from: 2
to: 60
minimumValue: 2
maximumValue: 60
stepSize: 2
snapMode: PlasmaComponents.Slider.SnapAlways
}
Text {
text: cfg_pollingrate + " seconds"
@ -51,10 +51,9 @@ PlasmaComponents.Pane {
PlasmaComponents.Slider {
id: batteryheight
value: 8.0
minimumValue: 1.0
maximumValue: 10.0
stepSize: 1.0
snapMode: PlasmaComponents.Slider.SnapAlways
minimumValue: 1
maximumValue: 10
stepSize: 1
}
Text {
text: cfg_batteryheight