mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-11-15 10:08:34 +05:00
0021359: [CEA] Mesh information
Additional minor changes: fix bad layout; fix wrong statement
This commit is contained in:
parent
2dbfdb63ff
commit
6dce27e43b
@ -1359,7 +1359,7 @@ void SMESHGUI_AddInfo::meshInfo( SMESH::SMESH_Mesh_ptr mesh, QTreeWidgetItem* pa
|
|||||||
if ( CORBA::is_nil(gobj ) ) continue;
|
if ( CORBA::is_nil(gobj ) ) continue;
|
||||||
|
|
||||||
int smType = gobj->GetShapeType();
|
int smType = gobj->GetShapeType();
|
||||||
if ( smType == GEOM::COMPSOLID ) smType == GEOM::COMPOUND;
|
if ( smType == GEOM::COMPSOLID ) smType = GEOM::COMPOUND;
|
||||||
|
|
||||||
if ( !itemSubMeshes ) {
|
if ( !itemSubMeshes ) {
|
||||||
itemSubMeshes = createItem( parent, Bold | All );
|
itemSubMeshes = createItem( parent, Bold | All );
|
||||||
@ -1591,7 +1591,6 @@ SMESHGUI_MeshInfoDlg::SMESHGUI_MeshInfoDlg( QWidget* parent, int page )
|
|||||||
l->setMargin( MARGIN );
|
l->setMargin( MARGIN );
|
||||||
l->setSpacing( SPACING );
|
l->setSpacing( SPACING );
|
||||||
l->addWidget( myTabWidget );
|
l->addWidget( myTabWidget );
|
||||||
l->addStretch();
|
|
||||||
l->addLayout( btnLayout );
|
l->addLayout( btnLayout );
|
||||||
|
|
||||||
myTabWidget->setCurrentIndex( qMax( (int)BaseInfo, qMin( (int)ElemInfo, page ) ) );
|
myTabWidget->setCurrentIndex( qMax( (int)BaseInfo, qMin( (int)ElemInfo, page ) ) );
|
||||||
|
Loading…
Reference in New Issue
Block a user