X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSALOME_SWIG%2FSALOMEGUI_Swig.cxx;h=1209276473cbefb0f2bfdfa543be7c429b2613dd;hb=331294345d3e1716fbf79ae25a2851011729be79;hp=39e8e1f77d4736df99ada097214f8346a84d8e57;hpb=4bcb2f56e92b7eab9f660cb78e8a52121194b0ff;p=modules%2Fgui.git diff --git a/src/SALOME_SWIG/SALOMEGUI_Swig.cxx b/src/SALOME_SWIG/SALOMEGUI_Swig.cxx index 39e8e1f77..120927647 100644 --- a/src/SALOME_SWIG/SALOMEGUI_Swig.cxx +++ b/src/SALOME_SWIG/SALOMEGUI_Swig.cxx @@ -308,7 +308,7 @@ const char* SALOMEGUI_Swig::getSelected( int index ) { QStringList selected = ProcessEvent( new TGetSelectedEvent() ); return index >= 0 && index < selected.count() ? - strdup( selected[ index ].toLatin1().constData() ) : 0; + strdup( selected[ index ].toUtf8().constData() ) : 0; } /*! @@ -329,7 +329,7 @@ void SALOMEGUI_Swig::AddIObject( const char* theEntry ) LightApp_SelectionMgr* aSelMgr = anApp->selectionMgr(); if ( aStudy && aSelMgr ) { SALOME_ListIO anIOList; - anIOList.Append( new SALOME_InteractiveObject( myEntry.toLatin1(), "", "" ) ); + anIOList.Append( new SALOME_InteractiveObject( myEntry.toUtf8(), "", "" ) ); aSelMgr->setSelectedObjects( anIOList, true ); } } @@ -364,7 +364,7 @@ void SALOMEGUI_Swig::RemoveIObject( const char* theEntry ) aSelMgr->selectedObjects( anIOList ); SALOME_ListIteratorOfListIO anIter( anIOList ); for( ; anIter.More(); anIter.Next() ) { - if ( anIter.Value()->isSame( new SALOME_InteractiveObject( myEntry.toLatin1(), "", "" ) ) ) { + if ( anIter.Value()->isSame( new SALOME_InteractiveObject( myEntry.toUtf8(), "", "" ) ) ) { anIOList.Remove( anIter ); aSelMgr->setSelectedObjects( anIOList, true ); return; @@ -605,7 +605,7 @@ public: if ( window ) { SALOME_View* view = dynamic_cast( window->getViewManager()->getViewModel() ); if ( view ) { - SALOME_Prs* aPrs = view->CreatePrs( myEntry.toLatin1() ); + SALOME_Prs* aPrs = view->CreatePrs( myEntry.toUtf8() ); myResult = !aPrs->IsNull(); } } @@ -898,7 +898,7 @@ public: const char* SALOMEGUI_Swig::getViewParameters() { QString result = ProcessEvent( new TGetViewParameters() ); - return result.isEmpty() ? 0 : strdup( result.toLatin1().constData() ); + return result.isEmpty() ? 0 : strdup( result.toUtf8().constData() ); }