Salome HOME
Debug of CMake build procedure
[modules/gui.git] / src / LightApp / LightApp_SelectionMgr.cxx
index 1b833f6d3fe70dc115bd691a50d69a37a5712295..dd304ac1441b84dba589d4f4c59b3549cbcbe971 100644 (file)
@@ -228,6 +228,20 @@ void LightApp_SelectionMgr::selectedObjects( QStringList& theList, const QString
   theList = selList;
 }
 
+/*!
+  Append selected objects.
+*/
+void LightApp_SelectionMgr::setSelectedObjects( const QStringList& lst, const bool append )
+{
+  SUIT_DataOwnerPtrList owners;
+  foreach( const QString& aValue, lst ) {
+    if ( !aValue.isNull() )
+      owners.append( new LightApp_DataOwner( aValue ) );
+  }
+
+  setSelected( owners, append );
+}
+
 #endif
 
 /*!