From 02a3b8a210d30ad6abedc90f33231c3d55851dc0 2012-06-26 09:27:44 From: Tero Ahola Date: 2012-06-26 09:27:44 Subject: [PATCH] Documented QLegend label properties --- diff --git a/src/legend/qlegend.cpp b/src/legend/qlegend.cpp index 32ff395..7502e93 100644 --- a/src/legend/qlegend.cpp +++ b/src/legend/qlegend.cpp @@ -130,6 +130,15 @@ QTCOMMERCIALCHART_BEGIN_NAMESPACE */ /*! + \property QLegend::labelColor + The color of brush used to draw labels. +*/ +/*! + \qmlproperty color QLegend::labelColor + The color of brush used to draw labels. +*/ + +/*! \fn void QLegend::backgroundVisibleChanged(bool) The visibility of the legend background changed to \a visible. */ @@ -150,6 +159,16 @@ QTCOMMERCIALCHART_BEGIN_NAMESPACE */ /*! + \fn void QLegend::labelBrushChanged(QBrush brush) + This signal is emitted when the brush used to draw labels has changed to \a brush. +*/ + +/*! + \fn void QLegend::labelColorChanged(QColor color) + This signal is emitted when the color of brush used to draw labels has changed to \a color. +*/ + +/*! \fn qreal QLegend::minWidth() const Returns minimum width of the legend */ @@ -286,6 +305,9 @@ QFont QLegend::font() const return d_ptr->m_font; } +/*! + Set brush used to draw labels to \a brush. +*/ void QLegend::setLabelBrush(const QBrush &brush) { if (d_ptr->m_labelBrush != brush) { @@ -294,6 +316,9 @@ void QLegend::setLabelBrush(const QBrush &brush) } } +/*! + Brush used to draw labels. +*/ QBrush QLegend::labelBrush() const { return d_ptr->m_labelBrush; diff --git a/src/piechart/qpieslice.cpp b/src/piechart/qpieslice.cpp index 46ad518..0c91983 100644 --- a/src/piechart/qpieslice.cpp +++ b/src/piechart/qpieslice.cpp @@ -237,7 +237,7 @@ QTCOMMERCIALCHART_BEGIN_NAMESPACE /*! \fn void QPieSlice::labelBrushChanged() - This signal is emitted when the label pen of the slice has changed. + This signal is emitted when the label brush of the slice has changed. \sa labelBrush */