Bug 96596 - tests compile errors with non-standart Qt install folder : e.g. /opt/Qt5.7.0
Summary: tests compile errors with non-standart Qt install folder : e.g. /opt/Qt5.7.0
Status: RESOLVED INVALID
Alias: None
Product: poppler
Classification: Unclassified
Component: qt frontend (show other bugs)
Version: unspecified
Hardware: All All
: medium trivial
Assignee: poppler-bugs
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-06-20 13:01 UTC by Miroslav Tzonkov
Modified: 2016-06-20 21:29 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Miroslav Tzonkov 2016-06-20 13:01:51 UTC
diff --git a/qt5/tests/test-render-to-file.cpp b/qt5/tests/test-render-to-file.cpp
index 5f86da4..9a940a8 100644
--- a/qt5/tests/test-render-to-file.cpp
+++ b/qt5/tests/test-render-to-file.cpp
@@ -1,7 +1,8 @@
 #include <QtCore/QDebug>
 #include <QtCore/QFile>
-#include <QGuiApplication>
-#include <QImage>
+//#include <QGuiApplication>
+#include <QtWidgets/QApplication>
+#include <QtGui/QImage>
 
 #include <poppler-qt5.h>
Comment 1 Albert Astals Cid 2016-06-20 21:29:44 UTC
This is not the correct fix.

#include <QImage>

is completely valid, it's even documented as "the way" to do it in Qt documentation, so find what's the actual error and fix that one.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.