summaryrefslogtreecommitdiffstats
path: root/src/axis/valueaxis/qvalueaxis.cpp
diff options
context:
space:
mode:
authorTitta Heikkala <titta.heikkala@digia.com>2013-10-16 09:50:33 +0300
committerTitta Heikkala <titta.heikkala@digia.com>2013-10-16 10:01:19 +0300
commit25b732239a6d8d9c5ab16dda8b03f2175e0fd271 (patch)
treee96dbfcb9ee13feb60b0a82049d4a0f1395789b5 /src/axis/valueaxis/qvalueaxis.cpp
parentd3155254bba40236bc1e7ee3764c88e0d32b36cc (diff)
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 <miikka.heikkinen@digia.com>
Diffstat (limited to 'src/axis/valueaxis/qvalueaxis.cpp')
-rw-r--r--src/axis/valueaxis/qvalueaxis.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/axis/valueaxis/qvalueaxis.cpp b/src/axis/valueaxis/qvalueaxis.cpp
index 26bfaa69..26583d31 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;
}