##// END OF EJS Templates
Doc fixes for pie
Jani Honkonen -
r809:ca452bc5066a
parent child
Show More
@@ -280,7 +280,7 QPieSeries& QPieSeries::operator << (QPieSlice* slice)
280 280
281 281
282 282 /*!
283 Adds a single slice to the series with give \a value and \a name.
283 Appends a single slice to the series with give \a value and \a name.
284 284 Slice ownership is passed to the series.
285 285 */
286 286 QPieSlice* QPieSeries::append(qreal value, QString name)
@@ -290,12 +290,16 QPieSlice* QPieSeries::append(qreal value, QString name)
290 290 return slice;
291 291 }
292 292
293 void QPieSeries::insert(int i, QPieSlice* slice)
293 /*!
294 Inserts a single \a slice to the series before the slice at \a index position.
295 Slice ownership is passed to the series.
296 */
297 void QPieSeries::insert(int index, QPieSlice* slice)
294 298 {
295 299 Q_D(QPieSeries);
296 Q_ASSERT(i <= d->m_slices.count());
300 Q_ASSERT(index <= d->m_slices.count());
297 301 slice->setParent(this);
298 d->m_slices.insert(i, slice);
302 d->m_slices.insert(index, slice);
299 303
300 304 d->updateDerivativeData();
301 305
@@ -571,9 +575,9 qreal QPieSeries::total() const
571 575 }
572 576
573 577 /*!
574 \fn void QPieSeries::clicked(QPieSlice* slice)
578 \fn void QPieSeries::clicked(QPieSlice* slice, Qt::MouseButtons buttons)
575 579
576 This signal is emitted when a \a slice has been clicked.
580 This signal is emitted when a \a slice has been clicked with mouse \a buttons.
577 581
578 582 \sa QPieSlice::clicked()
579 583 */
@@ -594,8 +598,37 qreal QPieSeries::total() const
594 598 \sa QPieSlice::hoverLeave()
595 599 */
596 600
601 /*!
602 \fn void QPieSeries::added(QList<QPieSlice*> slices)
603
604 This signal is emitted when \a slices has been added to the series.
605
606 \sa append(), insert()
607 */
608
609 /*!
610 \fn void QPieSeries::removed(QList<QPieSlice*> slices)
611
612 This signal is emitted when \a slices has been removed from the series.
613
614 \sa remove(), clear()
615 */
616
617 /*!
618 \fn void QPieSeries::piePositionChanged()
619
620 This signal is emitted when pie position has changed.
621
622 \sa setPiePosition(), pieVerticalPosition(), pieHorizontalPosition()
623 */
624
625 /*!
626 \fn void QPieSeries::pieSizeChanged()
597 627
628 This signal is emitted when pie size has changed.
598 629
630 \sa pieSize(), setPieSize()
631 */
599 632
600 633 bool QPieSeries::setModel(QAbstractItemModel* model)
601 634 {
@@ -43,7 +43,7 public:
43 43 // slice setters
44 44 void append(QPieSlice* slice);
45 45 void append(QList<QPieSlice*> slices);
46 void insert(int i, QPieSlice* slice);
46 void insert(int index, QPieSlice* slice);
47 47 void replace(QList<QPieSlice*> slices);
48 48 void remove(QPieSlice* slice);
49 49 void clear();
@@ -183,7 +183,7 qreal QPieSlice::endAngle() const
183 183
184 184 /*!
185 185 Returns the pen used to draw this slice.
186 \sa setSlicePen()
186 \sa setPen()
187 187 */
188 188 QPen QPieSlice::pen() const
189 189 {
@@ -193,7 +193,7 QPen QPieSlice::pen() const
193 193
194 194 /*!
195 195 Returns the brush used to draw this slice.
196 \sa setSliceBrush()
196 \sa setBrush()
197 197 */
198 198 QBrush QPieSlice::brush() const
199 199 {
@@ -203,7 +203,7 QBrush QPieSlice::brush() const
203 203
204 204 /*!
205 205 Returns the pen used to draw the label in this slice.
206 \sa setLabelArmPen()
206 \sa setLabelPen()
207 207 */
208 208 QPen QPieSlice::labelPen() const
209 209 {
@@ -239,7 +239,7 qreal QPieSlice::labelArmLengthFactor() const
239 239 }
240 240
241 241 /*!
242 \fn void QPieSlice::clicked()
242 \fn void QPieSlice::clicked(Qt::MouseButtons buttons)
243 243
244 244 This signal is emitted when user has clicked the slice.
245 245
@@ -350,7 +350,7 void QPieSlice::setExplodeDistanceFactor(qreal factor)
350 350 /*!
351 351 Sets the \a pen used to draw this slice.
352 352 Note that applying a theme will override this.
353 \sa slicePen()
353 \sa pen()
354 354 */
355 355 void QPieSlice::setPen(const QPen &pen)
356 356 {
@@ -365,7 +365,7 void QPieSlice::setPen(const QPen &pen)
365 365 /*!
366 366 Sets the \a brush used to draw this slice.
367 367 Note that applying a theme will override this.
368 \sa sliceBrush()
368 \sa brush()
369 369 */
370 370 void QPieSlice::setBrush(const QBrush &brush)
371 371 {
@@ -380,7 +380,7 void QPieSlice::setBrush(const QBrush &brush)
380 380 /*!
381 381 Sets the \a pen used to draw the label in this slice.
382 382 Note that applying a theme will override this.
383 \sa labelArmPen()
383 \sa labelPen()
384 384 */
385 385 void QPieSlice::setLabelPen(const QPen &pen)
386 386 {
@@ -73,7 +73,7
73 73
74 74 The name of a series is shown in the legend for QXYSeries.
75 75 \sa QChart::setTitle()
76 \sa QPieSlice::setName()
76 \sa QPieSlice::setLabel()
77 77 \sa QBarSet::setName()
78 78 */
79 79
General Comments 0
You need to be logged in to leave comments. Login now