diff --git a/src/barchart/qbarseries.cpp b/src/barchart/qbarseries.cpp index 1280dca..38cc2ab 100644 --- a/src/barchart/qbarseries.cpp +++ b/src/barchart/qbarseries.cpp @@ -182,12 +182,22 @@ QAbstractSeries::SeriesType QBarSeries::type() const return QAbstractSeries::SeriesTypeBar; } +/*! + 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 + is zero and negative values are treated as zero. Setting the width to zero means that width of the bar on screen + is one pixel no matter what the scale of x-axis is. Bars wider than zero are scaled with x-axis. + Note that with \link QGroupedBarSeries \endlink this value means the width of one group of bars instead of just one bar. +*/ void QBarSeries::setBarWidth(qreal width) { Q_D(QBarSeries); d->setBarWidth(width); } +/*! + Returns the width of the bars of the series. + \sa setBarWidth() +*/ qreal QBarSeries::barWidth() const { Q_D(const QBarSeries); diff --git a/src/barchart/qbarset.cpp b/src/barchart/qbarset.cpp index 2201df7..4d96079 100644 --- a/src/barchart/qbarset.cpp +++ b/src/barchart/qbarset.cpp @@ -488,18 +488,24 @@ void QBarSet::setLabelFont(const QFont &font) } /*! - Returns the pen for values that are drawn on top of this set + Returns the pen for values that are drawn on top of this barset */ QFont QBarSet::labelFont() const { return d_ptr->m_labelFont; } +/*! + Returns the color of the brush of barset. +*/ QColor QBarSet::color() { return brush().color(); } +/*! + Sets the \a color of brush for this barset +*/ void QBarSet::setColor(QColor color) { QBrush b = brush(); @@ -510,11 +516,17 @@ void QBarSet::setColor(QColor color) } } +/*! + Returns the color of pen of this barset +*/ QColor QBarSet::borderColor() { return pen().color(); } +/*! + Sets the color of pen for this barset +*/ void QBarSet::setBorderColor(QColor color) { QPen p = pen(); @@ -525,11 +537,17 @@ void QBarSet::setBorderColor(QColor color) } } +/*! + Returns the color of labels of this barset +*/ QColor QBarSet::labelColor() { return labelBrush().color(); } +/*! + Sets the color of labels for this barset +*/ void QBarSet::setLabelColor(QColor color) { QBrush b = labelBrush();