]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #2542: Set completion list for pop-up editor
authorvsv <vsv@opencascade.com>
Fri, 6 Jul 2018 14:45:19 +0000 (17:45 +0300)
committervsv <vsv@opencascade.com>
Fri, 6 Jul 2018 14:45:19 +0000 (17:45 +0300)
src/ModuleBase/ModuleBase_WidgetEditor.cpp

index aa2a175109e43e2d25fe8000361168ded4da8920..adadd23b0f24dc6a7e3dda54df8915005ed70247 100644 (file)
@@ -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