##// END OF EJS Templates
Use signals from pieseries, visible hover and exploding slices
Use signals from pieseries, visible hover and exploding slices

File last commit:

r156:68a8d6592838
r157:036a0ec8efe0
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 {
Tero Ahola
Proof-of-concept for QML api...
r120 SeriesTypeInvalid = -1,
SeriesTypeLine,
Tero Ahola
Renamed to QtCommercialChart
r30 // 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,
sauimone
percent bar chart
r101 SeriesTypePercentBar,
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 // 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 the test app
r110 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?
Tero Ahola
Refactored the test app
r110 virtual bool setData(QAbstractItemModel* /*model*/) { return false; }
sauimone
Improved bar chart series
r71
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