Commit 78ccc2eb authored by Nate Graham's avatar Nate Graham 💤
Browse files

[KCMs/Night Color] Add a valueForText handler for the new SpinBox

Summary: Now you can enter "1 minute" and it will be parsed correctly

Test Plan: Enter "1 minute" and tab away from the box

Reviewers: #plasma, zzag

Reviewed By: #plasma, zzag

Subscribers: zzag, plasma-devel

Tags: #plasma

Differential Revision:
parent 3774f28b
......@@ -315,6 +315,9 @@ KCM.SimpleKCM {
textFromValue: function(value, locale) {
return i18np("%1 minute", "%1 minutes", value)
valueFromText: function(text, locale) {
return parseInt(text);
QQC2.ToolTip {
text: i18n("Input minutes - min. 1, max. 600")
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