##// END OF EJS Templates
Removed unnecessary bar width signal from QBarSeries
Tero Ahola -
r1487:803054c4fed8
parent child
Show More
@@ -81,11 +81,6 QTCOMMERCIALCHART_BEGIN_NAMESPACE
81 Parameter \a barset is the pointer of barset, where hover happened.
81 Parameter \a barset is the pointer of barset, where hover happened.
82 Parameter \a status is true, if mouse entered on top of series, false if mouse left from top of series.
82 Parameter \a status is true, if mouse entered on top of series, false if mouse left from top of series.
83 */
83 */
84 /*!
85 \fn void QBarSeries::barWidthChanged(qreal)
86
87 This signal is emitted when bar width has been changed to \a width.
88 */
89
84
90 /*!
85 /*!
91 \fn void QBarSeries::countChanged()
86 \fn void QBarSeries::countChanged()
@@ -157,7 +152,6 void QBarSeries::setBarWidth(qreal width)
157 {
152 {
158 Q_D(QBarSeries);
153 Q_D(QBarSeries);
159 d->setBarWidth(width);
154 d->setBarWidth(width);
160 emit barWidthChanged(width);
161 }
155 }
162
156
163 qreal QBarSeries::barWidth() const
157 qreal QBarSeries::barWidth() const
@@ -33,7 +33,7 class QBarSeriesPrivate;
33 class QTCOMMERCIALCHART_EXPORT QBarSeries : public QAbstractSeries
33 class QTCOMMERCIALCHART_EXPORT QBarSeries : public QAbstractSeries
34 {
34 {
35 Q_OBJECT
35 Q_OBJECT
36 Q_PROPERTY(qreal barWidth READ barWidth WRITE setBarWidth NOTIFY barWidthChanged)
36 Q_PROPERTY(qreal barWidth READ barWidth WRITE setBarWidth)
37 Q_PROPERTY(int count READ count NOTIFY countChanged)
37 Q_PROPERTY(int count READ count NOTIFY countChanged)
38 Q_PROPERTY(bool labelsVisible READ isLabelsVisible WRITE setLabelsVisible NOTIFY labelsVisibleChanged)
38 Q_PROPERTY(bool labelsVisible READ isLabelsVisible WRITE setLabelsVisible NOTIFY labelsVisibleChanged)
39
39
@@ -63,7 +63,6 protected:
63 Q_SIGNALS:
63 Q_SIGNALS:
64 void clicked(QBarSet *barset, int index);
64 void clicked(QBarSet *barset, int index);
65 void hovered(QBarSet* barset, bool status);
65 void hovered(QBarSet* barset, bool status);
66 void barWidthChanged(qreal width);
67 void countChanged();
66 void countChanged();
68 void labelsVisibleChanged();
67 void labelsVisibleChanged();
69
68
@@ -42,7 +42,6 Flow {
42 target: null
42 target: null
43 onNameChanged: console.log("series.onNameChanged: " + series.name);
43 onNameChanged: console.log("series.onNameChanged: " + series.name);
44 onVisibleChanged: console.log("series.onVisibleChanged: " + series.visible);
44 onVisibleChanged: console.log("series.onVisibleChanged: " + series.visible);
45 onBarWidthChanged: console.log("series.onBardWidthChanged: " + width)
46 onLabelsVisibleChanged: console.log("series.onLabelsVisibleChanged: " + series.labelsVisible);
45 onLabelsVisibleChanged: console.log("series.onLabelsVisibleChanged: " + series.labelsVisible);
47 onCountChanged: console.log("series.onCountChanged: " + count);
46 onCountChanged: console.log("series.onCountChanged: " + count);
48 }
47 }
General Comments 0
You need to be logged in to leave comments. Login now