|
@@ -202,11 +202,9 @@ class PluginParameter(QWidget): |
|
|
|
|
|
|
|
|
self.ui.label.setText(pInfo['name']) |
|
|
self.ui.label.setText(pInfo['name']) |
|
|
self.ui.widget.setName(pInfo['name']) |
|
|
self.ui.widget.setName(pInfo['name']) |
|
|
|
|
|
|
|
|
self.ui.widget.setMinimum(pInfo['minimum']) |
|
|
self.ui.widget.setMinimum(pInfo['minimum']) |
|
|
self.ui.widget.setMaximum(pInfo['maximum']) |
|
|
self.ui.widget.setMaximum(pInfo['maximum']) |
|
|
self.ui.widget.setDefault(pInfo['default']) |
|
|
self.ui.widget.setDefault(pInfo['default']) |
|
|
self.ui.widget.setValue(pInfo['current']) |
|
|
|
|
|
self.ui.widget.setLabel(pInfo['unit']) |
|
|
self.ui.widget.setLabel(pInfo['unit']) |
|
|
self.ui.widget.setStep(pInfo['step']) |
|
|
self.ui.widget.setStep(pInfo['step']) |
|
|
self.ui.widget.setStepSmall(pInfo['stepSmall']) |
|
|
self.ui.widget.setStepSmall(pInfo['stepSmall']) |
|
@@ -236,6 +234,9 @@ class PluginParameter(QWidget): |
|
|
self.ui.sb_control.setVisible(False) |
|
|
self.ui.sb_control.setVisible(False) |
|
|
self.ui.sb_channel.setVisible(False) |
|
|
self.ui.sb_channel.setVisible(False) |
|
|
|
|
|
|
|
|
|
|
|
# Only set value after all hints are handled |
|
|
|
|
|
self.ui.widget.setValue(pInfo['current']) |
|
|
|
|
|
|
|
|
if pHints & PARAMETER_USES_CUSTOM_TEXT and not host.isPlugin: |
|
|
if pHints & PARAMETER_USES_CUSTOM_TEXT and not host.isPlugin: |
|
|
self.ui.widget.setTextCallback(self._textCallBack) |
|
|
self.ui.widget.setTextCallback(self._textCallBack) |
|
|
|
|
|
|
|
|