From ba73ca095daa5a8c096f2a380a72509dba3840e4 Mon Sep 17 00:00:00 2001
From: Nikolai Kosjar <nikolai.kosjar@digia.com>
Date: Thu, 22 Aug 2013 13:29:46 +0200
Subject: [PATCH] Designer: Fix compilation with Qt4

Change-Id: Ib6e3ab705504997e24c95c20bea21b007b62deb6
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
---
 src/plugins/designer/gotoslot_test.cpp | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/src/plugins/designer/gotoslot_test.cpp b/src/plugins/designer/gotoslot_test.cpp
index 3df1b11d3f4..a74fc84e16d 100644
--- a/src/plugins/designer/gotoslot_test.cpp
+++ b/src/plugins/designer/gotoslot_test.cpp
@@ -29,6 +29,9 @@
 
 #include "formeditorplugin.h"
 
+#if QT_VERSION < 0x050000
+#include <QtTest>
+#else
 #include "formeditorw.h"
 
 #include <coreplugin/testdatadir.h>
@@ -143,11 +146,16 @@ private:
 };
 
 } // anonymous namespace
+#endif
 
 /// Check: Executes "Go To Slot..." on a QPushButton in a *.ui file and checks if the respective
 /// header and source files are updated.
-void FormEditorPlugin::test_gotoslot_withoutProject()
+void Designer::Internal::FormEditorPlugin::test_gotoslot_withoutProject()
 {
+#if QT_VERSION >= 0x050000
     GoToSlotTest test;
     test.run();
+#else
+    QSKIP("Available only with >= Qt5", SkipSingle);
+#endif
 }
-- 
GitLab