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