summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartyn Russell <martyn@lanedo.com>2014-03-07 09:59:29 +0000
committerMartyn Russell <martyn@lanedo.com>2014-03-07 09:59:29 +0000
commitcbf7ec1ce7b37a2f6613e945681a418555043bc8 (patch)
tree9bd36bd05f5c6041c6cf495de42a1baa658c0fff
parenteba1a1f1276e40b68e7b7084863469a0c97ef41a (diff)
downloadlibmediaart-cbf7ec1ce7b37a2f6613e945681a418555043bc8.tar.gz
extract: Fix Qt5 compilation failure, use QCoreApplication instead of QGui*
-rw-r--r--libmediaart/extractqt.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libmediaart/extractqt.cpp b/libmediaart/extractqt.cpp
index 2032600..2dabd04 100644
--- a/libmediaart/extractqt.cpp
+++ b/libmediaart/extractqt.cpp
@@ -43,7 +43,7 @@
G_BEGIN_DECLS
#ifdef HAVE_QT5
-static QGuiApplication *app = NULL;
+static QCoreApplication *app = NULL;
#else /* HAVE_QT4 (we fallback to Qt4) */
static QApplication *app = NULL;
#endif /* HAVE_QT5 */
@@ -66,7 +66,7 @@ media_art_plugin_init (gint max_width)
setenv("QT_QPA_PLATFORM", "minimal", 1);
#endif /* HAVE_NEMO */
- app = new QGuiApplication (argc, argv);
+ app = new QCoreApplication (argc, argv);
#else /* HAVE_QT4 (we fallback to Qt4) */
app = new QApplication (argc, argv, QApplication::Tty);
#endif /* HAVE_QT5 */