##// END OF EJS Templates
Added new model mappers for pie to QML api
Added new model mappers for pie to QML api

File last commit:

r1170:0973e1eca7c6
r1249:94a47eb3a2ef
Show More
qbarmodelmapper.h
50 lines | 969 B | text/x-c | CLexer
#ifndef QBARMODELMAPPER_H
#define QBARMODELMAPPER_H
#include "qchartglobal.h"
#include <QObject>
QTCOMMERCIALCHART_BEGIN_NAMESPACE
class QTCOMMERCIALCHART_EXPORT QBarModelMapper : public QObject
{
Q_OBJECT
public:
explicit QBarModelMapper(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 mapBarBottom() const;
void setMapBarBottom(int mapBarBottom);
int mapBarTop() const;
void setMapBarTop(int mapBarTop);
int mapCategories() const;
void setMapCategories(int mapCategories);
void reset();
Q_SIGNALS:
void updated();
private:
int m_first;
int m_count;
Qt::Orientation m_orientation;
int m_mapBarBottom;
int m_mapBarTop;
int m_mapCategories;
};
QTCOMMERCIALCHART_END_NAMESPACE
#endif // QBARMODELMAPPER_H