setWindowIcon( myDesktop->windowIcon() );
setAttribute( Qt::WA_DeleteOnClose );
-
+
myToolMgr = new QtxActionToolMgr( this );
}
/*! 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 );
}