Salome HOME
Fix for the issue #2808 : Documentation on the "Groups" panel. Added description...
[modules/shaper.git] / src / ModuleBase / ModuleBase_WidgetEditor.cpp
index be60db9d3b503a620ba69118b8e50af10ef2be79..adadd23b0f24dc6a7e3dda54df8915005ed70247 100644 (file)
@@ -52,7 +52,10 @@ class ModuleBase_EditorDialog : public QDialog
 {
 public:
   ModuleBase_EditorDialog(QWidget* theParent, Qt::WindowFlags theFlags)
-    : QDialog(theParent, theFlags) {}
+    : QDialog(theParent, theFlags)
+  {
+    setMinimumWidth(100);
+  }
   ~ModuleBase_EditorDialog() {}
 
 protected:
@@ -88,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