##// END OF EJS Templates
model delegate for bar series. updated examples
model delegate for bar series. updated examples

File last commit:

r161:cc2daab2560d
r161:cc2daab2560d
Show More
barchartseriesbase.h
52 lines | 1.0 KiB | text/x-c | CLexer
/ src / barchart / barchartseriesbase.h
sauimone
refactored barcharts. layout to derived classess other funtionality to base class
r126 #ifndef BARCHARTSERIESBASE_H
#define BARCHARTSERIESBASE_H
#include <QList>
#include <QAbstractItemModel>
#include "qchartseries.h"
#include "qchartglobal.h"
QTCOMMERCIALCHART_BEGIN_NAMESPACE
sauimone
model delegate for bar series. updated examples
r161 class BarGroupBase;
class BarChartModel;
sauimone
refactored barcharts. layout to derived classess other funtionality to base class
r126 // Container for series
class QTCOMMERCIALCHART_EXPORT BarChartSeriesBase : public QChartSeries
{
Q_OBJECT
protected:
BarChartSeriesBase(QObject* parent=0);
public:
// from QChartSeries
virtual QChartSeriesType type() const { return QChartSeries::SeriesTypeInvalid; }
sauimone
model delegate for bar series. updated examples
r161 // TODO: << operator for convinience
// Returns id for vector.
int addData(QList<qreal> data);
void removeData(int id);
sauimone
model prototyping for bar chart
r159
qreal min();
qreal max();
sauimone
model delegate for bar series. updated examples
r161 int countColumns(); // Count items in one series.
qreal valueAt(int series, int item);
qreal maxColumnSum();
BarChartModel& model();
signals:
void changed(int index);
sauimone
refactored barcharts. layout to derived classess other funtionality to base class
r126
public Q_SLOTS:
private:
sauimone
model delegate for bar series. updated examples
r161 BarChartModel& mModel;
sauimone
refactored barcharts. layout to derived classess other funtionality to base class
r126 BarGroupBase* mBarGroup;
sauimone
model prototyping for bar chart
r159
sauimone
refactored barcharts. layout to derived classess other funtionality to base class
r126 };
QTCOMMERCIALCHART_END_NAMESPACE
#endif // BARCHARTSERIESBASE_H