##// END OF EJS Templates
Added bar chart to test widget
Added bar chart to test widget

File last commit:

r62:d89198258a93
r63:5031f95e0f47
Show More
qchartseries.h
43 lines | 934 B | text/x-c | CLexer
Michal Klocek
Fix missing file from one of the prvious commits...
r23 #ifndef QCHARTSERIES_H
#define QCHARTSERIES_H
Tero Ahola
Renamed to QtCommercialChart
r30 #include "qchartglobal.h"
Michal Klocek
Fix missing file from one of the prvious commits...
r23 #include <QObject>
Tero Ahola
Renamed to QtCommercialChart
r30 QTCOMMERCIALCHART_BEGIN_NAMESPACE
Michal Klocek
Fix missing file from one of the prvious commits...
r23
Tero Ahola
Renamed to QtCommercialChart
r30 class QTCOMMERCIALCHART_EXPORT QChartSeries : public QObject
Michal Klocek
Fix missing file from one of the prvious commits...
r23 {
sauimone
Refactored series creation.
r62 //TODO:
//Q_OBJECT
Michal Klocek
Fix missing file from one of the prvious commits...
r23 public:
Tero Ahola
Renamed to QtCommercialChart
r30 enum QChartSeriesType {
SeriesTypeLine = 0,
// SeriesTypeArea,
sauimone
Integrating bar chart. Cleaned up old implementation. TODO: show this in test application. how?
r56 SeriesTypeBar,
Tero Ahola
Integrated draft version of pie series
r51 SeriesTypePie,
Tero Ahola
Renamed to QtCommercialChart
r30 SeriesTypeScatter
// SeriesTypeSpline
};
Michal Klocek
Fix missing file from one of the prvious commits...
r23
protected:
Michal Klocek
Revert "Integrated scatter series"...
r39 QChartSeries(QObject *parent = 0):QObject(parent){};
Michal Klocek
Fix missing file from one of the prvious commits...
r23
public:
Michal Klocek
Revert "Integrated scatter series"...
r39 virtual ~QChartSeries(){};
Michal Klocek
Fix missing file from one of the prvious commits...
r23
Tero Ahola
Refactored series creation with QChart
r61 // Factory method
sauimone
Refactored series creation.
r62 static QChartSeries* create(QChartSeriesType type, QObject* parent = 0 );
Tero Ahola
Refactored series creation with QChart
r61 // Pure virtual
Michal Klocek
Fix missing file from one of the prvious commits...
r23 virtual QChartSeriesType type() const = 0;
Michal Klocek
Revert "Integrated scatter series"...
r39
Tero Ahola
Refactored series creation with QChart
r61 virtual bool setData(QList<int> data) { return false; }
virtual bool setData(QList<qreal> data) { return false; }
virtual bool setData(QList<qreal> x, QList<qreal> y){ return false; }
Michal Klocek
Fix missing file from one of the prvious commits...
r23 };
Tero Ahola
Renamed to QtCommercialChart
r30 QTCOMMERCIALCHART_END_NAMESPACE
Michal Klocek
Fix missing file from one of the prvious commits...
r23
#endif