]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
0021858: EDF 2171 SMESH : Add an information about the groups an element or node...
authorvsr <vsr@opencascade.com>
Fri, 21 Dec 2012 11:06:26 +0000 (11:06 +0000)
committervsr <vsr@opencascade.com>
Fri, 21 Dec 2012 11:06:26 +0000 (11:06 +0000)
- additional minor change: trim long group names

src/SMESHGUI/SMESHGUI_MeshInfo.cxx

index a922697bf6f540b36cbcb59a739247ffec3e3df1..7cc9b583cd41366f425215c1add2254f4898fa54 100644 (file)
@@ -1152,7 +1152,7 @@ void SMESHGUI_SimpleElemInfo::information( const QList<long>& ids )
                myInfo->append( QString( "<b>%1:</b>" ).arg( SMESHGUI_AddInfo::tr( "GROUPS" ) ) );
                top_created = true;
              }
-             myInfo->append( QString( "+ <b>%1:</b>" ).arg( aName ) );
+             myInfo->append( QString( "+ <b>%1:</b>" ).arg( aName.trimmed() ) );
              if ( grp_details ) {
                SMESH::SMESH_Group_var         aStdGroup  = SMESH::SMESH_Group::_narrow( aGrp );
                SMESH::SMESH_GroupOnGeom_var   aGeomGroup = SMESH::SMESH_GroupOnGeom::_narrow( aGrp );
@@ -1399,7 +1399,7 @@ void SMESHGUI_SimpleElemInfo::information( const QList<long>& ids )
                myInfo->append( QString( "<b>%1:</b>" ).arg( SMESHGUI_AddInfo::tr( "GROUPS" ) ) );
                top_created = true;
              }
-             myInfo->append( QString( "+ <b>%1:</b>" ).arg( aName ) );
+             myInfo->append( QString( "+ <b>%1:</b>" ).arg( aName.trimmed() ) );
              if ( grp_details ) {
                SMESH::SMESH_Group_var         aStdGroup  = SMESH::SMESH_Group::_narrow( aGrp );
                SMESH::SMESH_GroupOnGeom_var   aGeomGroup = SMESH::SMESH_GroupOnGeom::_narrow( aGrp );
@@ -1652,7 +1652,7 @@ void SMESHGUI_TreeElemInfo::information( const QList<long>& ids )
                groupsItem->setText( 0, SMESHGUI_AddInfo::tr( "GROUPS" ) );
              }
              QTreeWidgetItem* it = createItem( groupsItem, Bold );
-             it->setText( 0, aName );
+             it->setText( 0, aName.trimmed() );
              if ( grp_details ) {
                SMESH::SMESH_Group_var         aStdGroup  = SMESH::SMESH_Group::_narrow( aGrp );
                SMESH::SMESH_GroupOnGeom_var   aGeomGroup = SMESH::SMESH_GroupOnGeom::_narrow( aGrp );
@@ -1970,7 +1970,7 @@ void SMESHGUI_TreeElemInfo::information( const QList<long>& ids )
                groupsItem->setText( 0, SMESHGUI_AddInfo::tr( "GROUPS" ) );
              }
              QTreeWidgetItem* it = createItem( groupsItem, Bold );
-             it->setText( 0, aName );
+             it->setText( 0, aName.trimmed() );
              if ( grp_details ) {
                SMESH::SMESH_Group_var         aStdGroup  = SMESH::SMESH_Group::_narrow( aGrp );
                SMESH::SMESH_GroupOnGeom_var   aGeomGroup = SMESH::SMESH_GroupOnGeom::_narrow( aGrp );