#include "qxyseries.h" QTCOMMERCIALCHART_BEGIN_NAMESPACE /*! \class QXYSeries \brief The QXYSeries class is a base class for line, spline and scatter series. */ /*! \fn virtual QSeriesType QXYSeries::type() const \brief Returns type of series. \sa QSeries, QSeriesType */ /*! \fn QPen QXYSeries::pen() const \brief Returns the pen used to draw points for this series. \sa setPen() */ /*! \fn void QXYSeries::pointReplaced(int index) \brief \internal \a index */ /*! \fn void QXYSeries::pointAdded(int index) \brief \internal \a index */ /*! \fn void QXYSeries::pointRemoved(int index) \brief \internal \a index */ /*! \fn void QXYSeries::updated() \brief \internal */ /*! Constructs empty series object which is a child of \a parent. When series object is added to QChartView or QChart instance ownerships is transfered. */ QXYSeries::QXYSeries(QObject* parent):QSeries(parent) { } /*! Destroys the object. Series added to QChartView or QChart instances are owned by those, and are deleted when mentioned object are destroyed. */ QXYSeries::~QXYSeries() { } /*! Adds data point \a x \a y to the series. Points are connected with lines on the chart. */ void QXYSeries::add(qreal x,qreal y) { Q_ASSERT(m_x.size() == m_y.size()); m_x<