Changes committed to git://git.pcp.io/brolley/pcp qt
Dave Brolley (1):
pmchart(1): Change in data structures for chart data.
src/pmchart/groupcontrol.cpp | 22 ++++++--------
src/pmchart/groupcontrol.h | 4 +-
src/pmchart/sampling.cpp | 64
+++++++++++++++++++++++--------------------
src/pmchart/sampling.h | 8 ++---
4 files changed, 50 insertions(+), 48 deletions(-)
Details ...
commit 9bd446832035900281457b89ad2b5b2caddff8f6
Author: Dave Brolley <brolley@xxxxxxxxxx>
Date: Thu Aug 11 14:30:36 2016 -0400
pmchart(1): Change in data structures for chart data.
QwtPlotCurve::setRawSamples is deprecated and we needed to
switch to another method for setting the plot data. This suggested
switching the plot data from array of double to a vector of something.
The initial idea was to switch the data to QVector<double> and to use
QwtPlotCurve::setSamples( const QVector<double> &xData,
const QVector<double> &yData ). However it looks like this
method is also on the way out. The final implementation keeps
the data as QVector<double> and constructs a QVector<QPointF>
so that QwtPlotCurve::setSamples( const QVector<QPointF> &samples )
can be used.
|