From f2ca607b8b466cc12afa00f4bb7be06e22ce9862 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 cd5a16a..3c9c67d 100644 --- a/pytec/pytec/gui/view/param_tree.json +++ b/pytec/pytec/gui/view/param_tree.json @@ -55,6 +55,7 @@ ], "triggerOnShow": true, "decimals": 6, + "compactHeight": false, "param": [ "pwm", "ch", @@ -74,6 +75,7 @@ 300 ], "format": "{value:.4f}", + "compactHeight": false, "param": [ "pid", "ch", @@ -98,6 +100,7 @@ "value": 0, "step": 100, "decimals": 6, + "compactHeight": false, "limits": [ 0, 2000 @@ -117,6 +120,7 @@ "value": 0, "step": 100, "decimals": 6, + "compactHeight": false, "limits": [ 0, 2000 @@ -140,6 +144,7 @@ 5 ], "siPrefix": true, + "compactHeight": false, "param": [ "pwm", "ch", @@ -170,6 +175,7 @@ 100 ], "format": "{value:.4f}", + "compactHeight": false, "param": [ "s-h", "ch", @@ -185,6 +191,7 @@ "value": 10000, "step": 1, "siPrefix": true, + "compactHeight": false, "param": [ "s-h", "ch", @@ -200,6 +207,7 @@ "value": 3950, "step": 1, "decimals": 4, + "compactHeight": false, "param": [ "s-h", "ch", @@ -243,6 +251,7 @@ "type": "float", "step": 0.1, "suffix": "", + "compactHeight": false, "param": [ "pid", "ch", @@ -257,6 +266,7 @@ "type": "float", "step": 0.1, "suffix": "Hz", + "compactHeight": false, "param": [ "pid", "ch", @@ -271,6 +281,7 @@ "type": "float", "step": 0.1, "suffix": "s", + "compactHeight": false, "param": [ "pid", "ch", @@ -296,6 +307,7 @@ 2000 ], "decimals": 6, + "compactHeight": false, "param": [ "pid", "ch", @@ -314,6 +326,7 @@ 2000 ], "decimals": 6, + "compactHeight": false, "param": [ "pid", "ch", @@ -338,6 +351,7 @@ "value": 20, "step": 0.1, "format": "{value:.4f}", + "compactHeight": false, "pid_autotune": [ "target_temp", "ch" @@ -350,6 +364,7 @@ "type": "float", "value": 0, "decimals": 6, + "compactHeight": false, "step": 100, "limits": [ -2000, @@ -369,6 +384,7 @@ "step": 0.1, "prefix": "±", "format": "{value:.4f}", + "compactHeight": false, "pid_autotune": [ "temp_swing", "ch" @@ -382,6 +398,7 @@ "value": 3.0, "step": 0.1, "format": "{value:.4f}", + "compactHeight": false, "pid_autotune": [ "lookback", "ch"