diff --git a/applet/contents/ui/ConfigGeneral.qml b/applet/contents/ui/ConfigGeneral.qml --- a/applet/contents/ui/ConfigGeneral.qml +++ b/applet/contents/ui/ConfigGeneral.qml @@ -45,9 +45,13 @@ from: 10 to: 150 stepSize: 1 + editable: true textFromValue: function(value) { return value + "%"; } + valueFromText: function(text) { + return parseInt(text); + } } QQC2.SpinBox { @@ -59,9 +63,13 @@ from: 1 to: 100 stepSize: 1 + editable: true textFromValue: function(value) { return value + "%"; } + valueFromText: function(text) { + return parseInt(text); + } }