]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Fix problem with painting of OCC_Viewer on Qt 5 with OCCT version less 7.0.0 imn/fix_occ_viewer
authorimn <imn@opencascade.com>
Mon, 1 Feb 2016 08:42:34 +0000 (11:42 +0300)
committerimn <imn@opencascade.com>
Mon, 1 Feb 2016 08:42:34 +0000 (11:42 +0300)
src/OCCViewer/OCCViewer_ViewPort.cxx

index ad4de604edb00a392cbf37c6c2b0e24d5b23a31b..2648f3ec999f37840701187ebe8f8a13d2900be6 100755 (executable)
@@ -218,7 +218,9 @@ void OCCViewer_ViewPort::initialize()
   setBackgroundRole( QPalette::NoRole );//NoBackground );
   // set focus policy to threat QContextMenuEvent from keyboard  
   setFocusPolicy( Qt::StrongFocus );
+#if QT_VERSION < QT_VERSION_CHECK(5, 0, 0) && OCC_VERSION_LARGE < 0x07000000
   setAttribute( Qt::WA_PaintOnScreen );
+#endif
   setAttribute( Qt::WA_NoSystemBackground );
 }