diff --git a/src/piechart/qpieseries.cpp b/src/piechart/qpieseries.cpp index 1b80f80..8f79e29 100644 --- a/src/piechart/qpieseries.cpp +++ b/src/piechart/qpieseries.cpp @@ -52,7 +52,9 @@ QTCOMMERCIALCHART_BEGIN_NAMESPACE \qmlclass PieSeries QPieSeries The following QML shows how to create a simple pie chart. + \snippet ../demos/qmlchart/qml/qmlchart/View1.qml 1 + \beginfloatleft \image demos_qmlchart1.png \endfloat @@ -62,7 +64,9 @@ QTCOMMERCIALCHART_BEGIN_NAMESPACE /*! \property QPieSeries::horizontalPosition \brief Defines the horizontal position of the pie. + The value is a relative value to the chart rectangle where: + \list \o 0.0 is the absolute left. \o 1.0 is the absolute right. @@ -70,9 +74,14 @@ QTCOMMERCIALCHART_BEGIN_NAMESPACE Default value is 0.5 (center). \sa verticalPosition */ + /*! \qmlproperty real PieSeries::horizontalPosition - Defines the horizontal position of the pie. The value is a relative value to the chart rectangle where: + + Defines the horizontal position of the pie. + + The value is a relative value to the chart rectangle where: + \list \o 0.0 is the absolute left. \o 1.0 is the absolute right. @@ -84,7 +93,9 @@ QTCOMMERCIALCHART_BEGIN_NAMESPACE /*! \property QPieSeries::verticalPosition \brief Defines the vertical position of the pie. + The value is a relative value to the chart rectangle where: + \list \o 0.0 is the absolute top. \o 1.0 is the absolute bottom. @@ -92,9 +103,14 @@ QTCOMMERCIALCHART_BEGIN_NAMESPACE Default value is 0.5 (center). \sa horizontalPosition */ + /*! \qmlproperty real PieSeries::verticalPosition - Defines the vertical position of the pie. The value is a relative value to the chart rectangle where: + + Defines the vertical position of the pie. + + The value is a relative value to the chart rectangle where: + \list \o 0.0 is the absolute top. \o 1.0 is the absolute bottom. @@ -118,6 +134,21 @@ QTCOMMERCIALCHART_BEGIN_NAMESPACE */ /*! + \qmlproperty real PieSeries::size + + Defines the pie size. + + The value is a relative value to the chart rectangle where: + + \list + \o 0.0 is the minimum size (pie not drawn). + \o 1.0 is the maximum size that can fit the chart. + \endlist + + Default value is 0.7. +*/ + +/*! \property QPieSeries::startAngle \brief Defines the starting angle of the pie. @@ -127,6 +158,16 @@ QTCOMMERCIALCHART_BEGIN_NAMESPACE */ /*! + \qmlproperty real PieSeries::startAngle + + Defines the starting angle of the pie. + + Full pie is 360 degrees where 0 degrees is at 12 a'clock. + + Default is value is 0. +*/ + +/*! \property QPieSeries::endAngle \brief Defines the ending angle of the pie. @@ -136,12 +177,28 @@ QTCOMMERCIALCHART_BEGIN_NAMESPACE */ /*! + \qmlproperty real PieSeries::endAngle + + Defines the ending angle of the pie. + + Full pie is 360 degrees where 0 degrees is at 12 a'clock. + + Default is value is 360. +*/ + +/*! \property QPieSeries::count Number of slices in the series. */ /*! + \qmlproperty int PieSeries::count + + Number of slices in the series. +*/ + +/*! \fn void QPieSeries::countChanged() Emitted when the slice count has changed. @@ -158,6 +215,14 @@ QTCOMMERCIALCHART_BEGIN_NAMESPACE */ /*! + \qmlproperty real PieSeries::sum + + Sum of all slices. + + The series keeps track of the sum of all slices it holds. +*/ + +/*! \fn void QPieSeries::sumChanged() Emitted when the sum of all slices has changed.