{
if ( o && o->isWidgetType() )
{
+ /*
if ( e->type() == QEvent::ActionAdded && ((QActionEvent*)e)->action() == this )
{
addedTo( (QWidget*)o );
//ActionNotify a( false, (QWidget*)o );
//QApplication::sendEvent( this, &a );
}
- /*if ( e->type() == QEvent::ActionAdded && ((QActionEvent*)e)->action() == this )
+ */
+ 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 );
}