From: rnv Date: Fri, 19 Jan 2018 13:02:22 +0000 (+0300) Subject: Implement unicode support in SALOME: first attempt X-Git-Tag: SHAPER_V9_1_0RC1~17^2~6^2~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=efce3946f7a95e17d60e1db81e586477d7acf93c;p=modules%2Fsmesh.git Implement unicode support in SALOME: first attempt --- diff --git a/src/SMESHGUI/SMESHGUI.cxx b/src/SMESHGUI/SMESHGUI.cxx index 2e698c6de..797674b12 100644 --- a/src/SMESHGUI/SMESHGUI.cxx +++ b/src/SMESHGUI/SMESHGUI.cxx @@ -7057,7 +7057,7 @@ bool SMESHGUI::renameObject( const QString& entry, const QString& name) { aType == SMESH::SUBMESH_EDGE || aType == SMESH::SUBMESH_VERTEX || aType == SMESH::HYPOTHESIS || aType == SMESH::ALGORITHM) { 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 Handle(SALOME_InteractiveObject) IObject = @@ -7067,7 +7067,7 @@ bool SMESHGUI::renameObject( const QString& entry, const QString& name) { if( !aGroupObject->_is_nil() ) { aGroupObject->SetName( qPrintable(name) ); if ( SMESH_Actor *anActor = SMESH::FindActorByEntry( qPrintable(entry) ) ) - anActor->setName( qPrintable(name) ); + anActor->setName( qUtf8Printable(name) ); } return true; }