diff options
author | Martyn Russell <martyn@lanedo.com> | 2014-03-07 09:59:29 +0000 |
---|---|---|
committer | Martyn Russell <martyn@lanedo.com> | 2014-03-07 09:59:29 +0000 |
commit | cbf7ec1ce7b37a2f6613e945681a418555043bc8 (patch) | |
tree | 9bd36bd05f5c6041c6cf495de42a1baa658c0fff | |
parent | eba1a1f1276e40b68e7b7084863469a0c97ef41a (diff) | |
download | libmediaart-cbf7ec1ce7b37a2f6613e945681a418555043bc8.tar.gz |
extract: Fix Qt5 compilation failure, use QCoreApplication instead of QGui*
-rw-r--r-- | libmediaart/extractqt.cpp | 4 |
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 */ |