[libmediaart] extract: Fix Qt5 compilation failure, use QCoreApplication instead of QGui*
- From: Martyn James Russell <mr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libmediaart] extract: Fix Qt5 compilation failure, use QCoreApplication instead of QGui*
- Date: Fri, 7 Mar 2014 10:05:45 +0000 (UTC)
commit cbf7ec1ce7b37a2f6613e945681a418555043bc8
Author: Martyn Russell <martyn lanedo com>
Date: Fri Mar 7 09:59:29 2014 +0000
extract: Fix Qt5 compilation failure, use QCoreApplication instead of QGui*
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 */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]