Salome HOME
updated copyright message
[modules/gui.git] / src / LightApp / LightApp_Plot2dSelector.cxx
old mode 100755 (executable)
new mode 100644 (file)
index 27b6edc..c836624
@@ -1,4 +1,4 @@
-// Copyright (C) 2007-2014  CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2023  CEA/DEN, EDF R&D, OPEN CASCADE
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
@@ -38,9 +38,10 @@ LightApp_Plot2dSelector::LightApp_Plot2dSelector( Plot2d_Viewer* v, SUIT_Selecti
   : SUIT_Selector( mgr, v ),
     myViewer(v)
 {
-  if ( v )
+  if ( v ) {
     connect( v, SIGNAL( legendSelected( const QString& ) ), this, SLOT( onSelectionChanged( const QString& ) ) );
     connect( v, SIGNAL( clearSelected() ), this, SLOT( onClearSelected( ) ) );
+  }
 }
 
 /*!
@@ -57,7 +58,7 @@ void LightApp_Plot2dSelector::getSelection( SUIT_DataOwnerPtrList& theList ) con
 {
   if( !myCurEntry.isNull() ) {
 #ifndef DISABLE_SALOMEOBJECT
-    theList.append( new LightApp_DataOwner( new SALOME_InteractiveObject(qPrintable(myCurEntry),"","") ) );
+    theList.append( new LightApp_DataOwner( new SALOME_InteractiveObject(qUtf8Printable(myCurEntry),"","") ) );
 #else
     theList.append( new LightApp_DataOwner( myCurEntry ) );
 #endif
@@ -76,7 +77,7 @@ void LightApp_Plot2dSelector::setSelection( const SUIT_DataOwnerPtrList& theList
            anIOList.Append(owner->IO());
       }
       else if ( !owner->entry().isEmpty() ) {
-           anIOList.Append( new SALOME_InteractiveObject(qPrintable(owner->entry()),"","") );
+           anIOList.Append( new SALOME_InteractiveObject(qUtf8Printable(owner->entry()),"","") );
       }      
     }
   }