X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModuleBase%2FModuleBase_WidgetSwitch.cpp;h=00ea700462e9aacd0a5f24d75d85b38e3fc35ffc;hb=c24c2f94491145b9c2cbd0be6c6bc3d157bca9bb;hp=8cd931574f11f63c76ce57bfc12a96b68f64d3f2;hpb=4d0ed9b6a97b4eacae1ce66dc6804c740751dfb9;p=modules%2Fshaper.git diff --git a/src/ModuleBase/ModuleBase_WidgetSwitch.cpp b/src/ModuleBase/ModuleBase_WidgetSwitch.cpp index 8cd931574..00ea70046 100644 --- a/src/ModuleBase/ModuleBase_WidgetSwitch.cpp +++ b/src/ModuleBase/ModuleBase_WidgetSwitch.cpp @@ -42,12 +42,13 @@ 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 == 1) + if (aResultCount == 2) myCombo->show(); QFrame* aFrame = dynamic_cast(thePage); aFrame->setFrameShape(QFrame::Box);