From 4bde3b75c0e1cae3c1e20cc8c03efc1241a3b657 Mon Sep 17 00:00:00 2001 From: Sean Deaton Date: Thu, 8 Dec 2022 12:09:20 -0500 Subject: Change type from array->string. `enum` seems to be the list of strings that are possible values. When the type is set to `array` and `enum` is present, Settings fails to load. Additionally, I could not find any examples of Settings where the type is set `array` and `enum` is added. I confirmed that the list of strings defined in `enum` populate a drop down list when the `type` is set to `string`. --- python/settings.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'python') diff --git a/python/settings.py b/python/settings.py index 8c0372b4..4da6a555 100644 --- a/python/settings.py +++ b/python/settings.py @@ -65,8 +65,8 @@ class Settings: "title" string None No Concise Setting Title "type" string None No {"array", "boolean", "number", "string"} "elementType" string "type" is "array" No {"string"} - "enum" array : {string} "type" is "array" Yes Enumeration definitions - "enumDescriptions" array : {string} "type" is "array" Yes Enumeration descriptions that match "enum" array + "enum" array : {string} "type" is "string" Yes Enumeration definitions + "enumDescriptions" array : {string} "type" is "string" Yes Enumeration descriptions that match "enum" array "minValue" number "type" is "number" Yes Specify 0 to infer unsigned (default is signed) "maxValue" number "type" is "number" Yes Values less than or equal to INT_MAX result in a QSpinBox UI element "precision" number "type" is "number" Yes Specify precision for a QDoubleSpinBox -- cgit v1.3.1