summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--examples/qmlplayer/main.cpp6
-rw-r--r--examples/qmlplayer/player.cpp6
2 files changed, 10 insertions, 2 deletions
diff --git a/examples/qmlplayer/main.cpp b/examples/qmlplayer/main.cpp
index ca8f0c0..8baeb78 100644
--- a/examples/qmlplayer/main.cpp
+++ b/examples/qmlplayer/main.cpp
@@ -17,7 +17,11 @@
*/
#include "player.h"
#include <cstdlib>
-#include <QtGui/QApplication>
+#if (QT_VERSION >= QT_VERSION_CHECK(5, 0, 0))
+# include <QtWidgets/QApplication>
+#else
+# include <QtGui/QApplication>
+#endif
#include <QtDeclarative/QDeclarativeView>
#include <QtDeclarative/QDeclarativeContext>
#include <QtDeclarative/QDeclarativeEngine>
diff --git a/examples/qmlplayer/player.cpp b/examples/qmlplayer/player.cpp
index d730797..578a115 100644
--- a/examples/qmlplayer/player.cpp
+++ b/examples/qmlplayer/player.cpp
@@ -18,7 +18,11 @@
*/
#include "player.h"
#include <QtCore/QUrl>
-#include <QtGui/QFileDialog>
+#if (QT_VERSION >= QT_VERSION_CHECK(5, 0, 0))
+# include <QtWidgets/QFileDialog>
+#else
+# include <QtGui/QFileDialog>
+#endif
#include <QGlib/Connect>
#include <QGlib/Error>
#include <QGst/ElementFactory>