Skip to content
Permalink
Browse files

Fix Range wrapper to allow Range parameters to be added in modeler. N…

…ot yet fully integrated as input paramter
  • Loading branch information
luipir authored and nyalldawson committed Sep 7, 2018
1 parent 6e7ff28 commit bc8a4605d403a25df6c8d1d59fd78e109fca7d01
Showing with 3 additions and 6 deletions.
  1. +3 −6 python/plugins/processing/gui/wrappers.py
@@ -812,12 +812,9 @@ def parentParameterChanged(self, wrapper):
class RangeWidgetWrapper(WidgetWrapper):

def createWidget(self):
if self.dialogType in (DIALOG_STANDARD, DIALOG_BATCH):
widget = RangePanel(self.parameterDefinition())
widget.hasChanged.connect(lambda: self.widgetValueHasChanged.emit(self))
return widget
#else:
# return ModelerNumberInputPanel(self.param, self.dialog)
widget = RangePanel(self.parameterDefinition())
widget.hasChanged.connect(lambda: self.widgetValueHasChanged.emit(self))
return widget

def setValue(self, value):
if value is None or value == NULL:

0 comments on commit bc8a460

Please sign in to comment.
You can’t perform that action at this time.