qcolorbaraxis.h
54 lines
| 1.2 KiB
| text/x-c
|
CLexer
|
r1 | #ifndef QCOLORBARAXIS_H | ||
#define QCOLORBARAXIS_H | ||||
#include <QtCharts/QAbstractAxis> | ||||
QT_CHARTS_BEGIN_NAMESPACE | ||||
class QColorBarAxisPrivate; | ||||
class QT_CHARTS_EXPORT QColorBarAxis : public QAbstractAxis | ||||
{ | ||||
Q_OBJECT | ||||
public: | ||||
|
r3 | explicit QColorBarAxis(QRectF plotArea,QLinearGradient gradient, qreal min, qreal max,QObject *parent = 0); | ||
|
r1 | ~QColorBarAxis(); | ||
protected: | ||||
QColorBarAxis(QColorBarAxisPrivate &d, QObject *parent = 0); | ||||
public: | ||||
AxisType type() const; | ||||
//range handling | ||||
|
r2 | void setMin(qreal min); | ||
|
r1 | qreal min() const; | ||
|
r2 | void setMax(qreal max); | ||
|
r1 | qreal max() const; | ||
|
r2 | void setRange(qreal min, qreal max); | ||
|
r1 | |||
//ticks handling | ||||
|
r2 | void setTickCount(int count); | ||
int tickCount() const; | ||||
void setMinorTickCount(int count); | ||||
int minorTickCount() const; | ||||
|
r1 | |||
void setLabelFormat(const QString &format); | ||||
QString labelFormat() const; | ||||
Q_SIGNALS: | ||||
void minChanged(qreal min); | ||||
void maxChanged(qreal max); | ||||
void rangeChanged(qreal min, qreal max); | ||||
|
r2 | void tickCountChanged(int tickCount); | ||
void minorTickCountChanged(int tickCount); | ||||
|
r1 | void labelFormatChanged(const QString &format); | ||
private: | ||||
Q_DECLARE_PRIVATE(QColorBarAxis) | ||||
Q_DISABLE_COPY(QColorBarAxis) | ||||
}; | ||||
QT_CHARTS_END_NAMESPACE | ||||
#endif // QCOLORBARAXIS_H | ||||