forked from M-Labs/thermostat
Separate tree and param changes
This commit is contained in:
parent
dbee457c09
commit
6372e03dff
@ -78,14 +78,15 @@ class CtrlPanel(QObject):
|
|||||||
for ch, tree in enumerate(self.trees_ui):
|
for ch, tree in enumerate(self.trees_ui):
|
||||||
tree.setHeaderHidden(True)
|
tree.setHeaderHidden(True)
|
||||||
tree.setParameters(self.params[ch], showTop=False)
|
tree.setParameters(self.params[ch], showTop=False)
|
||||||
self.params[ch].setValue = self._setValue
|
|
||||||
self.params[ch].sigTreeStateChanged.connect(sigTreeStateChanged_handle)
|
|
||||||
|
|
||||||
set_tree_label_tips(tree)
|
set_tree_label_tips(tree)
|
||||||
|
|
||||||
for handle in sigActivated_handles[ch]:
|
for ch, param in enumerate(self.params):
|
||||||
self.params[ch].child(*handle[0]).sigActivated.connect(handle[1])
|
self.params[ch].setValue = self._setValue
|
||||||
|
param.sigTreeStateChanged.connect(sigTreeStateChanged_handle)
|
||||||
|
|
||||||
|
for handle in sigActivated_handles[ch]:
|
||||||
|
param.child(*handle[0]).sigActivated.connect(handle[1])
|
||||||
|
|
||||||
def _setValue(self, value, blockSignal=None):
|
def _setValue(self, value, blockSignal=None):
|
||||||
"""
|
"""
|
||||||
|
Loading…
Reference in New Issue
Block a user