qmlgl: qualify Qt includes with their module and remove module include dir from the...
authorGeorge Kiagiadakis <george.kiagiadakis@collabora.com>
Sat, 19 Jan 2019 14:19:26 +0000 (15:19 +0100)
committerGeorge Kiagiadakis <george.kiagiadakis@collabora.com>
Mon, 21 Jan 2019 09:55:50 +0000 (11:55 +0200)
it is perfectly legal to use the <module/class> style of includes with Qt
and it avoids the need for having the module's include dir in the include path

ext/qt/gstqtgl.h
ext/qt/qtplugin.pro

index 13761ae..339f318 100644 (file)
@@ -47,7 +47,7 @@
 
 #if defined(QT_OPENGL_ES_2)
 #define GLsync gst_qt_GLsync
-#include <QOpenGLContext>
-#include <QOpenGLFunctions>
+#include <QtGui/QOpenGLContext>
+#include <QtGui/QOpenGLFunctions>
 #undef GLsync
 #endif /* defined(QT_OPENGL_ES_2) */
index d2c06c4..647449f 100644 (file)
@@ -39,6 +39,4 @@ HEADERS += \
     qtitem.h
 
 INCLUDEPATH += \
-    $$(GSTREAMER_ROOT)/include \
-    $$[QT_INSTALL_PREFIX]/include/QtGui/$$[QT_VERSION]/QtGui/
-
+    $$(GSTREAMER_ROOT)/include