Skip to content

Commit e51f74e

Browse files
author
g_j_m
committedJan 29, 2006
Couple more qt3 to qt4 changes
git-svn-id: http://svn.osgeo.org/qgis/trunk@4775 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 8949222 commit e51f74e

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed
 

‎src/gui/qgsdelattrdialog.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
#include "qgsdelattrdialog.h"
1919
#include "qgsfield.h"
2020
#include <q3header.h>
21-
#include <q3listbox.h>
2221

2322
QgsDelAttrDialog::QgsDelAttrDialog(Q3Header* header): QgsDelAttrDialogBase()
2423
{

‎src/gui/qgsrasterlayerproperties.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ email : tim@linfiniti.com
2424
#include <qgsrasterlayer.h>
2525

2626
#include <QPainter>
27-
#include <Q3PointArray>
27+
#include <QPolygon>
2828
#include <iostream>
2929

3030
const char * const ident =
@@ -821,7 +821,7 @@ void QgsRasterLayerProperties::on_pbnHistRefresh_clicked()
821821
if (rasterLayer->getRasterLayerType()
822822
== QgsRasterLayer::PALETTE) //paletted layers have hard coded color entries
823823
{
824-
Q3PointArray myPointArray(myLastBinWithData);
824+
QPolygon myPointArray(myLastBinWithData);
825825
QgsColorTable *myColorTable=rasterLayer->colorTable(1);
826826
#ifdef QGISDEBUG
827827
std::cout << "Making paletted image histogram....computing band stats" << std::endl;
@@ -903,7 +903,7 @@ void QgsRasterLayerProperties::on_pbnHistRefresh_clicked()
903903
if ( myItem->isSelected() )
904904
{
905905

906-
Q3PointArray myPointArray(myLastBinWithData);
906+
QPolygon myPointArray(myLastBinWithData);
907907
for (int myBin = 0; myBin <myLastBinWithData; myBin++)
908908
{
909909
double myBinValue = myRasterBandStats.histogramVector->at(myBin);
@@ -1022,7 +1022,7 @@ void QgsRasterLayerProperties::on_pbnHistRefresh_clicked()
10221022
myPainter.setPen( Qt::gray );
10231023
for (int i=0;i<myXDivisions;++i)
10241024
{
1025-
Q3PointArray myPointArray(4);
1025+
QPolygon myPointArray(4);
10261026
myPointArray.setPoint(0,(i*myXDivisions)+myYGutterWidth , myImageHeight-myXGutterHeight);
10271027
myPointArray.setPoint(1,(i*myXDivisions)+myYGutterWidth , myImageHeight-(myXGutterHeight-5));
10281028
myPointArray.setPoint(2,(i*myXDivisions)+myYGutterWidth , myImageHeight-myXGutterHeight);
@@ -1037,7 +1037,7 @@ void QgsRasterLayerProperties::on_pbnHistRefresh_clicked()
10371037
for (int i=myYDivisions;i>0;--i)
10381038
{
10391039

1040-
Q3PointArray myPointArray(4);
1040+
QPolygon myPointArray(4);
10411041
int myYOrigin = myImageHeight-myXGutterHeight;
10421042
myPointArray.setPoint(0,myYGutterWidth,myYOrigin-(i*myYDivisions ));
10431043
myPointArray.setPoint(1,myYGutterWidth-5,myYOrigin-(i*myYDivisions ));

0 commit comments

Comments
 (0)
Please sign in to comment.