##// END OF EJS Templates
git acrobatics
git acrobatics

File last commit:

r62:d89198258a93
r84:64dd93b1af28
Show More
qxychartseries.h
42 lines | 934 B | text/x-c | CLexer
#ifndef QXYSERIES_H_
#define QXYSERIES_H_
#include "qchartglobal.h"
#include "qchartseries.h"
#include <QDebug>
#include <QColor>
QTCOMMERCIALCHART_BEGIN_NAMESPACE
class QTCOMMERCIALCHART_EXPORT QXYChartSeries : public QChartSeries
{
//TODO:
// Q_OBJECT
private:
QXYChartSeries(QObject* parent=0);
public:
virtual ~QXYChartSeries();
//implemented from QChartSeries
static QXYChartSeries* create(QObject* parent=0);
virtual QChartSeriesType type() const { return QChartSeries::SeriesTypeLine;}
void add(qreal x, qreal y);
void clear();
void setColor(const QColor& color);
const QColor& color() const { return m_color;}
int count() const;
qreal x(int pos) const;
qreal y(int pos) const;
friend QDebug operator<< (QDebug d, const QXYChartSeries series);
private:
QColor m_color;
QList<qreal> m_x;
QList<qreal> m_y;
};
QTCOMMERCIALCHART_END_NAMESPACE
#endif