##// END OF EJS Templates
cleaned crap from barseries private headers. Added missing license texts
cleaned crap from barseries private headers. Added missing license texts

File last commit:

r1169:afaf49bc7dc0
r1248:5e60d9ed9e00
Show More
qxymodelmapper.h
52 lines | 1.1 KiB | text/x-c | CLexer
Marek Rosa
Mapper class added for xyseries and pieseries. Model support commented out for barseries for now.
r1164 #ifndef QXYMODELMAPPER_H
#define QXYMODELMAPPER_H
#include "qchartglobal.h"
#include <QObject>
QTCOMMERCIALCHART_BEGIN_NAMESPACE
class QTCOMMERCIALCHART_EXPORT QXYModelMapper : public QObject
{
Q_OBJECT
Tero Ahola
Now using only one declarative model
r1169 Q_PROPERTY(int mapX READ mapX WRITE setMapX)
Q_PROPERTY(int mapY READ mapY WRITE setMapY)
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 QXYModelMapper(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 mapX() const;
void setMapX(int mapX);
int mapY() const;
void setMapY(int mapY);
void reset();
Q_SIGNALS:
void updated();
private:
int m_first;
int m_count;
Qt::Orientation m_orientation;
int m_mapX;
int m_mapY;
};
QTCOMMERCIALCHART_END_NAMESPACE
#endif // QXYMODELMAPPER_H