Commit ec2392db authored by Nate Graham's avatar Nate Graham
Browse files

[Weather] Make update time spinbox editable

Test Plan:
Now you can enter text in it using the keyboard. To make this more predictible, the
custom stepSize value is removed so all integer valued between the min and max are
acceptable now.

Reviewers: #vdg, #plasma

Subscribers: plasma-devel

Tags: #plasma

Differential Revision:
parent 7c2ebde7
......@@ -97,12 +97,15 @@ Kirigami.FormLayout {
Kirigami.FormData.label: i18nc("@label:spinbox", "Update every:")
textFromValue: function(value) {
return (i18np("%1 minute", "%1 minutes", value));
return (i18np("%1 minute", "%1 minutes", value));
valueFromText: function(text) {
return parseInt(text);
stepSize: 5
from: 30
to: 3600
editable: true
onValueChanged: weatherStationConfigPage.configurationChanged();
Supports Markdown
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