summaryrefslogtreecommitdiffstats
path: root/src/charts/scatterchart/qscatterseries.cpp
diff options
context:
space:
mode:
authorMiikka Heikkinen <miikka.heikkinen@theqtcompany.com>2015-09-29 16:40:41 +0300
committerMiikka Heikkinen <miikka.heikkinen@theqtcompany.com>2015-09-30 07:44:22 +0000
commit473d62e0c63e6868bea1100e49c1ca521195fd02 (patch)
treea588ac4bbbbdaec4eec484647da7c5bc20896a67 /src/charts/scatterchart/qscatterseries.cpp
parent7557d1ea51b55c7f01c8ad8518042ee1aebe8f1d (diff)
Made OpenGL series respond to scatter color and size changes
Change-Id: I1f88f913affd72d3bf374793f9ad60a626f52645 Reviewed-by: Titta Heikkala <titta.heikkala@theqtcompany.com>
Diffstat (limited to 'src/charts/scatterchart/qscatterseries.cpp')
-rw-r--r--src/charts/scatterchart/qscatterseries.cpp25
1 files changed, 24 insertions, 1 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);
}
}