From 25edb157377e75e70d3f5a56ff70aa5ac3473f00 Mon Sep 17 00:00:00 2001 From: vsv Date: Fri, 6 Jul 2018 17:45:19 +0300 Subject: [PATCH] Issue #2542: Set completion list for pop-up editor --- src/ModuleBase/ModuleBase_WidgetEditor.cpp | 5 +++++ 1 file changed, 5 insertions(+) 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 -- 2.39.2