@@ -24,7 +24,7 @@ email : tim@linfiniti.com
24
24
#include < qgsrasterlayer.h>
25
25
26
26
#include < QPainter>
27
- #include < Q3PointArray >
27
+ #include < QPolygon >
28
28
#include < iostream>
29
29
30
30
const char * const ident =
@@ -821,7 +821,7 @@ void QgsRasterLayerProperties::on_pbnHistRefresh_clicked()
821
821
if (rasterLayer->getRasterLayerType ()
822
822
== QgsRasterLayer::PALETTE) // paletted layers have hard coded color entries
823
823
{
824
- Q3PointArray myPointArray (myLastBinWithData);
824
+ QPolygon myPointArray (myLastBinWithData);
825
825
QgsColorTable *myColorTable=rasterLayer->colorTable (1 );
826
826
#ifdef QGISDEBUG
827
827
std::cout << " Making paletted image histogram....computing band stats" << std::endl;
@@ -903,7 +903,7 @@ void QgsRasterLayerProperties::on_pbnHistRefresh_clicked()
903
903
if ( myItem->isSelected () )
904
904
{
905
905
906
- Q3PointArray myPointArray (myLastBinWithData);
906
+ QPolygon myPointArray (myLastBinWithData);
907
907
for (int myBin = 0 ; myBin <myLastBinWithData; myBin++)
908
908
{
909
909
double myBinValue = myRasterBandStats.histogramVector ->at (myBin);
@@ -1022,7 +1022,7 @@ void QgsRasterLayerProperties::on_pbnHistRefresh_clicked()
1022
1022
myPainter.setPen ( Qt::gray );
1023
1023
for (int i=0 ;i<myXDivisions;++i)
1024
1024
{
1025
- Q3PointArray myPointArray (4 );
1025
+ QPolygon myPointArray (4 );
1026
1026
myPointArray.setPoint (0 ,(i*myXDivisions)+myYGutterWidth , myImageHeight-myXGutterHeight);
1027
1027
myPointArray.setPoint (1 ,(i*myXDivisions)+myYGutterWidth , myImageHeight-(myXGutterHeight-5 ));
1028
1028
myPointArray.setPoint (2 ,(i*myXDivisions)+myYGutterWidth , myImageHeight-myXGutterHeight);
@@ -1037,7 +1037,7 @@ void QgsRasterLayerProperties::on_pbnHistRefresh_clicked()
1037
1037
for (int i=myYDivisions;i>0 ;--i)
1038
1038
{
1039
1039
1040
- Q3PointArray myPointArray (4 );
1040
+ QPolygon myPointArray (4 );
1041
1041
int myYOrigin = myImageHeight-myXGutterHeight;
1042
1042
myPointArray.setPoint (0 ,myYGutterWidth,myYOrigin-(i*myYDivisions ));
1043
1043
myPointArray.setPoint (1 ,myYGutterWidth-5 ,myYOrigin-(i*myYDivisions ));
0 commit comments