##// END OF EJS Templates
Refactored series creation.
Refactored series creation.

File last commit:

r62:d89198258a93
r62:d89198258a93
Show More
barchartseries.h
39 lines | 842 B | text/x-c | CLexer
sauimone
Integrating bar chart. Cleaned up old implementation. TODO: show this in test application. how?
r56 #ifndef BARCHARTSERIES_H
#define BARCHARTSERIES_H
#include <QList>
#include "qchartseries.h"
#include "qchartglobal.h"
QTCOMMERCIALCHART_BEGIN_NAMESPACE
// Container for series
class QTCOMMERCIALCHART_EXPORT BarChartSeries : public QChartSeries
{
sauimone
Refactored series creation.
r62 // TODO:
// Q_OBJECT
sauimone
Integrating bar chart. Cleaned up old implementation. TODO: show this in test application. how?
r56 public:
sauimone
Refactored series creation.
r62 BarChartSeries(QObject* parent=0);
sauimone
Integrating bar chart. Cleaned up old implementation. TODO: show this in test application. how?
r56
// from QChartSeries
virtual QChartSeriesType type() const { return QChartSeries::SeriesTypeBar; }
sauimone
Refactored series creation.
r62 virtual bool setData(QList<int> data);
virtual bool setData(QList<qreal> data) {return false;}
virtual bool setData(QList<qreal> x, QList<qreal> y) {return false;}
sauimone
Integrating bar chart. Cleaned up old implementation. TODO: show this in test application. how?
r56 // Methods to find out minimum and maximum values of data
int min();
int max();
int count();
int valueAt(int i);
private:
QList<int> mData;
};
QTCOMMERCIALCHART_END_NAMESPACE
#endif // BARCHARTSERIES_H