diff options
author | George Kiagiadakis <george.kiagiadakis@collabora.com> | 2013-05-29 14:04:36 +0300 |
---|---|---|
committer | George Kiagiadakis <george.kiagiadakis@collabora.com> | 2013-06-05 12:01:51 +0300 |
commit | affe35c2e23b99396dbd85712355b09066c61dc2 (patch) | |
tree | 12edff253720aceef18bc5c207d84f100918289c | |
parent | 2c32d328fc792cc0a344276b8acd27c692e428fc (diff) |
qt5: also port the qmlplayer example
-rw-r--r-- | examples/qmlplayer/main.cpp | 6 | ||||
-rw-r--r-- | examples/qmlplayer/player.cpp | 6 |
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> |