##// END OF EJS Templates
Mapper class added for xyseries and pieseries. Model support commented out for barseries for now.
Mapper class added for xyseries and pieseries. Model support commented out for barseries for now.

File last commit:

r1164:9203960160af
r1164:9203960160af
Show More
qpiemodelmapper.h
46 lines | 854 B | text/x-c | CLexer
#ifndef QPIEMODELMAPPER_H
#define QPIEMODELMAPPER_H
#include "qchartglobal.h"
#include <QObject>
QTCOMMERCIALCHART_BEGIN_NAMESPACE
class QTCOMMERCIALCHART_EXPORT QPieModelMapper : public QObject
{
Q_OBJECT
public:
explicit QPieModelMapper(QObject *parent = 0);
int first() const;
void setFirst(int first);
int count() const;
void setCount(int count);
Qt::Orientation orientation() const;
void setOrientation(Qt::Orientation orientation);
int mapValues() const;
void setMapValues(int mapValues);
int mapLabels() const;
void setMapLabels(int mapLabels);
void reset();
Q_SIGNALS:
void updated();
private:
int m_first;
int m_count;
Qt::Orientation m_orientation;
int m_mapValues;
int m_mapLabels;
};
QTCOMMERCIALCHART_END_NAMESPACE
#endif // QPIEMODELMAPPER_H