vcpkg/ports/qwt/build.patch

136 lines
3.7 KiB
Diff

diff --git a/src/qwt_compass_rose.cpp b/src/qwt_compass_rose.cpp
index 8acb045c2..b7b676712 100644
--- a/src/qwt_compass_rose.cpp
+++ b/src/qwt_compass_rose.cpp
@@ -11,6 +11,7 @@
#include "qwt_point_polar.h"
#include "qwt_painter.h"
#include <qpainter.h>
+#include <QPainterPath>
static QPointF qwtIntersection(
QPointF p11, QPointF p12, QPointF p21, QPointF p22 )
diff --git a/src/qwt_dial_needle.cpp b/src/qwt_dial_needle.cpp
index 3589b011d..4f20aada1 100644
--- a/src/qwt_dial_needle.cpp
+++ b/src/qwt_dial_needle.cpp
@@ -13,6 +13,7 @@
#include "qwt_painter.h"
#include <qapplication.h>
#include <qpainter.h>
+#include <QPainterPath>
#if QT_VERSION < 0x040601
#define qFastSin(x) qSin(x)
diff --git a/src/qwt_null_paintdevice.cpp b/src/qwt_null_paintdevice.cpp
index 21b97b0ad..545804b06 100644
--- a/src/qwt_null_paintdevice.cpp
+++ b/src/qwt_null_paintdevice.cpp
@@ -10,6 +10,7 @@
#include "qwt_null_paintdevice.h"
#include <qpaintengine.h>
#include <qpixmap.h>
+#include <QPainterPath>
class QwtNullPaintDevice::PrivateData
{
diff --git a/src/qwt_painter.cpp b/src/qwt_painter.cpp
index 069e2ae42..824ddfc20 100644
--- a/src/qwt_painter.cpp
+++ b/src/qwt_painter.cpp
@@ -27,6 +27,7 @@
#include <qpaintengine.h>
#include <qapplication.h>
#include <qdesktopwidget.h>
+#include <QPainterPath>
#if QT_VERSION >= 0x050000
#include <qwindow.h>
diff --git a/src/qwt_painter_command.h b/src/qwt_painter_command.h
index 032d0348b..13db43559 100644
--- a/src/qwt_painter_command.h
+++ b/src/qwt_painter_command.h
@@ -15,8 +15,7 @@
#include <qpixmap.h>
#include <qimage.h>
#include <qpolygon.h>
-
-class QPainterPath;
+#include <QPainterPath>
/*!
QwtPainterCommand represents the attributes of a paint operation
diff --git a/src/qwt_plot_glcanvas.cpp b/src/qwt_plot_glcanvas.cpp
index 64b39b90e..414cb22c5 100644
--- a/src/qwt_plot_glcanvas.cpp
+++ b/src/qwt_plot_glcanvas.cpp
@@ -15,6 +15,7 @@
#include <qdrawutil.h>
#include <qstyle.h>
#include <qstyleoption.h>
+#include <QPainterPath>
#define FIX_GL_TRANSLATION 0
diff --git a/src/qwt_plot_glcanvas.h b/src/qwt_plot_glcanvas.h
index 82770747f..be93232c4 100644
--- a/src/qwt_plot_glcanvas.h
+++ b/src/qwt_plot_glcanvas.h
@@ -13,6 +13,7 @@
#include "qwt_global.h"
#include <qframe.h>
#include <qgl.h>
+#include <QPainterPath>
class QwtPlot;
diff --git a/src/qwt_plot_panner.cpp b/src/qwt_plot_panner.cpp
index bed4566dd..852998f01 100644
--- a/src/qwt_plot_panner.cpp
+++ b/src/qwt_plot_panner.cpp
@@ -14,6 +14,7 @@
#include <qbitmap.h>
#include <qstyle.h>
#include <qstyleoption.h>
+#include <QPainterPath>
#if QT_VERSION >= 0x050000
#if QT_VERSION < 0x050100
diff --git a/src/qwt_plot_renderer.cpp b/src/qwt_plot_renderer.cpp
index b6c83447e..a309fe290 100644
--- a/src/qwt_plot_renderer.cpp
+++ b/src/qwt_plot_renderer.cpp
@@ -26,6 +26,7 @@
#include <qfileinfo.h>
#include <qimagewriter.h>
#include <qvariant.h>
+#include <QPainterPath>
#ifndef QWT_NO_SVG
#ifdef QT_SVG_LIB
diff --git a/src/qwt_widget_overlay.cpp b/src/qwt_widget_overlay.cpp
index 79c46ce10..f64042ac8 100644
--- a/src/qwt_widget_overlay.cpp
+++ b/src/qwt_widget_overlay.cpp
@@ -13,6 +13,7 @@
#include <qpaintengine.h>
#include <qimage.h>
#include <qevent.h>
+#include <QPainterPath>
static QImage::Format qwtMaskImageFormat()
{
diff --git a/src/src.pri b/src/src.pri
index 571870361..412636d5b 100644
--- a/src/src.pri
+++ b/src/src.pri
@@ -7,7 +7,7 @@
# modify it under the terms of the Qwt License, Version 1.0
################################################################
-
+QT += gui
HEADERS += \
qwt.h \
qwt_abstract_scale_draw.h \