From fedf75a0517678c2447d4643b75871763a770aa6 Mon Sep 17 00:00:00 2001 From: stv Date: Fri, 14 Sep 2007 09:54:07 +0000 Subject: [PATCH] no message --- src/Qtx/QtxLogoMgr.cxx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Qtx/QtxLogoMgr.cxx b/src/Qtx/QtxLogoMgr.cxx index aa1189152..18f0677cb 100644 --- a/src/Qtx/QtxLogoMgr.cxx +++ b/src/Qtx/QtxLogoMgr.cxx @@ -30,7 +30,7 @@ QtxLogoMgr::QtxLogoMgr( QMenuBar* mb ) : QObject( mb ), myMenus( mb ), -myId( 0 ) +myId( -1 ) { } @@ -111,10 +111,10 @@ void QtxLogoMgr::generate() if ( !menuBar() ) return; - if ( myId ) + if ( myId != -1 ) menuBar()->removeItem( myId ); - myId = 0; + myId = -1; if ( myLogos.isEmpty() ) return; @@ -169,10 +169,10 @@ void QtxLogoMgr::generate() QApplication::sendPostedEvents( cnt, QEvent::ChildInserted ); cnt->addSpacing( 2 ); - myId = menuBar()->insertItem( cnt, INT_MAX ); + myId = menuBar()->insertItem( cnt ); - QApplication::sendPostedEvents( menuBar()->parentWidget(), QEvent::LayoutHint ); - QApplication::postEvent( menuBar()->parentWidget(), new QEvent( QEvent::LayoutHint ) ); +// QApplication::sendPostedEvents( menuBar()->parentWidget(), QEvent::LayoutHint ); +// QApplication::postEvent( menuBar()->parentWidget(), new QEvent( QEvent::LayoutHint ) ); } int QtxLogoMgr::find( const QString& id ) const -- 2.39.2