Salome HOME
There were added new version of method type returning type by string entry
[modules/smesh.git] / src / SMESHGUI / SMESHGUI_Selection.cxx
index 5a060f295a9e82289ada685df68f8d710ef21a18..912d1a0d44426be93faacf7693cc7aa6b6c4ff2c 100644 (file)
@@ -313,17 +313,21 @@ QVariant SMESHGUI_Selection::isVisible( int ind ) const
   return QVariant( false, 0 );
 }
 
+//=======================================================================
+//function : type
+//purpose  :
+//=======================================================================
+int SMESHGUI_Selection::type( SalomeApp_DataOwner* owner, _PTR(Study) study )
+{
+  return type( owner->entry(), study );
+}
 
 //=======================================================================
 //function : type
 //purpose  : 
 //=======================================================================
-
-int SMESHGUI_Selection::type( SalomeApp_DataOwner* owner,
-                              _PTR(Study) study )
+int SMESHGUI_Selection::type( const QString& entry, _PTR(Study) study )
 {
-  QString entry = owner->entry();
-
   _PTR(SObject) obj (study->FindObjectID(entry.latin1()));
   if( !obj )
     return -1;