Skip to content
Permalink
Browse files

convert QwtArray usage to QVector usage. Change required for qwt 6.0.…

…0 compatibility.
  • Loading branch information
Thomas Dziedzic
Thomas Dziedzic committed Jul 15, 2011
1 parent f49d225 commit e0e21f14da8370433f9feed51dde20e606cd7f01
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/app/qgsrasterlayerproperties.cpp
@@ -50,10 +50,10 @@
#include <QList>
#include <QSettings>
#include <QMouseEvent>
#include <QVector>

// QWT Charting widget
#include <qwt_plot_canvas.h>
#include <qwt_array.h>
#include <qwt_legend.h>
#include <qwt_plot.h>
#include <qwt_plot_curve.h>
@@ -1920,8 +1920,8 @@ void QgsRasterLayerProperties::refreshHistogram()
mypCurve->setCurveAttribute( QwtPlotCurve::Fitted );
mypCurve->setRenderHint( QwtPlotItem::RenderAntialiased );
mypCurve->setPen( QPen( myColors.at( myIteratorInt ) ) );
QwtArray<double> myX2Data;//qwtarray is just a wrapped qvector
QwtArray<double> myY2Data;//qwtarray is just a wrapped qvector
QVector<double> myX2Data;
QVector<double> myY2Data;
for ( int myBin = 0; myBin < BINCOUNT; myBin++ )
{
int myBinValue = myRasterBandStats.histogramVector->at( myBin );

0 comments on commit e0e21f1

Please sign in to comment.
You can’t perform that action at this time.