From 25b732239a6d8d9c5ab16dda8b03f2175e0fd271 2013-10-16 07:01:19 From: Titta Heikkala Date: 2013-10-16 07:01:19 Subject: [PATCH] Fix value axis documentation QML documentation does not show obsolete properties correctly. Removed the obsolete key and added a deprecated comment. Related typos fixed. Change-Id: I86c862e4f587541df0a08363834ad13efc14e1b4 Reviewed-by: Miikka Heikkinen --- diff --git a/src/axis/valueaxis/qvalueaxis.cpp b/src/axis/valueaxis/qvalueaxis.cpp index 26bfaa6..26583d3 100644 --- a/src/axis/valueaxis/qvalueaxis.cpp +++ b/src/axis/valueaxis/qvalueaxis.cpp @@ -170,8 +170,7 @@ QTCOMMERCIALCHART_BEGIN_NAMESPACE /*! \qmlproperty bool ValueAxis::niceNumbersEnabled - \obsolete - Using this function can lead to unexpected behavior. Use applyNiceNumbers() instead. + Deprecated; Using this function can lead to unexpected behavior. Use applyNiceNumbers() instead. */ /*! @@ -254,7 +253,8 @@ int QValueAxis::tickCount() const void QValueAxis::setNiceNumbersEnabled(bool enable) { Q_D(QValueAxis); - qWarning()<<"This function is depreciated, it can lead to unexpected behavior.Use applyNiceNumbers(). "; + qWarning() << "Deprecated; Using this function can lead to unexpected behavior. " \ + "Use applyNiceNumbers() instead."; if(enable) { QObject::connect(this,SIGNAL(rangeChanged(qreal,qreal)),this,SLOT(applyNiceNumbers())); QObject::connect(this,SIGNAL(tickCountChanged(int)),this,SLOT(applyNiceNumbers())); @@ -270,7 +270,8 @@ void QValueAxis::setNiceNumbersEnabled(bool enable) bool QValueAxis::niceNumbersEnabled() const { Q_D(const QValueAxis); - qWarning()<<"This function is depreciated.Use applyNiceNumbers()."; + qWarning() << "Deprecated; Using this function can lead to unexpected behavior. " \ + "Use applyNiceNumbers() instead."; return d->m_niceNumbersEnabled; }