Skip to content

Commit 9709002

Browse files
author
g_j_m
committedJan 28, 2006
Replace Qt3 stuff by Qt4 stuff
Tidy up #includes git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@4761 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 6817115 commit 9709002

File tree

2 files changed

+15
-17
lines changed

2 files changed

+15
-17
lines changed
 

‎src/core/qgsmarkercatalogue.cpp

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@
1616
#include <cmath>
1717
#include <iostream>
1818

19-
#include <qpainter.h>
20-
#include <qpixmap.h>
21-
#include <qimage.h>
22-
#include <qbitmap.h>
23-
#include <qstring.h>
24-
#include <qstringlist.h>
25-
#include <qrect.h>
26-
#include <q3pointarray.h>
27-
#include <qdir.h>
19+
#include <QPen>
20+
#include <QBrush>
21+
#include <QPainter>
22+
#include <QPixmap>
23+
#include <QString>
24+
#include <QStringList>
25+
#include <QRect>
26+
#include <QPolygon>
27+
#include <QDir>
2828
#include <QPicture>
2929

3030
#include "qgsapplication.h"
@@ -145,7 +145,7 @@ QPicture QgsMarkerCatalogue::hardMarker ( QString name, int s, QPen pen, QBrush
145145
else if ( name == "diamond" )
146146
{
147147
half = (int) ( sqrt(area/2.) );
148-
Q3PointArray pa(4);
148+
QPolygon pa(4);
149149
pa.setPoint ( 0, 0, half);
150150
pa.setPoint ( 1, half, 2*half);
151151
pa.setPoint ( 2, 2*half, half);

‎src/core/qgsmarkercatalogue.h

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,12 @@
1818

1919
#include <iostream>
2020

21-
#include <qbrush.h>
22-
#include <qpen.h>
23-
#include <qpixmap.h>
24-
#include <qpicture.h>
25-
#include <qdom.h>
26-
#include <qstringlist.h>
27-
2821
class QString;
22+
class QStringList;
23+
class QPicture;
24+
class QPixmap;
25+
class QPen;
26+
class QBrush;
2927

3028
/** Catalogue of point symbols */
3129
class QgsMarkerCatalogue{

0 commit comments

Comments
 (0)