Commit e1a2940d authored by Nate Graham's avatar Nate Graham 🔩

[Applet] Make spinboxes editable

Summary: Otherwise you can't enter numbers in them and it's really annoying

Test Plan:
Now you can change the max volume and volume step spinboxes without raising your
blood pressure

Reviewers: #vdg, #plasma, ndavis

Reviewed By: #vdg, ndavis

Subscribers: broulik, plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D24816
parent 956abe76
......@@ -45,9 +45,13 @@ Kirigami.FormLayout {
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 @@ Kirigami.FormLayout {
from: 1
to: 100
stepSize: 1
editable: true
textFromValue: function(value) {
return value + "%";
}
valueFromText: function(text) {
return parseInt(text);
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment