convert_qwtarray_to_qvector.diff
src/app/qgsrasterlayerproperties.cpp | ||
---|---|---|
53 | 53 | |
54 | 54 |
// QWT Charting widget |
55 | 55 |
#include <qwt_plot_canvas.h> |
56 |
#include <qwt_array.h>
|
|
56 |
#include <qvector.h>
|
|
57 | 57 |
#include <qwt_legend.h> |
58 | 58 |
#include <qwt_plot.h> |
59 | 59 |
#include <qwt_plot_curve.h> |
... | ... | |
1920 | 1920 |
mypCurve->setCurveAttribute( QwtPlotCurve::Fitted ); |
1921 | 1921 |
mypCurve->setRenderHint( QwtPlotItem::RenderAntialiased ); |
1922 | 1922 |
mypCurve->setPen( QPen( myColors.at( myIteratorInt ) ) ); |
1923 |
QwtArray<double> myX2Data;//qwtarray is just a wrapped qvector
|
|
1924 |
QwtArray<double> myY2Data;//qwtarray is just a wrapped qvector
|
|
1923 |
QVector<double> myX2Data;
|
|
1924 |
QVector<double> myY2Data;
|
|
1925 | 1925 |
for ( int myBin = 0; myBin < BINCOUNT; myBin++ ) |
1926 | 1926 |
{ |
1927 | 1927 |
int myBinValue = myRasterBandStats.histogramVector->at( myBin ); |