From 7c05c3156902016e18f13250506efd2fce6f4fdc Mon Sep 17 00:00:00 2001 From: vsr Date: Thu, 12 Jul 2007 10:42:09 +0000 Subject: [PATCH] *** empty log message *** --- src/SVTK/SVTK_MainWindow.cxx | 3 ++- src/SVTK/SVTK_RenderWindowInteractor.cxx | 3 +++ src/SVTK/SVTK_ViewWindow.cxx | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/SVTK/SVTK_MainWindow.cxx b/src/SVTK/SVTK_MainWindow.cxx index 7c09aac5e..d543444ee 100644 --- a/src/SVTK/SVTK_MainWindow.cxx +++ b/src/SVTK/SVTK_MainWindow.cxx @@ -61,10 +61,11 @@ SVTK_MainWindow const char* theName, SUIT_ResourceMgr* theResourceMgr, SUIT_ViewWindow* theViewWindow) : - QMainWindow(theParent,0), + QMainWindow(theParent), myViewWindow(theViewWindow) { setObjectName(theName); + setWindowFlags( windowFlags() & ~Qt::Window ); myToolBar = new QtxToolBar( true, tr("LBL_TOOLBAR_LABEL"), this ); diff --git a/src/SVTK/SVTK_RenderWindowInteractor.cxx b/src/SVTK/SVTK_RenderWindowInteractor.cxx index a937a7cbd..92a8ec0d5 100644 --- a/src/SVTK/SVTK_RenderWindowInteractor.cxx +++ b/src/SVTK/SVTK_RenderWindowInteractor.cxx @@ -70,6 +70,9 @@ QVTK_RenderWindowInteractor QWidget(theParent), myRenderWindow(vtkRenderWindow::New()) { + setAttribute( Qt::WA_PaintOnScreen ); + //setAttribute( Qt::WA_NoSystemBackground ); + setObjectName(theName); setMouseTracking(true); diff --git a/src/SVTK/SVTK_ViewWindow.cxx b/src/SVTK/SVTK_ViewWindow.cxx index 1d2d78754..36b7408cf 100755 --- a/src/SVTK/SVTK_ViewWindow.cxx +++ b/src/SVTK/SVTK_ViewWindow.cxx @@ -91,7 +91,7 @@ namespace SVTK SVTK_ViewWindow ::SVTK_ViewWindow(SUIT_Desktop* theDesktop): SUIT_ViewWindow(theDesktop), - myMainWindow(NULL), + myMainWindow(0), myView(NULL), myDumpImage(QImage()) {} -- 2.39.2