-// Copyright (C) 2007-2020 CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2022 CEA/DEN, EDF R&D, OPEN CASCADE
//
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
//================================================================================
QWidget* LineDelegate::createEditor( QWidget* parent,
- const QStyleOptionViewItem& opt,
+ const QStyleOptionViewItem& /*opt*/,
const QModelIndex& index) const
{
QWidget* w = 0;
if ( !shapeEntry.isEmpty() )
{
// find origin
- Handle(SALOME_InteractiveObject) io =
- new SALOME_InteractiveObject( shapeEntry.toStdString().c_str(), "GEOM" );
- GEOM::GEOM_Object_var geomObj = SMESH::IObjectToInterface<GEOM::GEOM_Object>( io );
+ GEOM::GEOM_Object_var geomObj = SMESH::EntryToInterface<GEOM::GEOM_Object>( shapeEntry );
if ( GEOMBase::GetShape( geomObj, shape ) && !shape.IsNull())
{
Bnd_Box box;
if ( shapeEntry.isEmpty() )
return;
- Handle(SALOME_InteractiveObject) io =
- new SALOME_InteractiveObject( shapeEntry.toStdString().c_str(), "GEOM" );
- GEOM::GEOM_Object_var geomObj = SMESH::IObjectToInterface<GEOM::GEOM_Object>( io );
+ GEOM::GEOM_Object_var geomObj = SMESH::EntryToInterface<GEOM::GEOM_Object>( shapeEntry );
if ( geomObj->_is_nil() )
return;