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
Issue #1383 Preview button: correction for the case: switch off auto_preview in extru...
[modules/shaper.git]
/
src
/
ModuleBase
/
ModuleBase_PageWidget.cpp
diff --git
a/src/ModuleBase/ModuleBase_PageWidget.cpp
b/src/ModuleBase/ModuleBase_PageWidget.cpp
index 9d32e79e7946699d7bb6c9f0d7e8866389eb5ee8..135fe23b78b0e9de603917de390e4df36cd0d202 100644
(file)
--- a/
src/ModuleBase/ModuleBase_PageWidget.cpp
+++ b/
src/ModuleBase/ModuleBase_PageWidget.cpp
@@
-38,10
+38,9
@@
void ModuleBase_PageWidget::placeModelWidget(ModuleBase_ModelWidget* theWidget)
myMainLayout->setRowStretch(kRow, 0);
}
myMainLayout->setRowStretch(kRow, 0);
}
-void ModuleBase_PageWidget::place
PageWidget(ModuleBase_PageBase
* theWidget)
+void ModuleBase_PageWidget::place
Widget(QWidget
* theWidget)
{
{
- QWidget* aWidget = dynamic_cast<QWidget*>(theWidget);
- if (!aWidget) {
+ if (!theWidget) {
#ifdef _DEBUG
std::cout << "ModuleBase_PageWidget::placePageWidget: can not cast page" << std::endl;
#endif
#ifdef _DEBUG
std::cout << "ModuleBase_PageWidget::placePageWidget: can not cast page" << std::endl;
#endif
@@
-49,7
+48,7
@@
void ModuleBase_PageWidget::placePageWidget(ModuleBase_PageBase* theWidget)
}
const int kCol = 0;
const int kRow = myMainLayout->count();
}
const int kCol = 0;
const int kRow = myMainLayout->count();
- myMainLayout->addWidget(
a
Widget, kRow, kCol);
+ myMainLayout->addWidget(
the
Widget, kRow, kCol);
myMainLayout->setRowStretch(kRow, 0);
}
myMainLayout->setRowStretch(kRow, 0);
}