mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-27 09:50:34 +05:00
Implement unicode support in SALOME: first attempt
This commit is contained in:
parent
7a3ecab720
commit
efce3946f7
@ -7057,7 +7057,7 @@ bool SMESHGUI::renameObject( const QString& entry, const QString& name) {
|
|||||||
aType == SMESH::SUBMESH_EDGE || aType == SMESH::SUBMESH_VERTEX ||
|
aType == SMESH::SUBMESH_EDGE || aType == SMESH::SUBMESH_VERTEX ||
|
||||||
aType == SMESH::HYPOTHESIS || aType == SMESH::ALGORITHM) {
|
aType == SMESH::HYPOTHESIS || aType == SMESH::ALGORITHM) {
|
||||||
if ( !name.isEmpty() ) {
|
if ( !name.isEmpty() ) {
|
||||||
SMESHGUI::GetSMESHGen()->SetName(obj->GetIOR().c_str(), qPrintable(name) );
|
SMESHGUI::GetSMESHGen()->SetName(obj->GetIOR().c_str(), qUtf8Printable(name) );
|
||||||
|
|
||||||
// update name of group object and its actor
|
// update name of group object and its actor
|
||||||
Handle(SALOME_InteractiveObject) IObject =
|
Handle(SALOME_InteractiveObject) IObject =
|
||||||
@ -7067,7 +7067,7 @@ bool SMESHGUI::renameObject( const QString& entry, const QString& name) {
|
|||||||
if( !aGroupObject->_is_nil() ) {
|
if( !aGroupObject->_is_nil() ) {
|
||||||
aGroupObject->SetName( qPrintable(name) );
|
aGroupObject->SetName( qPrintable(name) );
|
||||||
if ( SMESH_Actor *anActor = SMESH::FindActorByEntry( qPrintable(entry) ) )
|
if ( SMESH_Actor *anActor = SMESH::FindActorByEntry( qPrintable(entry) ) )
|
||||||
anActor->setName( qPrintable(name) );
|
anActor->setName( qUtf8Printable(name) );
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user