From d6ba9be20cf13ed205b5d098ff504188e3aedfe0 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 e85533e..c82a5c8 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", @@ -207,6 +213,7 @@ "pinSiPrefix": "k", "suffix": "Ω", "noUnitEditing": true, + "compactHeight": false, "param": [ "s-h", "ch", @@ -224,6 +231,7 @@ "suffix": "K", "noUnitEditing": true, "decimals": 4, + "compactHeight": false, "param": [ "s-h", "ch", @@ -267,6 +275,7 @@ "type": "float", "step": 0.1, "suffix": "", + "compactHeight": false, "param": [ "pid", "ch", @@ -282,6 +291,7 @@ "step": 0.1, "suffix": "Hz", "noUnitEditing": true, + "compactHeight": false, "param": [ "pid", "ch", @@ -297,6 +307,7 @@ "step": 0.1, "suffix": "s", "noUnitEditing": true, + "compactHeight": false, "param": [ "pid", "ch", @@ -326,6 +337,7 @@ "pinSiPrefix": "m", "suffix": "A", "noUnitEditing": true, + "compactHeight": false, "param": [ "pid", "ch", @@ -348,6 +360,7 @@ "pinSiPrefix": "m", "suffix": "A", "noUnitEditing": true, + "compactHeight": false, "param": [ "pid", "ch", @@ -374,6 +387,7 @@ "format": "{value:.4f} {suffix}", "suffix": "°C", "noUnitEditing": true, + "compactHeight": false, "pid_autotune": [ "target_temp", "ch" @@ -395,6 +409,7 @@ "pinSiPrefix": "m", "suffix": "A", "noUnitEditing": true, + "compactHeight": false, "pid_autotune": [ "test_current", "ch" @@ -411,6 +426,7 @@ "format": "{value:.4f} {suffix}", "suffix": "°C", "noUnitEditing": true, + "compactHeight": false, "pid_autotune": [ "temp_swing", "ch" @@ -426,6 +442,7 @@ "format": "{value:.4f} {suffix}", "noUnitEditing": true, "suffix": "s", + "compactHeight": false, "pid_autotune": [ "lookback", "ch"