Salome HOME
projects
/
modules
/
shaper.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Rectangle correction to have coincidence with point/line selected for the first point...
[modules/shaper.git]
/
src
/
ModuleBase
/
ModuleBase_WidgetSwitch.cpp
diff --git
a/src/ModuleBase/ModuleBase_WidgetSwitch.cpp
b/src/ModuleBase/ModuleBase_WidgetSwitch.cpp
index 8cd931574f11f63c76ce57bfc12a96b68f64d3f2..00ea700462e9aacd0a5f24d75d85b38e3fc35ffc 100644
(file)
--- 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,
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();
myCombo->addItem(theName);
int aResultCount = myCombo->count();
- if (aResultCount ==
1
)
+ if (aResultCount ==
2
)
myCombo->show();
QFrame* aFrame = dynamic_cast<QFrame*>(thePage);
aFrame->setFrameShape(QFrame::Box);
myCombo->show();
QFrame* aFrame = dynamic_cast<QFrame*>(thePage);
aFrame->setFrameShape(QFrame::Box);