From ada95ec243ebcc22f073420d080e09b5f3edc0bb Mon Sep 17 00:00:00 2001 From: atse Date: Fri, 28 Jun 2024 11:21:21 +0800 Subject: [PATCH] ctrl_panel: Stop crushing spinboxes It might not be the case on some themes, but on the default Qt theme the spinbox are a bit too short for the containing numbers. See https://github.com/pyqtgraph/pyqtgraph/issues/701. --- pytec/pytec/gui/view/param_tree.json | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/pytec/pytec/gui/view/param_tree.json b/pytec/pytec/gui/view/param_tree.json index e90e7e5..50f3c2f 100644 --- a/pytec/pytec/gui/view/param_tree.json +++ b/pytec/pytec/gui/view/param_tree.json @@ -60,6 +60,7 @@ "suffix": "A", "siPrefix": true, "noUnitEditing": true, + "compactHeight": false, "param": [ "pwm", "ch", @@ -81,6 +82,7 @@ "format": "{value:.4f} {suffix}", "suffix": "°C", "noUnitEditing": true, + "compactHeight": false, "param": [ "pid", "ch", @@ -113,6 +115,7 @@ "pinSiPrefix": "m", "suffix": "A", "noUnitEditing": true, + "compactHeight": false, "param": [ "pwm", "ch", @@ -136,6 +139,7 @@ 0, 2 ], + "compactHeight": false, "param": [ "pwm", "ch", @@ -157,6 +161,7 @@ "siPrefix": true, "suffix": "V", "noUnitEditing": true, + "compactHeight": false, "param": [ "pwm", "ch", @@ -189,6 +194,7 @@ "format": "{value:.4f} {suffix}", "suffix": "°C", "noUnitEditing": true, + "compactHeight": false, "param": [ "s-h", "ch", @@ -206,6 +212,7 @@ "siPrefix": true, "suffix": "Ω", "noUnitEditing": true, + "compactHeight": false, "param": [ "s-h", "ch", @@ -223,6 +230,7 @@ "suffix": "K", "noUnitEditing": true, "decimals": 4, + "compactHeight": false, "param": [ "s-h", "ch", @@ -266,6 +274,7 @@ "type": "float", "step": 0.1, "suffix": "", + "compactHeight": false, "param": [ "pid", "ch", @@ -281,6 +290,7 @@ "step": 0.1, "suffix": "Hz", "noUnitEditing": true, + "compactHeight": false, "param": [ "pid", "ch", @@ -296,6 +306,7 @@ "step": 0.1, "suffix": "s", "noUnitEditing": true, + "compactHeight": false, "param": [ "pid", "ch", @@ -325,6 +336,7 @@ "pinSiPrefix": "m", "suffix": "A", "noUnitEditing": true, + "compactHeight": false, "param": [ "pid", "ch", @@ -347,6 +359,7 @@ "pinSiPrefix": "m", "suffix": "A", "noUnitEditing": true, + "compactHeight": false, "param": [ "pid", "ch", @@ -373,6 +386,7 @@ "format": "{value:.4f} {suffix}", "suffix": "°C", "noUnitEditing": true, + "compactHeight": false, "pid_autotune": [ "target_temp", "ch" @@ -394,6 +408,7 @@ "pinSiPrefix": "m", "suffix": "A", "noUnitEditing": true, + "compactHeight": false, "pid_autotune": [ "test_current", "ch" @@ -410,6 +425,7 @@ "format": "{value:.4f} {suffix}", "suffix": "°C", "noUnitEditing": true, + "compactHeight": false, "pid_autotune": [ "temp_swing", "ch" @@ -425,6 +441,7 @@ "format": "{value:.4f} {suffix}", "noUnitEditing": true, "suffix": "s", + "compactHeight": false, "pid_autotune": [ "lookback", "ch"