summaryrefslogtreecommitdiffstats
path: root/src/charts/scatterchart
diff options
context:
space:
mode:
Diffstat (limited to 'src/charts/scatterchart')
-rw-r--r--src/charts/scatterchart/qscatterseries.cpp25
-rw-r--r--src/charts/scatterchart/qscatterseries.h6
2 files changed, 28 insertions, 3 deletions
diff --git a/src/charts/scatterchart/qscatterseries.cpp b/src/charts/scatterchart/qscatterseries.cpp
index 25e685cc..ca643a6b 100644
--- a/src/charts/scatterchart/qscatterseries.cpp
+++ b/src/charts/scatterchart/qscatterseries.cpp
@@ -125,13 +125,17 @@
\fn void QScatterSeries::colorChanged(QColor color)
Signal is emitted when the fill (brush) color has changed to \a color.
*/
+/*!
+ \qmlsignal ScatterSeries::onColorChanged(color color)
+ Signal is emitted when the fill (brush) color has changed to \a color.
+*/
/*!
\fn void QScatterSeries::borderColorChanged(QColor color)
Signal is emitted when the line (pen) color has changed to \a color.
*/
/*!
- \qmlsignal ScatterSeries::borderColorChanged(color color)
+ \qmlsignal ScatterSeries::onBorderColorChanged(color color)
Signal is emitted when the line (pen) color has changed to \a color.
*/
@@ -141,6 +145,23 @@
\sa QAbstractSeries, SeriesType
*/
+/*!
+ \fn void QScatterSeries::markerShapeChanged(MarkerShape shape)
+ Signal is emitted when the marker shape has changed to \a shape.
+*/
+/*!
+ \qmlsignal ScatterSeries::onMarkerShapeChanged(MarkerShape shape)
+ Signal is emitted when the marker shape has changed to \a shape.
+*/
+/*!
+ \fn void QScatterSeries::markerSizeChanged(qreal size)
+ Signal is emitted when the marker size has changed to \a size.
+*/
+/*!
+ \qmlsignal ScatterSeries::onMarkerSizeChanged(real size)
+ Signal is emitted when the marker size has changed to \a size.
+*/
+
QT_CHARTS_BEGIN_NAMESPACE
/*!
@@ -251,6 +272,7 @@ void QScatterSeries::setMarkerShape(MarkerShape shape)
if (d->m_shape != shape) {
d->m_shape = shape;
emit d->updated();
+ emit markerShapeChanged(shape);
}
}
@@ -267,6 +289,7 @@ void QScatterSeries::setMarkerSize(qreal size)
if (!qFuzzyCompare(d->m_size, size)) {
d->m_size = size;
emit d->updated();
+ emit markerSizeChanged(size);
}
}
diff --git a/src/charts/scatterchart/qscatterseries.h b/src/charts/scatterchart/qscatterseries.h
index ca901468..57708809 100644
--- a/src/charts/scatterchart/qscatterseries.h
+++ b/src/charts/scatterchart/qscatterseries.h
@@ -31,8 +31,8 @@ class QT_CHARTS_EXPORT QScatterSeries : public QXYSeries
Q_OBJECT
Q_PROPERTY(QColor color READ color WRITE setColor NOTIFY colorChanged)
Q_PROPERTY(QColor borderColor READ borderColor WRITE setBorderColor NOTIFY borderColorChanged)
- Q_PROPERTY(MarkerShape markerShape READ markerShape WRITE setMarkerShape)
- Q_PROPERTY(qreal markerSize READ markerSize WRITE setMarkerSize)
+ Q_PROPERTY(MarkerShape markerShape READ markerShape WRITE setMarkerShape NOTIFY markerShapeChanged)
+ Q_PROPERTY(qreal markerSize READ markerSize WRITE setMarkerSize NOTIFY markerSizeChanged)
Q_PROPERTY(QBrush brush READ brush WRITE setBrush)
Q_ENUMS(MarkerShape)
@@ -61,6 +61,8 @@ public:
Q_SIGNALS:
void colorChanged(QColor color);
void borderColorChanged(QColor color);
+ void markerShapeChanged(MarkerShape shape);
+ void markerSizeChanged(qreal size);
private:
Q_DECLARE_PRIVATE(QScatterSeries)