From: eap Date: Mon, 8 Feb 2010 07:14:33 +0000 (+0000) Subject: follow modif for IPAL21558 (In Group creation dialog, selection of sub-shapes in... X-Git-Tag: V5_1_4a1~111 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=172b75f1d3d18a5c00c5e4776f2534f2052c93b2;p=modules%2Fsmesh.git 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* ); --- 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;