diff options
author | Topi Reinio <topi.reinio@qt.io> | 2019-02-28 14:42:03 +0100 |
---|---|---|
committer | Topi Reiniƶ <topi.reinio@qt.io> | 2019-03-05 10:56:41 +0000 |
commit | 203508d4aff39cfb7d8a7f3192884a190f203020 (patch) | |
tree | 07f2700bcd3656da87c71d1474f21acfa8e82166 /src/charts/qchart.cpp | |
parent | de84efac79724970bcdeac7fcdfe72a5fa846761 (diff) |
Doc: Set QChart functions as deprecated
axisX,Y and setAxisX,Y functions are now deprecated - mark them
as such in the documentation. Example code was also fixed to
not use deprecated functions, but example documentation was
not updated to reflect that change.
Task-number: QTBUG-74097
Change-Id: I2d4f283f1d0c62a02b33c373885e75bce34a1114
Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
Diffstat (limited to 'src/charts/qchart.cpp')
-rw-r--r-- | src/charts/qchart.cpp | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/src/charts/qchart.cpp b/src/charts/qchart.cpp index 4fad4baf..703e6625 100644 --- a/src/charts/qchart.cpp +++ b/src/charts/qchart.cpp @@ -465,6 +465,9 @@ bool QChart::isZoomed() } /*! + \deprecated + Use axes() instead. + Returns a pointer to the horizontal axis attached to the specified \a series. If no series is specified, the first horizontal axis added to the chart is returned. @@ -479,6 +482,9 @@ QAbstractAxis *QChart::axisX(QAbstractSeries *series) const } /*! + \deprecated + Use axes() instead. + Returns a pointer to the vertical axis attached to the specified \a series. If no series is specified, the first vertical axis added to the chart is returned. @@ -496,6 +502,7 @@ QAbstractAxis *QChart::axisY(QAbstractSeries *series) const Returns the axes attached to the series \a series with the orientation specified by \a orientation. If no series is specified, all axes added to the chart with the specified orientation are returned. + \sa addAxis(), createDefaultAxes() */ QList<QAbstractAxis *> QChart::axes(Qt::Orientations orientation, QAbstractSeries *series) const @@ -529,8 +536,8 @@ QList<QAbstractAxis *> QChart::axes(Qt::Orientations orientation, QAbstractSerie \table \header \li Series type - \li X-axis - \li Y-axis + \li Horizontal axis (X) + \li Vertical axis (Y) \row \li QXYSeries \li QValueAxis @@ -552,7 +559,7 @@ QList<QAbstractAxis *> QChart::axes(Qt::Orientations orientation, QAbstractSerie as the parameter for the axes() function call. QPieSeries does not create any axes. - \sa axisX(), axisY(), axes(), setAxisX(), setAxisY(), QAbstractSeries::attachAxis() + \sa axes(), QAbstractSeries::attachAxis() */ void QChart::createDefaultAxes() { @@ -743,6 +750,9 @@ QList<QAbstractSeries *> QChart::series() const } /*! + \deprecated + Use addAxis() instead. + Adds the axis \a axis to the chart and attaches it to the series \a series as a bottom-aligned horizontal axis. The chart takes ownership of both the axis and the series. @@ -765,6 +775,9 @@ void QChart::setAxisX(QAbstractAxis *axis ,QAbstractSeries *series) } /*! + \deprecated + Use addAxis() instead. + Adds the axis \a axis to the chart and attaches it to the series \a series as a left-aligned vertical axis. The chart takes ownership of both the axis and the series. |