int gid = (id == -1 || eNode ) ? generateId() : id;
- QAction* ma = new QAction( title, this );
- ma->setMenu( new QMenu( 0 ) );
+ QMenu* menu = new QMenu( 0 );
+ QAction* ma = menu->menuAction();
+ ma->setText( title );
connect( ma->menu(), SIGNAL( aboutToShow() ), this, SLOT( onAboutToShow() ) );
connect( ma->menu(), SIGNAL( aboutToHide() ), this, SLOT( onAboutToHide() ) );
actionChanged( ::qobject_cast<QAction*>( sender() ) );
}
-void SUIT_Application::actionChanged( QAction* a )
+void SUIT_Application::actionChanged( QAction* )
{
+ /*
if ( !a )
return;
s->setKey( a->shortcut() );
s->setEnabled( a->isEnabled() );
+ */
}