##// END OF EJS Templates
QChartaxis docs added
Marek Rosa -
r936:d32b9e9adea9
parent child
Show More
@@ -151,6 +151,28 QTCOMMERCIALCHART_BEGIN_NAMESPACE
151 */
151 */
152
152
153 /*!
153 /*!
154 \fn void changed(qreal min, qreal max, int tickCount,bool niceNumbers)
155 \brief \internal
156 */
157
158 /*!
159 \fn bool QChartAxis::niceNumbers() const
160 \brief Returns whether nice numbers are enabled or not.
161 */
162
163 /*!
164 \fn QChartAxisCategories* categories()
165 \brief Returns pointer to the list of categories which correspond to the values on the axis.
166 */
167
168 /*!
169 \fn void ticksCountChanged(int count)
170 \brief Emits the new \a count of ticks on the axis
171 Signal is emitted when the number of the ticks on the axis has been changed to a different value.
172 Parementer count\a count is the new number of ticks on the axis.
173 */
174
175 /*!
154 Constructs new axis object which is a child of \a parent. Ownership is taken by
176 Constructs new axis object which is a child of \a parent. Ownership is taken by
155 QChatView or QChart when axis added.
177 QChatView or QChart when axis added.
156 */
178 */
@@ -406,10 +428,13 void QChartAxis::handleAxisRangeChanged(qreal min, qreal max,int count)
406 setTicksCount(count);
428 setTicksCount(count);
407 }
429 }
408
430
409 void QChartAxis::setNiceNumbers(bool enabled)
431 /*!
432 Sets the nice numbers state to \a enable
433 */
434 void QChartAxis::setNiceNumbers(bool enable)
410 {
435 {
411 if (m_niceNumbers != enabled){
436 if (m_niceNumbers != enable){
412 m_niceNumbers = enabled;
437 m_niceNumbers = enable;
413 emit changed(m_min, m_max, m_ticksCount, m_niceNumbers);
438 emit changed(m_min, m_max, m_ticksCount, m_niceNumbers);
414 }
439 }
415 }
440 }
@@ -81,7 +81,7 public:
81 void setTicksCount(int count);
81 void setTicksCount(int count);
82 int ticksCount() const { return m_ticksCount;}
82 int ticksCount() const { return m_ticksCount;}
83
83
84 void setNiceNumbers(bool enabled);
84 void setNiceNumbers(bool enable);
85 bool niceNumbers() const { return m_niceNumbers;}
85 bool niceNumbers() const { return m_niceNumbers;}
86
86
87 QChartAxisCategories* categories() { return &m_category; }
87 QChartAxisCategories* categories() { return &m_category; }
General Comments 0
You need to be logged in to leave comments. Login now