Commit 4f90a137 authored by Nate Graham's avatar Nate Graham 🔩

[KCMs] Make spinboxes editable

Summary:
Otherwise they're annoying to use because you can only interact with them using a scroll
or by clicking on the tiny arrows.

Test Plan: You can now enter text in the spinboxes

Reviewers: #vdg, #plasma

Subscribers: plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D24814
parent 6b4295b3
......@@ -119,6 +119,8 @@ KCM.SimpleKCM {
stepSize: 1
onValueChanged: kcm.fontAASettings.excludeFrom = value
textFromValue: function(value, locale) { return i18n("%1 pt", value)}
valueFromText: function(text, locale) { return parseInt(text) }
editable: true
enabled: excludeCheckBox.checked
}
......@@ -134,6 +136,8 @@ KCM.SimpleKCM {
stepSize: 1
onValueChanged: kcm.fontAASettings.excludeTo = value
textFromValue: function(value, locale) { return i18n("%1 pt", value)}
valueFromText: function(text, locale) { return parseInt(text) }
editable: true
enabled: excludeCheckBox.checked
}
Connections {
......
......@@ -104,6 +104,7 @@ SimpleKCM {
Kirigami.FormData.label: i18n("Stop animation after:")
stepSize: 1
editable: true
enabled: taskManagerNotification.checked
......@@ -111,6 +112,7 @@ SimpleKCM {
onValueChanged: kcm.notificationTimeout = value
textFromValue: function(value, locale) { return i18np("%1 sec", "%1 secs", value)}
valueFromText: function(text, locale) { 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