From: nds Date: Thu, 12 Nov 2009 16:44:18 +0000 (+0000) Subject: Undo the previous modification because of ATLAS. "Computers" menu item disappeared... X-Git-Tag: V2_3_0 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=8990cdb9d06adc7226c61a6198b8a72c911b7a21;p=modules%2Fgui.git Undo the previous modification because of ATLAS. "Computers" menu item disappeared with the previous state. --- diff --git a/src/Qtx/QtxAction.cxx b/src/Qtx/QtxAction.cxx index e4da75af7..9cfc174c3 100755 --- a/src/Qtx/QtxAction.cxx +++ b/src/Qtx/QtxAction.cxx @@ -150,9 +150,21 @@ bool QtxAction::eventFilter( QObject* o, QEvent* e ) if ( o && o->isWidgetType() ) { if ( e->type() == QEvent::ActionAdded && ((QActionEvent*)e)->action() == this ) + { + addedTo( (QWidget*)o ); + //ActionNotify a( true, (QWidget*)o ); + //QApplication::sendEvent( this, &a ); + } + if ( e->type() == QEvent::ActionRemoved && ((QActionEvent*)e)->action() == this ) + { + removedFrom( (QWidget*)o ); + //ActionNotify a( false, (QWidget*)o ); + //QApplication::sendEvent( this, &a ); + } + /*if ( e->type() == QEvent::ActionAdded && ((QActionEvent*)e)->action() == this ) QApplication::postEvent( this, new ActionNotify( true, (QWidget*)o ) ); if ( e->type() == QEvent::ActionRemoved && ((QActionEvent*)e)->action() == this ) - QApplication::postEvent( this, new ActionNotify( false, (QWidget*)o ) ); + QApplication::postEvent( this, new ActionNotify( false, (QWidget*)o ) );*/ } return QWidgetAction::eventFilter( o, e ); }