2316: Refactoring preferences#2358
Conversation
… OK or Apply are clicked
… and plotting widgets
lucas-wilkins
left a comment
There was a problem hiding this comment.
You could use a QFormLayout to make things line up.
|
I've added type checking to config setting because currently the text fields are not validated (will add a config type checker next). This causes some pretty bad issues if you set an int to a string, for example (I tested it). |
|
config will now raise a |
|
Thanks for the info. I'll add Qt validators for ints and floats and apply them to the appropriate inputs. |
|
I think that the default option for Plotting Options/Use full-width ... should be that it is not checked. Otherwise one gets often really ugly plots with the legend appearing just in the middle of the screen. The alternative would be that for each plot the legend size is resized to the length of the longer label, but this will be harder to implement. With this option unchecked we recover the same behaviour as before, while given the user the possibility to modify that whenever the data labels are too large. Also after playing with the options and changing the legend length a couple of times I got an error: So probably the plotting options need more testing until finding the best default params. |
|
In the doc, I suppose this is not a % scaling. If so remove percent from |
Yes, that would be - though indirectly. Not sure why it would say bool, unless something is wired up wrong. It should be able to coerce a string to a float if it is valid (I think) |
|
Nope.
|
…ate child widgets to match
|
I've added validators to the float and integer inputs and ensured the values are coerced before hitting the config |
|
moving legend location to be put into a new PR. Lucas to do proper review and hopefully approve |
Description
This hopes to combine parts of what was done in #2306 and #2321, specifically related to formalizing the preferences panel and widget class structures.
As asked for in #2316, the following has been added to this PR:
Fixes #2312
Fixes #2313
How Has This Been Tested?
run.py:Review Checklist (please remove items if they don't apply):