From 8990cdb9d06adc7226c61a6198b8a72c911b7a21 Mon Sep 17 00:00:00 2001 From: nds Date: Thu, 12 Nov 2009 16:44:18 +0000 Subject: [PATCH] Undo the previous modification because of ATLAS. "Computers" menu item disappeared with the previous state. --- src/Qtx/QtxAction.cxx | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) 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 ); } -- 2.39.2