Salome HOME
Issue #1701 Preselecting before calling constraints does not put objects in the input...
[modules/shaper.git] / src / ModuleBase / ModuleBase_WidgetSwitch.cpp
index 31deb0e986bdc96d06893fa2c4cca5908456ac79..77eff6744cfa77257461edc04bc0901a8ada2e03 100644 (file)
@@ -18,9 +18,8 @@
 #include <QStackedLayout>
 #include <QVBoxLayout>
 
-ModuleBase_WidgetSwitch::ModuleBase_WidgetSwitch(QWidget* theParent, const Config_WidgetAPI* theData,
-                                                 const std::string& theParentId)
-: ModuleBase_PagedContainer(theParent, theData, theParentId)
+ModuleBase_WidgetSwitch::ModuleBase_WidgetSwitch(QWidget* theParent, const Config_WidgetAPI* theData)
+: ModuleBase_PagedContainer(theParent, theData)
 {
   QVBoxLayout*  aMainLay = new QVBoxLayout(this);
   //aMainLay->setContentsMargins(2, 4, 2, 2);
@@ -42,9 +41,10 @@ ModuleBase_WidgetSwitch::~ModuleBase_WidgetSwitch()
 
 
 int ModuleBase_WidgetSwitch::addPage(ModuleBase_PageBase* thePage, const QString& theName,
-                                                                   const QString& theCaseId)
+                                                                   const QString& theCaseId,
+                                                                   const QPixmap& theIcon )
 {
-  int aSuperCount = ModuleBase_PagedContainer::addPage(thePage, theName, theCaseId);
+  int aSuperCount = ModuleBase_PagedContainer::addPage(thePage, theName, theCaseId, theIcon);
   myCombo->addItem(theName);
   int aResultCount = myCombo->count();
   if (aResultCount == 2)