##// END OF EJS Templates
Added missing properties and NOTIFY's to logvalue and value axes
Marek Rosa -
r2319:0473979ecc50
parent child
Show More
@@ -171,6 +171,7 void QLogValueAxis::setLabelFormat(const QString &format)
171 171 {
172 172 Q_D(QLogValueAxis);
173 173 d->m_format = format;
174 emit labelFormatChanged(format);
174 175 }
175 176
176 177 QString QLogValueAxis::labelFormat() const
@@ -34,7 +34,8 class QTCOMMERCIALCHART_EXPORT QLogValueAxis : public QAbstractAxis
34 34 Q_OBJECT
35 35 Q_PROPERTY(qreal min READ min WRITE setMin NOTIFY minChanged)
36 36 Q_PROPERTY(qreal max READ max WRITE setMax NOTIFY maxChanged)
37 Q_PROPERTY(QString labelFormat READ labelFormat WRITE setLabelFormat)
37 Q_PROPERTY(QString labelFormat READ labelFormat WRITE setLabelFormat NOTIFY labelFormatChanged)
38 Q_PROPERTY(qreal base READ base WRITE setBase NOTIFY baseChanged)
38 39
39 40 public:
40 41 explicit QLogValueAxis(QObject *parent = 0);
@@ -63,6 +64,7 Q_SIGNALS:
63 64 void minChanged(qreal min);
64 65 void maxChanged(qreal max);
65 66 void rangeChanged(qreal min, qreal max);
67 void labelFormatChanged(const QString &format);
66 68 void baseChanged(qreal base);
67 69
68 70 private:
@@ -265,6 +265,7 void QValueAxis::setLabelFormat(const QString &format)
265 265 {
266 266 Q_D(QValueAxis);
267 267 d->m_format = format;
268 emit labelFormatChanged(format);
268 269 }
269 270
270 271 QString QValueAxis::labelFormat() const
@@ -34,7 +34,7 class QTCOMMERCIALCHART_EXPORT QValueAxis : public QAbstractAxis
34 34 Q_PROPERTY(bool niceNumbersEnabled READ niceNumbersEnabled WRITE setNiceNumbersEnabled)
35 35 Q_PROPERTY(qreal min READ min WRITE setMin NOTIFY minChanged)
36 36 Q_PROPERTY(qreal max READ max WRITE setMax NOTIFY maxChanged)
37 Q_PROPERTY(QString labelFormat READ labelFormat WRITE setLabelFormat)
37 Q_PROPERTY(QString labelFormat READ labelFormat WRITE setLabelFormat NOTIFY labelFormatChanged)
38 38
39 39 public:
40 40 explicit QValueAxis(QObject *parent = 0);
@@ -72,6 +72,7 Q_SIGNALS:
72 72 void maxChanged(qreal max);
73 73 void rangeChanged(qreal min, qreal max);
74 74 void tickCountChanged(int tickCount);
75 void labelFormatChanged(const QString &format);
75 76
76 77 private:
77 78 Q_DECLARE_PRIVATE(QValueAxis)
General Comments 0
You need to be logged in to leave comments. Login now