##// END OF EJS Templates
Removed usage of model in QML pie example
Removed usage of model in QML pie example

File last commit:

r1170:0973e1eca7c6
r1189:88d7235253d9
Show More
qbarmodelmapper.h
50 lines | 969 B | text/x-c | CLexer
Marek Rosa
BarSeries Model mapper added
r1170 #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