Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Couple more qt3 to qt4 changes
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@4775 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
g_j_m committed Jan 29, 2006
1 parent c74003a commit 7ea030f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
1 change: 0 additions & 1 deletion src/gui/qgsdelattrdialog.cpp
Expand Up @@ -18,7 +18,6 @@
#include "qgsdelattrdialog.h"
#include "qgsfield.h"
#include <q3header.h>
#include <q3listbox.h>

QgsDelAttrDialog::QgsDelAttrDialog(Q3Header* header): QgsDelAttrDialogBase()
{
Expand Down
10 changes: 5 additions & 5 deletions src/gui/qgsrasterlayerproperties.cpp
Expand Up @@ -24,7 +24,7 @@ email : tim@linfiniti.com
#include <qgsrasterlayer.h>

#include <QPainter>
#include <Q3PointArray>
#include <QPolygon>
#include <iostream>

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

Q3PointArray myPointArray(myLastBinWithData);
QPolygon myPointArray(myLastBinWithData);
for (int myBin = 0; myBin <myLastBinWithData; myBin++)
{
double myBinValue = myRasterBandStats.histogramVector->at(myBin);
Expand Down Expand Up @@ -1022,7 +1022,7 @@ void QgsRasterLayerProperties::on_pbnHistRefresh_clicked()
myPainter.setPen( Qt::gray );
for (int i=0;i<myXDivisions;++i)
{
Q3PointArray myPointArray(4);
QPolygon myPointArray(4);
myPointArray.setPoint(0,(i*myXDivisions)+myYGutterWidth , myImageHeight-myXGutterHeight);
myPointArray.setPoint(1,(i*myXDivisions)+myYGutterWidth , myImageHeight-(myXGutterHeight-5));
myPointArray.setPoint(2,(i*myXDivisions)+myYGutterWidth , myImageHeight-myXGutterHeight);
Expand All @@ -1037,7 +1037,7 @@ void QgsRasterLayerProperties::on_pbnHistRefresh_clicked()
for (int i=myYDivisions;i>0;--i)
{

Q3PointArray myPointArray(4);
QPolygon myPointArray(4);
int myYOrigin = myImageHeight-myXGutterHeight;
myPointArray.setPoint(0,myYGutterWidth,myYOrigin-(i*myYDivisions ));
myPointArray.setPoint(1,myYGutterWidth-5,myYOrigin-(i*myYDivisions ));
Expand Down

0 comments on commit 7ea030f

Please sign in to comment.