##// END OF EJS Templates
correct x-positioning for barcharts
correct x-positioning for barcharts

File last commit:

r1169:afaf49bc7dc0
r1228:0d57f24390a8
Show More
qpiemodelmapper.h
53 lines | 1.2 KiB | text/x-c | CLexer
Marek Rosa
Mapper class added for xyseries and pieseries. Model support commented out for barseries for now.
r1164 #ifndef QPIEMODELMAPPER_H
#define QPIEMODELMAPPER_H
#include "qchartglobal.h"
#include <QObject>
QTCOMMERCIALCHART_BEGIN_NAMESPACE
class QTCOMMERCIALCHART_EXPORT QPieModelMapper : public QObject
{
Q_OBJECT
Tero Ahola
Now using only one declarative model
r1169 Q_PROPERTY(int mapValues READ mapValues WRITE setMapValues)
Q_PROPERTY(int mapLabels READ mapLabels WRITE setMapLabels)
Q_PROPERTY(int first READ first WRITE setFirst)
Q_PROPERTY(int count READ count WRITE setCount)
Q_PROPERTY(Qt::Orientation orientation READ orientation WRITE setOrientation)
Q_ENUMS(Qt::Orientation)
Marek Rosa
Mapper class added for xyseries and pieseries. Model support commented out for barseries for now.
r1164 public:
explicit QPieModelMapper(QObject *parent = 0);
Tero Ahola
Now using only one declarative model
r1169
Marek Rosa
Mapper class added for xyseries and pieseries. Model support commented out for barseries for now.
r1164 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