diff --git a/kcms/fonts/package/contents/ui/main.qml b/kcms/fonts/package/contents/ui/main.qml --- a/kcms/fonts/package/contents/ui/main.qml +++ b/kcms/fonts/package/contents/ui/main.qml @@ -119,6 +119,8 @@ 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 @@ 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 { diff --git a/kcms/launch/package/contents/ui/main.qml b/kcms/launch/package/contents/ui/main.qml --- a/kcms/launch/package/contents/ui/main.qml +++ b/kcms/launch/package/contents/ui/main.qml @@ -104,13 +104,15 @@ Kirigami.FormData.label: i18n("Stop animation after:") stepSize: 1 + editable: true enabled: taskManagerNotification.checked value: kcm.notificationTimeout onValueChanged: kcm.notificationTimeout = value textFromValue: function(value, locale) { return i18np("%1 sec", "%1 secs", value)} + valueFromText: function(text, locale) { return parseInt(text) } } }