##// END OF EJS Templates
Some more doc fixes and additions
Marek Rosa -
r924:fc9ac5c5cb54
parent child
Show More
@@ -56,12 +56,6 QTCOMMERCIALCHART_BEGIN_NAMESPACE
56 */
56 */
57
57
58 /*!
58 /*!
59 \fn QPen QLineSeries::linePen() const
60 \brief Returns the pen used to draw line connecting points.
61 \sa setPen()
62 */
63
64 /*!
65 Constructs empty series object which is a child of \a parent.
59 Constructs empty series object which is a child of \a parent.
66 When series object is added to QChartView or QChart instance ownerships is transfered.
60 When series object is added to QChartView or QChart instance ownerships is transfered.
67 */
61 */
@@ -225,6 +225,14 bool QPieSeriesPrivate::setRealValue(qreal &value, qreal newValue, qreal max, qr
225 */
225 */
226
226
227 /*!
227 /*!
228 \property qreal QPieSeries::horizontalPosition
229 \brief Pie horizontal postion property
230
231 By default horizontal postion is 0
232 */
233
234
235 /*!
228 Constructs a series object which is a child of \a parent.
236 Constructs a series object which is a child of \a parent.
229 */
237 */
230 QPieSeries::QPieSeries(QObject *parent) :
238 QPieSeries::QPieSeries(QObject *parent) :
@@ -406,7 +414,7 QList<QPieSlice*> QPieSeries::slices() const
406 }
414 }
407
415
408 /*!
416 /*!
409 Sets the horizontal center position of the pie to \relativePosition. If \relativePosition is
417 Sets the horizontal center position of the pie to \a relativePosition. If \a relativePosition is
410 set to 0.0 the pie is drawn on the left side of the chart and if it's set to 1.0 the pie is
418 set to 0.0 the pie is drawn on the left side of the chart and if it's set to 1.0 the pie is
411 drawn on right side of the chart. The default value 0.5 puts the pie in the middle.
419 drawn on right side of the chart. The default value 0.5 puts the pie in the middle.
412
420
@@ -420,7 +428,7 void QPieSeries::setHorizontalPosition(qreal relativePosition)
420 }
428 }
421
429
422 /*!
430 /*!
423 Sets the vertical center position of the pie to \relativePosition. If \relativePosition is
431 Sets the vertical center position of the pie to \a relativePosition. If \a relativePosition is
424 set to 0.0 the pie is drawn on the top of the chart and if it's set to 1.0 the pie is drawn
432 set to 0.0 the pie is drawn on the top of the chart and if it's set to 1.0 the pie is drawn
425 on bottom of the chart. The default value 0.5 puts the pie in the middle.
433 on bottom of the chart. The default value 0.5 puts the pie in the middle.
426
434
@@ -226,6 +226,7 qreal QPieSlice::labelArmLengthFactor() const
226 \fn void QPieSlice::clicked(Qt::MouseButtons buttons)
226 \fn void QPieSlice::clicked(Qt::MouseButtons buttons)
227
227
228 This signal is emitted when user has clicked the slice.
228 This signal is emitted when user has clicked the slice.
229 Parameter \a buttons hold the information about the clicked mouse buttons.
229
230
230 \sa QPieSeries::clicked()
231 \sa QPieSeries::clicked()
231 */
232 */
@@ -131,6 +131,9 void QChart::setBackgroundBrush(const QBrush& brush)
131 d_ptr->m_presenter->m_backgroundItem->update();
131 d_ptr->m_presenter->m_backgroundItem->update();
132 }
132 }
133
133
134 /*!
135 Gets the brush that is used for painting the background of the chart area.
136 */
134 QBrush QChart::backgroundBrush() const
137 QBrush QChart::backgroundBrush() const
135 {
138 {
136 //TODO: refactor me
139 //TODO: refactor me
@@ -149,6 +152,9 void QChart::setBackgroundPen(const QPen& pen)
149 d_ptr->m_presenter->m_backgroundItem->update();
152 d_ptr->m_presenter->m_backgroundItem->update();
150 }
153 }
151
154
155 /*!
156 Gets the pen that is used for painting the background of the chart area.
157 */
152 QPen QChart::backgroundPen() const
158 QPen QChart::backgroundPen() const
153 {
159 {
154 //TODO: refactor me
160 //TODO: refactor me
@@ -180,7 +186,7 QString QChart::title() const
180 }
186 }
181
187
182 /*!
188 /*!
183 Sets the \a font that is used for rendering the description text that is rendered above the chart.
189 Sets the \a font that is used for drawing the chart description text that is rendered above the chart.
184 */
190 */
185 void QChart::setTitleFont(const QFont& font)
191 void QChart::setTitleFont(const QFont& font)
186 {
192 {
@@ -190,6 +196,9 void QChart::setTitleFont(const QFont& font)
190 d_ptr->m_presenter->updateLayout();
196 d_ptr->m_presenter->updateLayout();
191 }
197 }
192
198
199 /*!
200 Gets the font that is used for drawing the chart description text that is rendered above the chart.
201 */
193 QFont QChart::titleFont() const
202 QFont QChart::titleFont() const
194 {
203 {
195 if (d_ptr->m_presenter->m_titleItem)
204 if (d_ptr->m_presenter->m_titleItem)
@@ -271,7 +280,8 QChartAxis* QChart::axisX() const
271 }
280 }
272
281
273 /*!
282 /*!
274 Returns the pointer to the y axis object of the chart
283 Returns the pointer to the y axis object of the \a series
284 If no \a series is provided then default Y axis of the chart is returned.
275 */
285 */
276 QChartAxis* QChart::axisY(QSeries* series) const
286 QChartAxis* QChart::axisY(QSeries* series) const
277 {
287 {
@@ -286,6 +296,10 QLegend* QChart::legend() const
286 return d_ptr->m_legend;
296 return d_ptr->m_legend;
287 }
297 }
288
298
299 /*!
300 Returns the rect that contains information about margins (distance between chart widget edge and axes).
301 Individual margins can be obtained by calling left, top, right, bottom on the returned rect.
302 */
289 QRectF QChart::margins() const
303 QRectF QChart::margins() const
290 {
304 {
291 return d_ptr->m_presenter->margins();
305 return d_ptr->m_presenter->margins();
@@ -318,26 +332,41 QChart::AnimationOptions QChart::animationOptions() const
318 return d_ptr->m_presenter->animationOptions();
332 return d_ptr->m_presenter->animationOptions();
319 }
333 }
320
334
335 /*!
336 Scrolls the visible area of the chart to the left by the distance between two x axis ticks
337 */
321 void QChart::scrollLeft()
338 void QChart::scrollLeft()
322 {
339 {
323 d_ptr->m_presenter->scroll(-d_ptr->m_presenter->chartGeometry().width()/(axisX()->ticksCount()-1),0);
340 d_ptr->m_presenter->scroll(-d_ptr->m_presenter->chartGeometry().width()/(axisX()->ticksCount()-1),0);
324 }
341 }
325
342
343 /*!
344 Scrolls the visible area of the chart to the right by the distance between two x axis ticks
345 */
326 void QChart::scrollRight()
346 void QChart::scrollRight()
327 {
347 {
328 d_ptr->m_presenter->scroll(d_ptr->m_presenter->chartGeometry().width()/(axisX()->ticksCount()-1),0);
348 d_ptr->m_presenter->scroll(d_ptr->m_presenter->chartGeometry().width()/(axisX()->ticksCount()-1),0);
329 }
349 }
330
350
351 /*!
352 Scrolls the visible area of the chart up by the distance between two y axis ticks
353 */
331 void QChart::scrollUp()
354 void QChart::scrollUp()
332 {
355 {
333 d_ptr->m_presenter->scroll(0,d_ptr->m_presenter->chartGeometry().width()/(axisY()->ticksCount()-1));
356 d_ptr->m_presenter->scroll(0,d_ptr->m_presenter->chartGeometry().width()/(axisY()->ticksCount()-1));
334 }
357 }
335
358
359 /*!
360 Scrolls the visible area of the chart down by the distance between two y axis ticks
361 */
336 void QChart::scrollDown()
362 void QChart::scrollDown()
337 {
363 {
338 d_ptr->m_presenter->scroll(0,-d_ptr->m_presenter->chartGeometry().width()/(axisY()->ticksCount()-1));
364 d_ptr->m_presenter->scroll(0,-d_ptr->m_presenter->chartGeometry().width()/(axisY()->ticksCount()-1));
339 }
365 }
340
366
367 /*!
368 Sets the chart background visibility state to \a visible
369 */
341 void QChart::setBackgroundVisible(bool visible)
370 void QChart::setBackgroundVisible(bool visible)
342 {
371 {
343 //TODO: refactor me
372 //TODO: refactor me
@@ -345,6 +374,9 void QChart::setBackgroundVisible(bool visible)
345 d_ptr->m_presenter->m_backgroundItem->setVisible(visible);
374 d_ptr->m_presenter->m_backgroundItem->setVisible(visible);
346 }
375 }
347
376
377 /*!
378 Returns the chart's background visibility state
379 */
348 bool QChart::isBackgroundVisible() const
380 bool QChart::isBackgroundVisible() const
349 {
381 {
350 //TODO: refactor me
382 //TODO: refactor me
@@ -68,6 +68,11
68 */
68 */
69
69
70 /*!
70 /*!
71 \fn QAbstractItemModel* QSeries::model() const
72 \brief Returns the pointer to the model that is used as the series data source
73 */
74
75 /*!
71 \property QString QSeries::name
76 \property QString QSeries::name
72 \brief name of the series property
77 \brief name of the series property
73 */
78 */
General Comments 0
You need to be logged in to leave comments. Login now