From f55fd3f10c9131a7a7258742623fae8e16a39cee Mon Sep 17 00:00:00 2001
From: James Turner <zakalawe@mac.com>
Date: Sun, 11 Jun 2017 23:15:52 +0100
Subject: [PATCH] Compat fixes for older Qt versions.

---
 src/Viewer/GraphicsWindowQt5.cpp | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/Viewer/GraphicsWindowQt5.cpp b/src/Viewer/GraphicsWindowQt5.cpp
index 54f744bbe..6b10ff7d1 100644
--- a/src/Viewer/GraphicsWindowQt5.cpp
+++ b/src/Viewer/GraphicsWindowQt5.cpp
@@ -193,7 +193,7 @@ GLWindow::~GLWindow()
 void GLWindow::requestUpdate()
 {
     // mimic Qt 5.5's requestUpdate method
-    QTimer::singleShot(0, this, &GLWindow::processUpdateEvent);
+    QTimer::singleShot(0, this, SLOT(processUpdateEvent()));
 }
 #endif
 
@@ -461,7 +461,9 @@ QSurfaceFormat GraphicsWindowQt5::traits2qSurfaceFormat( const osg::GraphicsCont
     format.setSwapBehavior( traits->doubleBuffer ?
         QSurfaceFormat::DoubleBuffer :
         QSurfaceFormat::DefaultSwapBehavior);
+#if QT_VERSION >= 0x050300
     format.setSwapInterval( traits->vsync ? 1 : 0 );
+#endif
     format.setStereo( traits->quadBufferStereo ? 1 : 0 );
 
     return format;