From 75be4ee0eb7c290a9c12c3f09d1d3df4e42d4d92 Mon Sep 17 00:00:00 2001 From: vsr Date: Fri, 21 Dec 2012 11:06:26 +0000 Subject: [PATCH] 0021858: EDF 2171 SMESH : Add an information about the groups an element or node belongs to - additional minor change: trim long group names --- src/SMESHGUI/SMESHGUI_MeshInfo.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/SMESHGUI/SMESHGUI_MeshInfo.cxx b/src/SMESHGUI/SMESHGUI_MeshInfo.cxx index a922697bf..7cc9b583c 100644 --- a/src/SMESHGUI/SMESHGUI_MeshInfo.cxx +++ b/src/SMESHGUI/SMESHGUI_MeshInfo.cxx @@ -1152,7 +1152,7 @@ void SMESHGUI_SimpleElemInfo::information( const QList& ids ) myInfo->append( QString( "%1:" ).arg( SMESHGUI_AddInfo::tr( "GROUPS" ) ) ); top_created = true; } - myInfo->append( QString( "+ %1:" ).arg( aName ) ); + myInfo->append( QString( "+ %1:" ).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& ids ) myInfo->append( QString( "%1:" ).arg( SMESHGUI_AddInfo::tr( "GROUPS" ) ) ); top_created = true; } - myInfo->append( QString( "+ %1:" ).arg( aName ) ); + myInfo->append( QString( "+ %1:" ).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& 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& 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 ); -- 2.39.2