##// END OF EJS Templates
Added theme named 'default'
Added theme named 'default'

File last commit:

r71:1f789ed92d7b
r81:dd8b8cc48a43
Show More
qchartseries.h
47 lines | 1.1 KiB | 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>
sauimone
Improved bar chart series
r71 #include <QAbstractItemModel>
Michal Klocek
Fix missing file from one of the prvious commits...
r23
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
Improved bar chart series
r71 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; }
sauimone
Improved bar chart series
r71
// Prototype for data model. TODO: remove the other setData methods and use something like this for now?
virtual bool setData(QAbstractItemModel* model) { 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