qt 5.13.1 does not have QPrinter header

This commit is contained in:
Peter Petrik 2019-08-16 10:14:06 +02:00
parent 5e849793ca
commit 8f831bb37a
6 changed files with 14 additions and 3 deletions

View File

@ -366,7 +366,11 @@ IF(WITH_CORE)
FIND_PACKAGE(Qt5Xml REQUIRED)
FIND_PACKAGE(Qt5Svg REQUIRED)
FIND_PACKAGE(Qt5Concurrent REQUIRED)
FIND_PACKAGE(Qt5PrintSupport REQUIRED)
IF (NOT IOS)
FIND_PACKAGE(Qt5PrintSupport REQUIRED)
ELSE(NOT IOS)
ADD_DEFINITIONS(-DQT_NO_PRINTER)
ENDIF(NOT IOS)
FIND_PACKAGE(Qt5Positioning)
IF (WITH_QTWEBKIT)
FIND_PACKAGE(Qt5WebKit REQUIRED)

View File

@ -16,7 +16,6 @@
#ifndef QGSLAYOUTEXPORTER_H
#define QGSLAYOUTEXPORTER_H
#include <QPrinter>
#include "qgis_core.h"
#include "qgsmargins.h"
#include "qgslayoutrendercontext.h"
@ -28,6 +27,7 @@
#include <functional>
#ifndef QT_NO_PRINTER
#include <QPrinter>
class QgsLayout;
class QPainter;

View File

@ -28,7 +28,9 @@
#include "qgsvectorlayer.h"
#include <QFile>
#include <QTextStream>
#ifndef QT_NO_PRINTER
#include <QPrinter>
#endif
#include "gdal.h"
#include "cpl_conv.h"

View File

@ -29,8 +29,9 @@
#include "qgsabstractgeopdfexporter.h"
#include <QPainter>
#ifndef QT_NO_PRINTER
#include <QPrinter>
#endif
class QgsMapRendererCustomPainterJob;
class QgsAbstractGeoPdfExporter;

View File

@ -25,7 +25,9 @@
#include "qgsvectorlayer.h"
#include <QTextStream>
#include <QDomDocument>
#ifndef QT_NO_PRINTER
#include <QPrinter> //to find out screen resolution
#endif
#include <cstdlib>
#include "qgspathresolver.h"
#include "qgsproject.h"

View File

@ -25,7 +25,9 @@
#include "qgsrendercontext.h"
#include <QImage>
#include <QPainter>
#ifndef QT_NO_PRINTER
#include <QPrinter>
#endif
QgsRasterDrawer::QgsRasterDrawer( QgsRasterIterator *iterator ): mIterator( iterator )
{