##// END OF EJS Templates
Color themes now enabled for scatter, pie and line series.
Color themes now enabled for scatter, pie and line series.

File last commit:

r62:d89198258a93
r75:cdad8ac737ab
Show More
qxychartseries.h
42 lines | 934 B | text/x-c | CLexer
Michal Klocek
adds missing files form previous commit
r12 #ifndef QXYSERIES_H_
#define QXYSERIES_H_
Tero Ahola
Started to refactor the API to allow integrating different plot types
r19
Tero Ahola
Renamed to QtCommercialChart
r30 #include "qchartglobal.h"
Michal Klocek
Refactor current draft to fit int current design specs...
r21 #include "qchartseries.h"
Michal Klocek
adds missing files form previous commit
r12 #include <QDebug>
#include <QColor>
Tero Ahola
Renamed to QtCommercialChart
r30 QTCOMMERCIALCHART_BEGIN_NAMESPACE
Michal Klocek
adds missing files form previous commit
r12
Tero Ahola
Renamed to QtCommercialChart
r30 class QTCOMMERCIALCHART_EXPORT QXYChartSeries : public QChartSeries
Michal Klocek
adds missing files form previous commit
r12 {
sauimone
Refactored series creation.
r62 //TODO:
// Q_OBJECT
Michal Klocek
Refactor current draft to fit int current design specs...
r21 private:
QXYChartSeries(QObject* parent=0);
Michal Klocek
adds missing files form previous commit
r12 public:
Michal Klocek
Refactor current draft to fit int current design specs...
r21 virtual ~QXYChartSeries();
//implemented from QChartSeries
static QXYChartSeries* create(QObject* parent=0);
Tero Ahola
Renamed to QtCommercialChart
r30 virtual QChartSeriesType type() const { return QChartSeries::SeriesTypeLine;}
Michal Klocek
Refactor current draft to fit int current design specs...
r21
Michal Klocek
adds missing files form previous commit
r12 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;
Michal Klocek
Refactor current draft to fit int current design specs...
r21 friend QDebug operator<< (QDebug d, const QXYChartSeries series);
Michal Klocek
adds missing files form previous commit
r12
private:
QColor m_color;
QList<qreal> m_x;
QList<qreal> m_y;
};
Tero Ahola
Renamed to QtCommercialChart
r30 QTCOMMERCIALCHART_END_NAMESPACE
Tero Ahola
Started to refactor the API to allow integrating different plot types
r19
Michal Klocek
adds missing files form previous commit
r12 #endif