diff options
Diffstat (limited to 'src/charts/axis/valueaxis/qvalueaxis.cpp')
-rw-r--r-- | src/charts/axis/valueaxis/qvalueaxis.cpp | 35 |
1 files changed, 14 insertions, 21 deletions
diff --git a/src/charts/axis/valueaxis/qvalueaxis.cpp b/src/charts/axis/valueaxis/qvalueaxis.cpp index d650d3ba..2b775e2a 100644 --- a/src/charts/axis/valueaxis/qvalueaxis.cpp +++ b/src/charts/axis/valueaxis/qvalueaxis.cpp @@ -168,41 +168,23 @@ QT_CHARTS_BEGIN_NAMESPACE \fn void QValueAxis::minChanged(qreal min) This signal is emitted when the minimum value of the axis, specified by \a min, changes. */ -/*! - \qmlsignal ValueAxis::onMinChanged(real min) - This signal is emitted when the minimum value of the axis, specified by \a min, changes. -*/ /*! \fn void QValueAxis::maxChanged(qreal max) This signal is emitted when the maximum value of the axis, specified by \a max, changes. */ -/*! - \qmlsignal ValueAxis::onMaxChanged(real max) - This signal is emitted when the maximum value of the axis, specified by \a max, changes. -*/ /*! \fn void QValueAxis::tickCountChanged(int tickCount) This signal is emitted when the number of tick marks on the axis, specified by \a tickCount, changes. */ -/*! - \qmlsignal ValueAxis::tickCountChanged(int tickCount) - This signal is emitted when the number of tick marks on the axis, specified by \a tickCount, - changes. -*/ /*! \fn void QValueAxis::minorTickCountChanged(int minorTickCount) This signal is emitted when the number of minor tick marks on the axis, specified by \a minorTickCount, changes. */ -/*! - \qmlsignal ValueAxis::minorTickCountChanged(int minorTickCount) - This signal is emitted when the number of minor tick marks on the axis, specified by - \a minorTickCount, changes. -*/ /*! \fn void QValueAxis::rangeChanged(qreal min, qreal max) @@ -211,11 +193,14 @@ QT_CHARTS_BEGIN_NAMESPACE */ /*! - \fn void QValueAxis::labelFormatChanged(const QString &format) - This signal is emitted when the \a format of axis labels changes. + \qmlsignal ValueAxis::rangeChanged(string min, string max) + This signal is emitted when \a min or \a max value of the axis changes. + + The corresponding signal handler is \c onRangeChanged. */ + /*! - \qmlsignal ValueAxis::labelFormatChanged(const QString &format) + \fn void QValueAxis::labelFormatChanged(const QString &format) This signal is emitted when the \a format of axis labels changes. */ @@ -333,6 +318,14 @@ QAbstractAxis::AxisType QValueAxis::type() const } /*! + \qmlmethod ValueAxis::applyNiceNumbers() + Modifies the current range and number of tick marks on the axis to look + \e nice. The algorithm considers numbers that can be expressed as a form of + 1*10^n, 2* 10^n, or 5*10^n to be nice numbers. These numbers are used for + setting spacing for the tick marks. +*/ + +/*! Modifies the current range and number of tick marks on the axis to look \e nice. The algorithm considers numbers that can be expressed as a form of 1*10^n, 2* 10^n, or 5*10^n to be nice numbers. These numbers are used for setting spacing for the tick marks. |