summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorSean Deaton <sean.deaton@me.com>2022-12-08 12:09:20 -0500
committerBrian Potchik <brian@vector35.com>2022-12-08 17:01:30 -0500
commit4bde3b75c0e1cae3c1e20cc8c03efc1241a3b657 (patch)
tree61c9161942d1cbea88e96e5efcf79f1cd9be836a /python
parent5680b8c36285a9a6011412bba0363e156cf4d7f6 (diff)
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`.
Diffstat (limited to 'python')
-rw-r--r--python/settings.py4
1 files changed, 2 insertions, 2 deletions
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