@@ -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 | 59 | Constructs empty series object which is a child of \a parent. |
|
66 | 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 | 236 | Constructs a series object which is a child of \a parent. |
|
229 | 237 | */ |
|
230 | 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 | 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 | 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 | 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 | 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 | 226 | \fn void QPieSlice::clicked(Qt::MouseButtons buttons) |
|
227 | 227 | |
|
228 | 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 | 231 | \sa QPieSeries::clicked() |
|
231 | 232 | */ |
@@ -131,6 +131,9 void QChart::setBackgroundBrush(const QBrush& brush) | |||
|
131 | 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 | 137 | QBrush QChart::backgroundBrush() const |
|
135 | 138 | { |
|
136 | 139 | //TODO: refactor me |
@@ -149,6 +152,9 void QChart::setBackgroundPen(const QPen& pen) | |||
|
149 | 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 | 158 | QPen QChart::backgroundPen() const |
|
153 | 159 | { |
|
154 | 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 |
|
|
189 | Sets the \a font that is used for drawing the chart description text that is rendered above the chart. | |
|
184 | 190 | */ |
|
185 | 191 | void QChart::setTitleFont(const QFont& font) |
|
186 | 192 | { |
@@ -190,6 +196,9 void QChart::setTitleFont(const QFont& font) | |||
|
190 | 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 | 202 | QFont QChart::titleFont() const |
|
194 | 203 | { |
|
195 | 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 |
|
|
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 | 286 | QChartAxis* QChart::axisY(QSeries* series) const |
|
277 | 287 | { |
@@ -286,6 +296,10 QLegend* QChart::legend() const | |||
|
286 | 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 | 303 | QRectF QChart::margins() const |
|
290 | 304 | { |
|
291 | 305 | return d_ptr->m_presenter->margins(); |
@@ -318,26 +332,41 QChart::AnimationOptions QChart::animationOptions() const | |||
|
318 | 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 | 338 | void QChart::scrollLeft() |
|
322 | 339 | { |
|
323 | 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 | 346 | void QChart::scrollRight() |
|
327 | 347 | { |
|
328 | 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 | 354 | void QChart::scrollUp() |
|
332 | 355 | { |
|
333 | 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 | 362 | void QChart::scrollDown() |
|
337 | 363 | { |
|
338 | 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 | 370 | void QChart::setBackgroundVisible(bool visible) |
|
342 | 371 | { |
|
343 | 372 | //TODO: refactor me |
@@ -345,6 +374,9 void QChart::setBackgroundVisible(bool visible) | |||
|
345 | 374 | d_ptr->m_presenter->m_backgroundItem->setVisible(visible); |
|
346 | 375 | } |
|
347 | 376 | |
|
377 | /*! | |
|
378 | Returns the chart's background visibility state | |
|
379 | */ | |
|
348 | 380 | bool QChart::isBackgroundVisible() const |
|
349 | 381 | { |
|
350 | 382 | //TODO: refactor me |
General Comments 0
You need to be logged in to leave comments.
Login now