@@ -153,12 +153,14 QTCOMMERCIALCHART_BEGIN_NAMESPACE | |||
|
153 | 153 | |
|
154 | 154 | /*! |
|
155 | 155 | \property QValueAxis::niceNumbersEnabled |
|
156 | Whether the nice numbers algorithm is enabled or not for the axis. | |
|
156 | \obsolete | |
|
157 | Using this function can lead to unexpected behavior. Use applyNiceNumbers() instead. | |
|
157 | 158 | */ |
|
158 | 159 | |
|
159 | 160 | /*! |
|
160 | 161 | \qmlproperty bool ValueAxis::niceNumbersEnabled |
|
161 | Whether the nice numbers algorithm is enabled or not for the axis. | |
|
162 | \obsolete | |
|
163 | Using this function can lead to unexpected behavior. Use applyNiceNumbers() instead. | |
|
162 | 164 | */ |
|
163 | 165 | |
|
164 | 166 | /*! |
@@ -241,7 +243,7 int QValueAxis::tickCount() const | |||
|
241 | 243 | void QValueAxis::setNiceNumbersEnabled(bool enable) |
|
242 | 244 | { |
|
243 | 245 | Q_D(QValueAxis); |
|
244 |
qWarning()<<"This function is depreciated, it can lead to unexpected behavio |
|
|
246 | qWarning()<<"This function is depreciated, it can lead to unexpected behavior.Use applyNiceNumbers(). "; | |
|
245 | 247 | if(enable) { |
|
246 | 248 | QObject::connect(this,SIGNAL(rangeChanged(qreal,qreal)),this,SLOT(applyNiceNumbers())); |
|
247 | 249 | QObject::connect(this,SIGNAL(tickCountChanged(int)),this,SLOT(applyNiceNumbers())); |
@@ -282,6 +284,12 QAbstractAxis::AxisType QValueAxis::type() const | |||
|
282 | 284 | return AxisTypeValue; |
|
283 | 285 | } |
|
284 | 286 | |
|
287 | /*! | |
|
288 | This method modifies range and number of ticks on the axis to look "nice". Algorithm considers numbers that | |
|
289 | can be expressed as form of 1*10^n, 2* 10^n or 5*10^n as a nice numbers. These numbers are used for spacing the ticks. | |
|
290 | This method will modify the current range and number of ticks. | |
|
291 | \sa setRange(), setTicks() | |
|
292 | */ | |
|
285 | 293 | void QValueAxis::applyNiceNumbers() |
|
286 | 294 | { |
|
287 | 295 | Q_D(QValueAxis); |
General Comments 0
You need to be logged in to leave comments.
Login now