Salome HOME
Updates from V7_dev branch
[modules/gui.git] / src / GLViewer / GLViewer_Viewer.cxx
index 483b086d378d668c25c7459b9103204319d46a6e..a4667ba45d44024d096c9f36f80dbd63a69a39d7 100644 (file)
@@ -888,7 +888,9 @@ void GLViewer_ViewSketcher::onSketch( SketchState state )
 
     if ( state == Fin )
     {
-        QApplication::syncX();  /* force rectangle redrawing */
+#if QT_VERSION < QT_VERSION_CHECK(5, 0, 0)
+       QApplication::syncX();  /* force rectangle redrawing */
+#endif
         myViewer->activateSketching( GLViewer_Viewer::NoSketching );
     }
 }