Salome HOME
Issue #1452 Fatal error when create Distance constraint on construction vertex
[modules/shaper.git] / src / ModuleBase / ModuleBase_WidgetCreatorFactory.cpp
index 2c5d6772b0255af622839791c11317bff98b7582..13c7bf571d9e5db21073f67610ebd1a15d7dc1c8 100755 (executable)
@@ -80,12 +80,14 @@ bool ModuleBase_WidgetCreatorFactory::hasPanelWidget(const std::string& theType)
   return myPanelToCreator.contains(theType);
 }
 
-QWidget* ModuleBase_WidgetCreatorFactory::createPanel(const std::string& theType, QWidget* theParent)
+QWidget* ModuleBase_WidgetCreatorFactory::createPanelByType(const std::string& theType,
+                                                            QWidget* theParent,
+                                                            const FeaturePtr& theFeature)
 {
   QWidget* aPanel = 0;
   if (myPanelToCreator.contains(theType)) {
     WidgetCreatorPtr aCreator = myPanelToCreator[theType];
-    aPanel = aCreator->createPanelByType(theType, theParent);
+    aPanel = aCreator->createPanelByType(theType, theParent, theFeature);
   }
   return aPanel;
 }