From 172b75f1d3d18a5c00c5e4776f2534f2052c93b2 Mon Sep 17 00:00:00 2001 From: eap Date: Mon, 8 Feb 2010 07:14:33 +0000 Subject: [PATCH] follow modif for IPAL21558 (In Group creation dialog, selection of sub-shapes in OB, viewer and dialog is not well syncronized) - virtual void processOwner( const LightApp_DataOwner* ); + virtual bool processOwner( const LightApp_DataOwner* ); --- src/SMESHGUI/SMESHGUI_Selection.cxx | 3 ++- src/SMESHGUI/SMESHGUI_Selection.h | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/SMESHGUI/SMESHGUI_Selection.cxx b/src/SMESHGUI/SMESHGUI_Selection.cxx index 8eb024b8d..4afc541ee 100644 --- a/src/SMESHGUI/SMESHGUI_Selection.cxx +++ b/src/SMESHGUI/SMESHGUI_Selection.cxx @@ -86,7 +86,7 @@ void SMESHGUI_Selection::init( const QString& client, LightApp_SelectionMgr* mgr //function : processOwner //purpose : //======================================================================= -void SMESHGUI_Selection::processOwner( const LightApp_DataOwner* ow ) +bool SMESHGUI_Selection::processOwner( const LightApp_DataOwner* ow ) { const LightApp_SVTKDataOwner* owner = dynamic_cast ( ow ); @@ -94,6 +94,7 @@ void SMESHGUI_Selection::processOwner( const LightApp_DataOwner* ow ) myActors.append( dynamic_cast( owner->GetActor() ) ); else myActors.append( 0 ); + return true; } //======================================================================= diff --git a/src/SMESHGUI/SMESHGUI_Selection.h b/src/SMESHGUI/SMESHGUI_Selection.h index ce64db54a..11fdbad71 100644 --- a/src/SMESHGUI/SMESHGUI_Selection.h +++ b/src/SMESHGUI/SMESHGUI_Selection.h @@ -48,7 +48,7 @@ public: virtual void init( const QString&, LightApp_SelectionMgr* ); virtual QVariant parameter( const int, const QString& ) const; - virtual void processOwner( const LightApp_DataOwner* ); + virtual bool processOwner( const LightApp_DataOwner* ); // got from object, not from actor virtual bool isAutoColor( int ) const; -- 2.39.2