X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FLightApp%2FLightApp_OBSelector.cxx;h=feec6332e9b733a6d2681e6b199b5ef5d8d376c0;hb=b6e35aa42d3c67a529d7f9339718dfaed6891323;hp=7eb1399e8cfe43b221284ab0bb031799106432e1;hpb=26ac7ca874ce9a796ff7ad43685f42afca635df9;p=modules%2Fgui.git diff --git a/src/LightApp/LightApp_OBSelector.cxx b/src/LightApp/LightApp_OBSelector.cxx index 7eb1399e8..feec6332e 100644 --- a/src/LightApp/LightApp_OBSelector.cxx +++ b/src/LightApp/LightApp_OBSelector.cxx @@ -1,4 +1,4 @@ -// Copyright (C) 2007-2016 CEA/DEN, EDF R&D, OPEN CASCADE +// Copyright (C) 2007-2024 CEA, EDF, OPEN CASCADE // // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS @@ -101,11 +101,15 @@ void LightApp_OBSelector::setModified() */ void LightApp_OBSelector::onSelectionChanged() { +#ifdef _DEBUG_ QTime t1 = QTime::currentTime(); +#endif mySelectedList.clear(); selectionChanged(); +#ifdef _DEBUG_ QTime t2 = QTime::currentTime(); qDebug( QString( "selection time = %1 msecs" ).arg( t1.msecsTo( t2 ) ).toLatin1().constData() ); +#endif } /*! @@ -130,9 +134,9 @@ void LightApp_OBSelector::getSelection( SUIT_DataOwnerPtrList& theList ) const if ( obj && app->checkDataObject( obj) ) { #ifndef DISABLE_SALOMEOBJECT Handle(SALOME_InteractiveObject) aSObj = new SALOME_InteractiveObject - ( obj->entry().toLatin1().constData(), + ( obj->entry().toUtf8().constData(), obj->componentDataType().toLatin1().constData(), - obj->name().toLatin1().constData() ); + obj->name().toUtf8().constData() ); LightApp_DataOwner* owner = new LightApp_DataOwner( aSObj ); #else LightApp_DataOwner* owner = new LightApp_DataOwner( obj->entry() );