From 91eee99fca6979b598cbd9f52bec58a9e48fcf69 Mon Sep 17 00:00:00 2001 From: Ismael Asensio Date: Fri, 22 May 2020 15:50:35 +0200 Subject: [PATCH] [kcm/kwinrules] Extend upper limit of position and size spinners Currently, the spinners used to edit position and size rules have an upper limit of 4098, which may be not enough for wide/hdpi/mutiple screens. The property itself has no such limit in the `.kcfg` schema This is just an issue with the editor. BUG: 421892 FIXED-IN: 5.19 --- kcmkwin/kwinrules/package/contents/ui/ValueEditor.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kcmkwin/kwinrules/package/contents/ui/ValueEditor.qml b/kcmkwin/kwinrules/package/contents/ui/ValueEditor.qml index 95fdfc1103..b0deab6928 100644 --- a/kcmkwin/kwinrules/package/contents/ui/ValueEditor.qml +++ b/kcmkwin/kwinrules/package/contents/ui/ValueEditor.qml @@ -165,7 +165,7 @@ Loader { Layout.preferredWidth: 50 // 50% Layout.fillWidth: true from: 0 - to: 4098 + to: 32767 value: (controlType == RuleItem.Size) ? ruleValue.width : ruleValue.x } QQC2.Label { @@ -178,7 +178,7 @@ Loader { id: coordY editable: true from: 0 - to: 4098 + to: 32767 Layout.preferredWidth: 50 // 50% Layout.fillWidth: true value: (controlType == RuleItem.Size) ? ruleValue.height : ruleValue.y