From: vsv Date: Fri, 6 Jul 2018 14:45:19 +0000 (+0300) Subject: Issue #2542: Set completion list for pop-up editor X-Git-Tag: EDF_2018-1~3 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=25edb157377e75e70d3f5a56ff70aa5ac3473f00;p=modules%2Fshaper.git Issue #2542: Set completion list for pop-up editor --- diff --git a/src/ModuleBase/ModuleBase_WidgetEditor.cpp b/src/ModuleBase/ModuleBase_WidgetEditor.cpp index aa2a17510..adadd23b0 100644 --- a/src/ModuleBase/ModuleBase_WidgetEditor.cpp +++ b/src/ModuleBase/ModuleBase_WidgetEditor.cpp @@ -91,6 +91,11 @@ bool ModuleBase_WidgetEditor::editedValue(double theSpinMinValue, double theSpin ModuleBase_ParamSpinBox* anEditor = new ModuleBase_ParamSpinBox(myEditorDialog); anEditor->setMinimum(theSpinMinValue); anEditor->setMaximum(theSpinMaxValue); + + QStringList aParameters; + ModuleBase_Tools::getParameters(aParameters); + anEditor->setCompletionList(aParameters); + if (outText.isEmpty()) anEditor->setValue(outValue); else