pyqtgraph/pyqtgraph/parametertree
2xB 7672b5b725
Fix: Parameter tree ignores user-set 'expanded' state (#1175)
* Fix: Parameter tree ignores user-set 'expanded' state

When setting the 'expanded' state of parameters, this change is not applied
in the graphically visible tree. This commit changes that behaviour by
adding a clause in `ParameterItem.optsChanged` to react to that.

Fixes #1130

* ParameterTree: Add option to synchronize "expanded" state

As seen in #1130, there is interest in synchronizing the "expanded" state
of `Parameter`s in `ParameterTree`s. As a default, this would lead to
users being forced to always have multiple `ParameterTree`s to be
expanded in the exact same way. Since that might not be desirable, this
commit adds an option to customize whether synchronization
of the "expanded" state should happen.

* Fix: Sync Parameter options "renamable" and "removable" with ParameterTrees

Currently, `Parameter` options `renamable` and `removable` are only considered
when building a new `ParameterTree`. This commit makes changes in those
options reflected in the corresponding `ParameterItem`s.

* ParameterTree: Reflect changes in Parameter option 'tip'

* Parameter: When setting "syncExpanded", update "expanded" state directly

Co-authored-by: 2xB <2xB@users.noreply.github.com>
2020-05-30 13:01:39 -07:00
..
tests Add tests for inpute/output type on a few parameter types 2017-08-02 15:03:58 -07:00
__init__.py Squashed commit of the following: 2014-08-07 09:03:26 -04:00
Parameter.py Fix: Parameter tree ignores user-set 'expanded' state (#1175) 2020-05-30 13:01:39 -07:00
ParameterItem.py Fix: Parameter tree ignores user-set 'expanded' state (#1175) 2020-05-30 13:01:39 -07:00
ParameterSystem.py Squashed commit of the following: 2014-08-07 09:03:26 -04:00
ParameterTree.py Fix: Parameter tree ignores user-set 'expanded' state (#1175) 2020-05-30 13:01:39 -07:00
parameterTypes.py Fix: Parameter tree ignores user-set 'expanded' state (#1175) 2020-05-30 13:01:39 -07:00
SystemSolver.py systemsolver: add method for checking constraints / DOF 2017-09-29 08:58:00 -07:00