Changeset View
Changeset View
Standalone View
Standalone View
kcms/nightcolor/package/contents/ui/main.qml
Show First 20 Lines • Show All 309 Lines • ▼ Show 20 Line(s) | 302 | QQC2.SpinBox { | |||
---|---|---|---|---|---|
310 | editable: true | 310 | editable: true | ||
311 | onValueModified: { | 311 | onValueModified: { | ||
312 | cA.transitionTimeStaged = value; | 312 | cA.transitionTimeStaged = value; | ||
313 | calcNeedsSave(); | 313 | calcNeedsSave(); | ||
314 | } | 314 | } | ||
315 | textFromValue: function(value, locale) { | 315 | textFromValue: function(value, locale) { | ||
316 | return i18np("%1 minute", "%1 minutes", value) | 316 | return i18np("%1 minute", "%1 minutes", value) | ||
317 | } | 317 | } | ||
318 | valueFromText: function(text, locale) { | ||||
319 | return parseInt(text); | ||||
zzag: Hmm, does parseInt take the user's locale into account? | |||||
320 | } | ||||
318 | 321 | | |||
319 | QQC2.ToolTip { | 322 | QQC2.ToolTip { | ||
320 | text: i18n("Input minutes - min. 1, max. 600") | 323 | text: i18n("Input minutes - min. 1, max. 600") | ||
321 | } | 324 | } | ||
322 | } | 325 | } | ||
323 | 326 | | |||
324 | QQC2.Label { | 327 | QQC2.Label { | ||
325 | id: manualTimingsError1 | 328 | id: manualTimingsError1 | ||
Show All 27 Lines |
Hmm, does parseInt take the user's locale into account?