##// END OF EJS Templates
bar chart layout fixing
bar chart layout fixing

File last commit:

r94:6732dc48e5e9
r99:f2e3978c70a1
Show More
qchartseries.h
48 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,
sauimone
added stacked bar chart
r94 SeriesTypeStackedBar,
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