]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Undo the previous modification because of ATLAS. "Computers" menu item disappeared... V2_3_0
authornds <nds@opencascade.com>
Thu, 12 Nov 2009 16:44:18 +0000 (16:44 +0000)
committernds <nds@opencascade.com>
Thu, 12 Nov 2009 16:44:18 +0000 (16:44 +0000)
src/Qtx/QtxAction.cxx

index e4da75af7b8569540cb7e4da450834a4247a5a03..9cfc174c3f6fe87b3b4af76425c6b4525c44d2ac 100755 (executable)
@@ -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 );
 }