##// END OF EJS Templates
Make pie work better with chartwidgettest
Make pie work better with chartwidgettest

File last commit:

r139:167329998526
r163:daab1c215b03
Show More
chartdataset_p.h
36 lines | 745 B | text/x-c | CLexer
#ifndef CHARTENGINE_P_H_
#define CHARTENGINE_P_H_
#include <qchartseries.h>
#include "domain_p.h"
#include <QVector>
QTCOMMERCIALCHART_BEGIN_NAMESPACE
class ChartDataSet : public QObject
{
Q_OBJECT
public:
ChartDataSet(QObject* parent =0);
virtual ~ChartDataSet();
void addSeries(QChartSeries* series);
void addDomain(const Domain& domain);
bool nextDomain();
bool previousDomain();
void clearDomains();
const Domain& domain() const;
signals:
void seriesAdded(QChartSeries* series);
void domainChanged(const Domain& domain);
private:
QList<QChartSeries*> m_chartSeries;
QVector<Domain> m_domains;
int m_domainIndex;
};
QTCOMMERCIALCHART_END_NAMESPACE
#endif /* CHARTENGINE_P_H_ */