From 84e9cf0fcd04a234291b55820a2235dc4cd94c95 Mon Sep 17 00:00:00 2001 From: stv Date: Tue, 29 Apr 2008 14:20:23 +0000 Subject: [PATCH] *** empty log message *** --- src/Qtx/QtxActionMenuMgr.cxx | 5 +++-- src/SUIT/SUIT_Application.cxx | 4 +++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/Qtx/QtxActionMenuMgr.cxx b/src/Qtx/QtxActionMenuMgr.cxx index 2540721e3..da5bb675e 100644 --- a/src/Qtx/QtxActionMenuMgr.cxx +++ b/src/Qtx/QtxActionMenuMgr.cxx @@ -327,8 +327,9 @@ int QtxActionMenuMgr::insert( const QString& title, const int pId, const int gro 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() ) ); diff --git a/src/SUIT/SUIT_Application.cxx b/src/SUIT/SUIT_Application.cxx index bea5e317f..813206467 100755 --- a/src/SUIT/SUIT_Application.cxx +++ b/src/SUIT/SUIT_Application.cxx @@ -652,8 +652,9 @@ void SUIT_Application::onActionChanged() actionChanged( ::qobject_cast( sender() ) ); } -void SUIT_Application::actionChanged( QAction* a ) +void SUIT_Application::actionChanged( QAction* ) { + /* if ( !a ) return; @@ -682,4 +683,5 @@ void SUIT_Application::actionChanged( QAction* a ) s->setKey( a->shortcut() ); s->setEnabled( a->isEnabled() ); + */ } -- 2.39.2