##// END OF EJS Templates
Add pieseries qml doc
Jani Honkonen -
r1504:c3462272892c
parent child
Show More
@@ -52,7 +52,9 QTCOMMERCIALCHART_BEGIN_NAMESPACE
52 \qmlclass PieSeries QPieSeries
52 \qmlclass PieSeries QPieSeries
53
53
54 The following QML shows how to create a simple pie chart.
54 The following QML shows how to create a simple pie chart.
55
55 \snippet ../demos/qmlchart/qml/qmlchart/View1.qml 1
56 \snippet ../demos/qmlchart/qml/qmlchart/View1.qml 1
57
56 \beginfloatleft
58 \beginfloatleft
57 \image demos_qmlchart1.png
59 \image demos_qmlchart1.png
58 \endfloat
60 \endfloat
@@ -62,7 +64,9 QTCOMMERCIALCHART_BEGIN_NAMESPACE
62 /*!
64 /*!
63 \property QPieSeries::horizontalPosition
65 \property QPieSeries::horizontalPosition
64 \brief Defines the horizontal position of the pie.
66 \brief Defines the horizontal position of the pie.
67
65 The value is a relative value to the chart rectangle where:
68 The value is a relative value to the chart rectangle where:
69
66 \list
70 \list
67 \o 0.0 is the absolute left.
71 \o 0.0 is the absolute left.
68 \o 1.0 is the absolute right.
72 \o 1.0 is the absolute right.
@@ -70,9 +74,14 QTCOMMERCIALCHART_BEGIN_NAMESPACE
70 Default value is 0.5 (center).
74 Default value is 0.5 (center).
71 \sa verticalPosition
75 \sa verticalPosition
72 */
76 */
77
73 /*!
78 /*!
74 \qmlproperty real PieSeries::horizontalPosition
79 \qmlproperty real PieSeries::horizontalPosition
75 Defines the horizontal position of the pie. The value is a relative value to the chart rectangle where:
80
81 Defines the horizontal position of the pie.
82
83 The value is a relative value to the chart rectangle where:
84
76 \list
85 \list
77 \o 0.0 is the absolute left.
86 \o 0.0 is the absolute left.
78 \o 1.0 is the absolute right.
87 \o 1.0 is the absolute right.
@@ -84,7 +93,9 QTCOMMERCIALCHART_BEGIN_NAMESPACE
84 /*!
93 /*!
85 \property QPieSeries::verticalPosition
94 \property QPieSeries::verticalPosition
86 \brief Defines the vertical position of the pie.
95 \brief Defines the vertical position of the pie.
96
87 The value is a relative value to the chart rectangle where:
97 The value is a relative value to the chart rectangle where:
98
88 \list
99 \list
89 \o 0.0 is the absolute top.
100 \o 0.0 is the absolute top.
90 \o 1.0 is the absolute bottom.
101 \o 1.0 is the absolute bottom.
@@ -92,9 +103,14 QTCOMMERCIALCHART_BEGIN_NAMESPACE
92 Default value is 0.5 (center).
103 Default value is 0.5 (center).
93 \sa horizontalPosition
104 \sa horizontalPosition
94 */
105 */
106
95 /*!
107 /*!
96 \qmlproperty real PieSeries::verticalPosition
108 \qmlproperty real PieSeries::verticalPosition
97 Defines the vertical position of the pie. The value is a relative value to the chart rectangle where:
109
110 Defines the vertical position of the pie.
111
112 The value is a relative value to the chart rectangle where:
113
98 \list
114 \list
99 \o 0.0 is the absolute top.
115 \o 0.0 is the absolute top.
100 \o 1.0 is the absolute bottom.
116 \o 1.0 is the absolute bottom.
@@ -118,6 +134,21 QTCOMMERCIALCHART_BEGIN_NAMESPACE
118 */
134 */
119
135
120 /*!
136 /*!
137 \qmlproperty real PieSeries::size
138
139 Defines the pie size.
140
141 The value is a relative value to the chart rectangle where:
142
143 \list
144 \o 0.0 is the minimum size (pie not drawn).
145 \o 1.0 is the maximum size that can fit the chart.
146 \endlist
147
148 Default value is 0.7.
149 */
150
151 /*!
121 \property QPieSeries::startAngle
152 \property QPieSeries::startAngle
122 \brief Defines the starting angle of the pie.
153 \brief Defines the starting angle of the pie.
123
154
@@ -127,6 +158,16 QTCOMMERCIALCHART_BEGIN_NAMESPACE
127 */
158 */
128
159
129 /*!
160 /*!
161 \qmlproperty real PieSeries::startAngle
162
163 Defines the starting angle of the pie.
164
165 Full pie is 360 degrees where 0 degrees is at 12 a'clock.
166
167 Default is value is 0.
168 */
169
170 /*!
130 \property QPieSeries::endAngle
171 \property QPieSeries::endAngle
131 \brief Defines the ending angle of the pie.
172 \brief Defines the ending angle of the pie.
132
173
@@ -136,12 +177,28 QTCOMMERCIALCHART_BEGIN_NAMESPACE
136 */
177 */
137
178
138 /*!
179 /*!
180 \qmlproperty real PieSeries::endAngle
181
182 Defines the ending angle of the pie.
183
184 Full pie is 360 degrees where 0 degrees is at 12 a'clock.
185
186 Default is value is 360.
187 */
188
189 /*!
139 \property QPieSeries::count
190 \property QPieSeries::count
140
191
141 Number of slices in the series.
192 Number of slices in the series.
142 */
193 */
143
194
144 /*!
195 /*!
196 \qmlproperty int PieSeries::count
197
198 Number of slices in the series.
199 */
200
201 /*!
145 \fn void QPieSeries::countChanged()
202 \fn void QPieSeries::countChanged()
146
203
147 Emitted when the slice count has changed.
204 Emitted when the slice count has changed.
@@ -158,6 +215,14 QTCOMMERCIALCHART_BEGIN_NAMESPACE
158 */
215 */
159
216
160 /*!
217 /*!
218 \qmlproperty real PieSeries::sum
219
220 Sum of all slices.
221
222 The series keeps track of the sum of all slices it holds.
223 */
224
225 /*!
161 \fn void QPieSeries::sumChanged()
226 \fn void QPieSeries::sumChanged()
162
227
163 Emitted when the sum of all slices has changed.
228 Emitted when the sum of all slices has changed.
General Comments 0
You need to be logged in to leave comments. Login now