From 5c6ca3f3d5b88b55f68d4c068e8918fa5968c8a8 Mon Sep 17 00:00:00 2001 From: stv Date: Thu, 27 Mar 2008 14:02:10 +0000 Subject: [PATCH] *** empty log message *** --- src/SUIT/SUIT_ViewWindow.cxx | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/SUIT/SUIT_ViewWindow.cxx b/src/SUIT/SUIT_ViewWindow.cxx index 66ce8b08c..a9e8ae95d 100755 --- a/src/SUIT/SUIT_ViewWindow.cxx +++ b/src/SUIT/SUIT_ViewWindow.cxx @@ -50,7 +50,7 @@ SUIT_ViewWindow::SUIT_ViewWindow( SUIT_Desktop* theDesktop ) setWindowIcon( myDesktop->windowIcon() ); setAttribute( Qt::WA_DeleteOnClose ); - + myToolMgr = new QtxActionToolMgr( this ); } @@ -135,8 +135,15 @@ void SUIT_ViewWindow::closeEvent( QCloseEvent* e ) /*! Context menu requested for event \a e. */ -void SUIT_ViewWindow::contextMenuEvent ( QContextMenuEvent * e ) +void SUIT_ViewWindow::contextMenuEvent( QContextMenuEvent* e ) { + e->ignore(); + + QMainWindow::contextMenuEvent( e ); + + if ( e->isAccepted() ) + return; + if ( e->reason() != QContextMenuEvent::Mouse ) emit contextMenuRequested( e ); } -- 2.39.2