Changeset View
Changeset View
Standalone View
Standalone View
applets/weather/package/contents/ui/config/ConfigWeatherStation.qml
Show First 20 Lines • Show All 93 Lines • ▼ Show 20 Line(s) | 26 | Kirigami.FormLayout { | |||
---|---|---|---|---|---|
94 | QtControls.SpinBox { | 94 | QtControls.SpinBox { | ||
95 | id: updateIntervalSpin | 95 | id: updateIntervalSpin | ||
96 | 96 | | |||
97 | Kirigami.FormData.label: i18nc("@label:spinbox", "Update every:") | 97 | Kirigami.FormData.label: i18nc("@label:spinbox", "Update every:") | ||
98 | 98 | | |||
99 | textFromValue: function(value) { | 99 | textFromValue: function(value) { | ||
100 | return (i18np("%1 minute", "%1 minutes", value)); | 100 | return (i18np("%1 minute", "%1 minutes", value)); | ||
101 | } | 101 | } | ||
102 | valueFromText: function(text) { | ||||
103 | return parseInt(text); | ||||
104 | } | ||||
102 | 105 | | |||
103 | stepSize: 5 | | |||
104 | from: 30 | 106 | from: 30 | ||
105 | to: 3600 | 107 | to: 3600 | ||
108 | editable: true | ||||
106 | 109 | | |||
107 | onValueChanged: weatherStationConfigPage.configurationChanged(); | 110 | onValueChanged: weatherStationConfigPage.configurationChanged(); | ||
108 | } | 111 | } | ||
109 | } | 112 | } |