aboutsummaryrefslogtreecommitdiff
path: root/ports/qwt/build.patch
blob: 8b36bb8332ac1389236d0f33cd2cc6779a1e6795 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
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 \