qxymodelmapper.h
53 lines
| 1.2 KiB
| text/x-c
|
CLexer
Marek Rosa
|
r1164 | #ifndef QXYMODELMAPPER_H | ||
#define QXYMODELMAPPER_H | ||||
#include "qchartglobal.h" | ||||
#include <QObject> | ||||
QTCOMMERCIALCHART_BEGIN_NAMESPACE | ||||
class QTCOMMERCIALCHART_EXPORT QXYModelMapper : public QObject | ||||
{ | ||||
Q_OBJECT | ||||
Marek Rosa
|
r1252 | Q_PROPERTY(int xSection READ xSection WRITE setXSection) | ||
Q_PROPERTY(int ySection READ ySection WRITE setYSection) | ||||
Tero Ahola
|
r1169 | 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
|
r1164 | |||
public: | ||||
int first() const; | ||||
void setFirst(int first); | ||||
int count() const; | ||||
void setCount(int count); | ||||
Marek Rosa
|
r1252 | protected: | ||
explicit QXYModelMapper(QObject *parent = 0); | ||||
Marek Rosa
|
r1164 | Qt::Orientation orientation() const; | ||
void setOrientation(Qt::Orientation orientation); | ||||
Marek Rosa
|
r1252 | int xSection() const; | ||
void setXSection(int xSection); | ||||
Marek Rosa
|
r1164 | |||
Marek Rosa
|
r1252 | int ySection() const; | ||
void setYSection(int ySection); | ||||
Marek Rosa
|
r1164 | |||
void reset(); | ||||
Q_SIGNALS: | ||||
void updated(); | ||||
private: | ||||
int m_first; | ||||
int m_count; | ||||
Qt::Orientation m_orientation; | ||||
Marek Rosa
|
r1252 | int m_xSection; | ||
int m_ySection; | ||||
Marek Rosa
|
r1164 | }; | ||
QTCOMMERCIALCHART_END_NAMESPACE | ||||
#endif // QXYMODELMAPPER_H | ||||