1 // SUIT_ViewWindow.cxx: implementation of the SUIT_ViewWindow class.
3 //////////////////////////////////////////////////////////////////////
5 #include "SUIT_ViewWindow.h"
6 #include "SUIT_Desktop.h"
8 #include "qpopupmenu.h"
9 //////////////////////////////////////////////////////////////////////
10 // Construction/Destruction
11 //////////////////////////////////////////////////////////////////////
13 SUIT_ViewWindow::SUIT_ViewWindow(SUIT_Desktop* theDesktop)
14 : QMainWindow( theDesktop, "SUIT_ViewWindow", Qt::WDestructiveClose )
16 myDesktop = theDesktop;
19 SUIT_ViewWindow::~SUIT_ViewWindow()
23 //***************************************************************
24 void SUIT_ViewWindow::closeEvent(QCloseEvent* theEvent)
26 QMainWindow::closeEvent( theEvent );
30 //****************************************************************
31 void SUIT_ViewWindow::contextMenuEvent ( QContextMenuEvent * e )
33 if ( e->reason() != QContextMenuEvent::Mouse )
34 emit contextMenuRequested( e );