@@ -182,12 +182,22 QAbstractSeries::SeriesType QBarSeries::type() const | |||||
182 | return QAbstractSeries::SeriesTypeBar; |
|
182 | return QAbstractSeries::SeriesTypeBar; | |
183 | } |
|
183 | } | |
184 |
|
184 | |||
|
185 | /*! | |||
|
186 | Sets the width of the bars of the series. The unit of \a width is the unit of x-axis. The minimum width for bars | |||
|
187 | is zero and negative values are treated as zero. Setting the width to zero means that width of the bar on screen | |||
|
188 | is one pixel no matter what the scale of x-axis is. Bars wider than zero are scaled with x-axis. | |||
|
189 | Note that with \link QGroupedBarSeries \endlink this value means the width of one group of bars instead of just one bar. | |||
|
190 | */ | |||
185 | void QBarSeries::setBarWidth(qreal width) |
|
191 | void QBarSeries::setBarWidth(qreal width) | |
186 | { |
|
192 | { | |
187 | Q_D(QBarSeries); |
|
193 | Q_D(QBarSeries); | |
188 | d->setBarWidth(width); |
|
194 | d->setBarWidth(width); | |
189 | } |
|
195 | } | |
190 |
|
196 | |||
|
197 | /*! | |||
|
198 | Returns the width of the bars of the series. | |||
|
199 | \sa setBarWidth() | |||
|
200 | */ | |||
191 | qreal QBarSeries::barWidth() const |
|
201 | qreal QBarSeries::barWidth() const | |
192 | { |
|
202 | { | |
193 | Q_D(const QBarSeries); |
|
203 | Q_D(const QBarSeries); |
@@ -488,18 +488,24 void QBarSet::setLabelFont(const QFont &font) | |||||
488 | } |
|
488 | } | |
489 |
|
489 | |||
490 | /*! |
|
490 | /*! | |
491 | Returns the pen for values that are drawn on top of this set |
|
491 | Returns the pen for values that are drawn on top of this barset | |
492 | */ |
|
492 | */ | |
493 | QFont QBarSet::labelFont() const |
|
493 | QFont QBarSet::labelFont() const | |
494 | { |
|
494 | { | |
495 | return d_ptr->m_labelFont; |
|
495 | return d_ptr->m_labelFont; | |
496 | } |
|
496 | } | |
497 |
|
497 | |||
|
498 | /*! | |||
|
499 | Returns the color of the brush of barset. | |||
|
500 | */ | |||
498 | QColor QBarSet::color() |
|
501 | QColor QBarSet::color() | |
499 | { |
|
502 | { | |
500 | return brush().color(); |
|
503 | return brush().color(); | |
501 | } |
|
504 | } | |
502 |
|
505 | |||
|
506 | /*! | |||
|
507 | Sets the \a color of brush for this barset | |||
|
508 | */ | |||
503 | void QBarSet::setColor(QColor color) |
|
509 | void QBarSet::setColor(QColor color) | |
504 | { |
|
510 | { | |
505 | QBrush b = brush(); |
|
511 | QBrush b = brush(); | |
@@ -510,11 +516,17 void QBarSet::setColor(QColor color) | |||||
510 | } |
|
516 | } | |
511 | } |
|
517 | } | |
512 |
|
518 | |||
|
519 | /*! | |||
|
520 | Returns the color of pen of this barset | |||
|
521 | */ | |||
513 | QColor QBarSet::borderColor() |
|
522 | QColor QBarSet::borderColor() | |
514 | { |
|
523 | { | |
515 | return pen().color(); |
|
524 | return pen().color(); | |
516 | } |
|
525 | } | |
517 |
|
526 | |||
|
527 | /*! | |||
|
528 | Sets the color of pen for this barset | |||
|
529 | */ | |||
518 | void QBarSet::setBorderColor(QColor color) |
|
530 | void QBarSet::setBorderColor(QColor color) | |
519 | { |
|
531 | { | |
520 | QPen p = pen(); |
|
532 | QPen p = pen(); | |
@@ -525,11 +537,17 void QBarSet::setBorderColor(QColor color) | |||||
525 | } |
|
537 | } | |
526 | } |
|
538 | } | |
527 |
|
539 | |||
|
540 | /*! | |||
|
541 | Returns the color of labels of this barset | |||
|
542 | */ | |||
528 | QColor QBarSet::labelColor() |
|
543 | QColor QBarSet::labelColor() | |
529 | { |
|
544 | { | |
530 | return labelBrush().color(); |
|
545 | return labelBrush().color(); | |
531 | } |
|
546 | } | |
532 |
|
547 | |||
|
548 | /*! | |||
|
549 | Sets the color of labels for this barset | |||
|
550 | */ | |||
533 | void QBarSet::setLabelColor(QColor color) |
|
551 | void QBarSet::setLabelColor(QColor color) | |
534 | { |
|
552 | { | |
535 | QBrush b = labelBrush(); |
|
553 | QBrush b = labelBrush(); |
General Comments 0
You need to be logged in to leave comments.
Login now