diff options
author | Leena Miettinen <riitta-leena.miettinen@qt.io> | 2016-12-22 15:36:12 +0100 |
---|---|---|
committer | Jani Heikkinen <jani.heikkinen@qt.io> | 2017-01-05 05:46:01 +0000 |
commit | 662ca0d04a5a3f2d38df5fd90c3470e84cbd5292 (patch) | |
tree | 834fe87782f667cf402c7fc8b08b6675428b6c76 | |
parent | a9f99c07082399d792bd92fd435a503fbc1f875f (diff) |
Doc: Document QML signals, not signal handlers (AreaSeries)
Remove docs for QML signals that are emitted when properties change.
For the remaining signals, mention the signal handler in the signal
description.
Use the QML type "point" instead of "QPointF" as the type value.
Change-Id: Ifa26d73573bc0640de09eeeb3e9049197516bcdd
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
-rw-r--r-- | src/charts/areachart/qareaseries.cpp | 60 |
1 files changed, 23 insertions, 37 deletions
diff --git a/src/charts/areachart/qareaseries.cpp b/src/charts/areachart/qareaseries.cpp index c1e5bac6..36977bc9 100644 --- a/src/charts/areachart/qareaseries.cpp +++ b/src/charts/areachart/qareaseries.cpp @@ -151,19 +151,11 @@ QT_CHARTS_BEGIN_NAMESPACE \fn void QAreaSeries::colorChanged(QColor color) \brief This signal is emitted when the fill (brush) color changes to \a color. */ -/*! - \qmlsignal AreaSeries::onColorChanged(color color) - This signal is emitted when the fill (brush) color changes to \a color. -*/ /*! \fn void QAreaSeries::borderColorChanged(QColor color) \brief This signal is emitted when the line (pen) color changes to \a color. */ -/*! - \qmlsignal AreaSeries::onBorderColorChanged(color color) - This signal is emitted when the line (pen) color changes to \a color. -*/ /*! \fn void QAreaSeries::clicked(const QPointF& point) @@ -172,10 +164,13 @@ QT_CHARTS_BEGIN_NAMESPACE \sa pressed, released, doubleClicked */ /*! - \qmlsignal AreaSeries::onClicked(QPointF point) + \qmlsignal AreaSeries::clicked(point point) This signal is emitted when the user triggers a press on \a point by clicking it in an area chart. - \sa onPressed, onReleased, onDoubleClicked + + The corresponding signal handler is \c {onClicked}. + + \sa pressed, released, doubleClicked */ /*! @@ -185,10 +180,12 @@ QT_CHARTS_BEGIN_NAMESPACE the cursor hovers over the series and turns \e false when it moves away from the series. */ /*! - \qmlsignal AreaSeries::onHovered(point point, bool state) + \qmlsignal AreaSeries::hovered(point point, bool state) This signal is emitted when the user hovers the mouse cursor over a series or moves it away from the series. \a point shows the origin (coordinate) of the hover event. \a state is \c true when the cursor hovers over the series and turns \e false when it moves away from the series. + + The corresponding signal handler is \c {onHovered}. */ /*! @@ -198,9 +195,12 @@ QT_CHARTS_BEGIN_NAMESPACE \sa clicked, released, doubleClicked */ /*! - \qmlsignal AreaSeries::onPressed(QPointF point) + \qmlsignal AreaSeries::pressed(point point) This signal is emitted when the user presses the point specified by \a point in an area chart. - \sa onClicked, onReleased, onDoubleClicked + + The corresponding signal handler is \c {onPressed}. + + \sa clicked, released, doubleClicked */ /*! @@ -210,10 +210,13 @@ QT_CHARTS_BEGIN_NAMESPACE \sa pressed, clicked, doubleClicked */ /*! - \qmlsignal AreaSeries::onReleased(QPointF point) + \qmlsignal AreaSeries::released(point point) This signal is emitted when the user releases a press that was triggered on \a point in an area chart. - \sa onPressed, onClicked, onDoubleClicked + + The corresponding signal handler is \c {onReleased}. + + \sa pressed, clicked, doubleClicked */ /*! @@ -223,10 +226,13 @@ QT_CHARTS_BEGIN_NAMESPACE \sa pressed, released, clicked */ /*! - \qmlsignal AreaSeries::onDoubleClicked(QPointF point) + \qmlsignal AreaSeries::doubleClicked(point point) This signal is emitted when the user triggers the first press in an area chart by doubleclicking \a point. - \sa onPressed, onReleased, onClicked + + The corresponding signal handler is \c {onDoubleClicked}. + + \sa pressed, released, clicked */ /*! @@ -273,10 +279,6 @@ QT_CHARTS_BEGIN_NAMESPACE \fn void QAreaSeries::pointLabelsFormatChanged(const QString &format) This signal is emitted when the \a format of data point labels is changed. */ -/*! - \qmlsignal AreaSeries::onPointLabelsFormatChanged(string format) - This signal is emitted when the \a format of data point labels is changed. -*/ /*! \property QAreaSeries::pointLabelsVisible @@ -294,10 +296,6 @@ QT_CHARTS_BEGIN_NAMESPACE \fn void QAreaSeries::pointLabelsVisibilityChanged(bool visible) This signal is emitted when the visibility of the data point labels changes to \a visible. */ -/*! - \qmlsignal AreaSeries::onPointLabelsVisibilityChanged(bool visible) - This signal is emitted when the visibility of the data point labels changes to \a visible. -*/ /*! \property QAreaSeries::pointLabelsFont @@ -315,10 +313,6 @@ QT_CHARTS_BEGIN_NAMESPACE \fn void QAreaSeries::pointLabelsFontChanged(const QFont &font); This signal is emitted when the font used for data point labels changes to \a font. */ -/*! - \qmlsignal AreaSeries::onPointLabelsFontChanged(Font font) - This signal is emitted when the font used for data point labels changes to \a font. -*/ /*! \property QAreaSeries::pointLabelsColor @@ -338,10 +332,6 @@ QT_CHARTS_BEGIN_NAMESPACE \fn void QAreaSeries::pointLabelsColorChanged(const QColor &color); This signal is emitted when the color used for data point labels changes to \a color. */ -/*! - \qmlsignal AreaSeries::onPointLabelsColorChanged(Color color) - This signal is emitted when the color used for data point labels changes to \a color. -*/ /*! \property QAreaSeries::pointLabelsClipping @@ -361,10 +351,6 @@ QT_CHARTS_BEGIN_NAMESPACE \fn void QAreaSeries::pointLabelsClippingChanged(bool clipping) This signal is emitted when the clipping of the data point labels changes to \a clipping. */ -/*! - \qmlsignal AreaSeries::onPointLabelsClippingChanged(bool clipping) - This signal is emitted when the clipping of the data point labels changes to \a clipping. -*/ /*! Constructs an area series object that will be spanned between an \a upperSeries line and a |