mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-07 00:15:48 -04:00
qt 5.13.1 does not have QPrinter header
This commit is contained in:
parent
5e849793ca
commit
8f831bb37a
@ -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)
|
||||
|
@ -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;
|
||||
|
@ -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"
|
||||
|
@ -29,8 +29,9 @@
|
||||
#include "qgsabstractgeopdfexporter.h"
|
||||
|
||||
#include <QPainter>
|
||||
#ifndef QT_NO_PRINTER
|
||||
#include <QPrinter>
|
||||
|
||||
#endif
|
||||
class QgsMapRendererCustomPainterJob;
|
||||
class QgsAbstractGeoPdfExporter;
|
||||
|
||||
|
@ -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"
|
||||
|
@ -25,7 +25,9 @@
|
||||
#include "qgsrendercontext.h"
|
||||
#include <QImage>
|
||||
#include <QPainter>
|
||||
#ifndef QT_NO_PRINTER
|
||||
#include <QPrinter>
|
||||
#endif
|
||||
|
||||
QgsRasterDrawer::QgsRasterDrawer( QgsRasterIterator *iterator ): mIterator( iterator )
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user