From 803054c4fed802dfb4b742b74ec3a7ffcaa955e9 2012-06-18 13:06:43 From: Tero Ahola Date: 2012-06-18 13:06:43 Subject: [PATCH] Removed unnecessary bar width signal from QBarSeries --- diff --git a/src/barchart/qbarseries.cpp b/src/barchart/qbarseries.cpp index ad849b0..1fa7f7c 100644 --- a/src/barchart/qbarseries.cpp +++ b/src/barchart/qbarseries.cpp @@ -81,11 +81,6 @@ QTCOMMERCIALCHART_BEGIN_NAMESPACE Parameter \a barset is the pointer of barset, where hover happened. Parameter \a status is true, if mouse entered on top of series, false if mouse left from top of series. */ -/*! - \fn void QBarSeries::barWidthChanged(qreal) - - This signal is emitted when bar width has been changed to \a width. -*/ /*! \fn void QBarSeries::countChanged() @@ -157,7 +152,6 @@ void QBarSeries::setBarWidth(qreal width) { Q_D(QBarSeries); d->setBarWidth(width); - emit barWidthChanged(width); } qreal QBarSeries::barWidth() const diff --git a/src/barchart/qbarseries.h b/src/barchart/qbarseries.h index 4aaa154..c5ddb40 100644 --- a/src/barchart/qbarseries.h +++ b/src/barchart/qbarseries.h @@ -33,7 +33,7 @@ class QBarSeriesPrivate; class QTCOMMERCIALCHART_EXPORT QBarSeries : public QAbstractSeries { Q_OBJECT - Q_PROPERTY(qreal barWidth READ barWidth WRITE setBarWidth NOTIFY barWidthChanged) + Q_PROPERTY(qreal barWidth READ barWidth WRITE setBarWidth) Q_PROPERTY(int count READ count NOTIFY countChanged) Q_PROPERTY(bool labelsVisible READ isLabelsVisible WRITE setLabelsVisible NOTIFY labelsVisibleChanged) @@ -63,7 +63,6 @@ protected: Q_SIGNALS: void clicked(QBarSet *barset, int index); void hovered(QBarSet* barset, bool status); - void barWidthChanged(qreal width); void countChanged(); void labelsVisibleChanged(); diff --git a/tests/qmlchartproperties/qml/qmlchartproperties/BarEditor.qml b/tests/qmlchartproperties/qml/qmlchartproperties/BarEditor.qml index 92cc943..7214fba 100644 --- a/tests/qmlchartproperties/qml/qmlchartproperties/BarEditor.qml +++ b/tests/qmlchartproperties/qml/qmlchartproperties/BarEditor.qml @@ -42,7 +42,6 @@ Flow { target: null onNameChanged: console.log("series.onNameChanged: " + series.name); onVisibleChanged: console.log("series.onVisibleChanged: " + series.visible); - onBarWidthChanged: console.log("series.onBardWidthChanged: " + width) onLabelsVisibleChanged: console.log("series.onLabelsVisibleChanged: " + series.labelsVisible); onCountChanged: console.log("series.onCountChanged: " + count); }