##// END OF EJS Templates
QML signals documentation
Tero Ahola -
r1531:658bb1d8ea02
parent child
Show More
@@ -185,6 +185,30 QTCOMMERCIALCHART_BEGIN_NAMESPACE
185 185 \sa Axis::min, Axis::max
186 186 */
187 187
188 /*!
189 \qmlsignal ChartView::onTopMarginChanged(real margin)
190 The top margin of the chart view has changed to \a margin. This may happen for example if you modify font size
191 related properties of the legend or chart title.
192 */
193
194 /*!
195 \qmlsignal ChartView::onBottomMarginChanged(real margin)
196 The bottom margin of the chart view has changed to \a margin. This may happen for example if you modify font size
197 related properties of the legend or chart title.
198 */
199
200 /*!
201 \qmlsignal ChartView::onLeftMarginChanged(real margin)
202 The left margin of the chart view has changed to \a margin. This may happen for example if you modify font size
203 related properties of the legend or chart title.
204 */
205
206 /*!
207 \qmlsignal ChartView::onRightMarginChanged(real margin)
208 The right margin of the chart view has changed to \a margin. This may happen for example if you modify font size
209 related properties of the legend or chart title.
210 */
211
188 212 DeclarativeChart::DeclarativeChart(QDeclarativeItem *parent)
189 213 : QDeclarativeItem(parent),
190 214 m_chart(new QChart(this))
@@ -113,7 +113,7 QTCOMMERCIALCHART_BEGIN_NAMESPACE
113 113 \brief Signal is emitted when the fill (brush) color has changed to \a color.
114 114 */
115 115 /*!
116 \qmlsignal AreaSeries::colorChanged(color color)
116 \qmlsignal AreaSeries::onColorChanged(color color)
117 117 Signal is emitted when the fill (brush) color has changed to \a color.
118 118 */
119 119
@@ -122,7 +122,7 QTCOMMERCIALCHART_BEGIN_NAMESPACE
122 122 \brief Signal is emitted when the line (pen) color has changed to \a color.
123 123 */
124 124 /*!
125 \qmlsignal AreaSeries::borderColorChanged(color color)
125 \qmlsignal AreaSeries::onBorderColorChanged(color color)
126 126 Signal is emitted when the line (pen) color has changed to \a color.
127 127 */
128 128
@@ -131,7 +131,7 QTCOMMERCIALCHART_BEGIN_NAMESPACE
131 131 \brief Signal is emitted when user clicks the \a point on area chart.
132 132 */
133 133 /*!
134 \qmlsignal AreaSeries::clicked(QPointF point)
134 \qmlsignal AreaSeries::onClicked(QPointF point)
135 135 Signal is emitted when user clicks the \a point on area chart.
136 136 */
137 137
@@ -141,7 +141,7 QTCOMMERCIALCHART_BEGIN_NAMESPACE
141 141 implemented by the user of QAreaSeries API.
142 142 */
143 143 /*!
144 \qmlsignal AreaSeries::selected()
144 \qmlsignal AreaSeries::onSelected()
145 145 The signal is emitted if the user selects/deselects the XY series. The logic for maintaining selections should be
146 146 implemented by the user of AreaSeries API.
147 147 */
@@ -202,16 +202,31 QTCOMMERCIALCHART_BEGIN_NAMESPACE
202 202 \fn void QAxis::minChanged(qreal min)
203 203 Axis emits signal when \a min of axis has changed.
204 204 */
205 /*!
206 \qmlsignal Axis::onMinChanged(real min)
207 Axis emits signal when \a min of axis has changed. This may happen for example if you zoom, scroll or
208 enable nice numbers algorithm.
209 */
205 210
206 211 /*!
207 212 \fn void QAxis::maxChanged(qreal max)
208 213 Axis emits signal when \a max of axis has changed.
209 214 */
215 /*!
216 \qmlsignal Axis::onMaxChanged(real max)
217 Axis emits signal when \a max of axis has changed. This may happen for example if you zoom, scroll or
218 enable nice numbers algorithm.
219 */
210 220
211 221 /*!
212 222 \fn void QAxis::rangeChanged(qreal min, qreal max)
213 223 Axis emits signal when \a min or \a max of axis has changed.
214 224 */
225 /*!
226 \qmlsignal Axis::onRangeChanged(real min, real max)
227 Axis emits signal when \a min or \a max of axis has changed. This may happen for example if you zoom, scroll or
228 enable nice numbers algorithm.
229 */
215 230
216 231 /*!
217 232 \fn QChartAxisCategories* QAxis::categories()
@@ -94,13 +94,11 QTCOMMERCIALCHART_BEGIN_NAMESPACE
94 94
95 95 /*!
96 96 \fn void QBarSeries::clicked(QBarSet *barset, int index)
97
98 97 The signal is emitted if the user clicks with a mouse on top of QBarSet \a barset.
99 98 Clicked bar inside set is indexed by \a index
100 99 */
101 100 /*!
102 101 \qmlsignal BarSeries::onClicked(BarSet barset, int index)
103
104 102 The signal is emitted if the user clicks with a mouse on top of BarSet.
105 103 Clicked bar inside set is indexed by \a index
106 104 */
@@ -125,7 +123,7 QTCOMMERCIALCHART_BEGIN_NAMESPACE
125 123 This signal is emitted when barset count has been changed, for example by append or remove.
126 124 */
127 125 /*!
128 \qmlsignal BarSeries::countChanged()
126 \qmlsignal BarSeries::onCountChanged()
129 127 This signal is emitted when barset count has been changed, for example by append or remove.
130 128 */
131 129
@@ -141,7 +139,7 QTCOMMERCIALCHART_BEGIN_NAMESPACE
141 139 \sa append(), insert()
142 140 */
143 141 /*!
144 \qmlsignal BarSeries::added(BarSet barset)
142 \qmlsignal BarSeries::onAdded(BarSet barset)
145 143 Emitted when \a barset has been added to the series.
146 144 */
147 145
@@ -151,7 +149,7 QTCOMMERCIALCHART_BEGIN_NAMESPACE
151 149 \sa remove()
152 150 */
153 151 /*!
154 \qmlsignal BarSeries::removed(BarSet barset)
152 \qmlsignal BarSeries::onRemoved(BarSet barset)
155 153 Emitted when \a barset has been removed from the series.
156 154 */
157 155
@@ -129,6 +129,10 QTCOMMERCIALCHART_BEGIN_NAMESPACE
129 129 This signal is emitted when the label of the barSet has changed.
130 130 \sa label
131 131 */
132 /*!
133 \qmlsignal BarSet::onLabelChanged()
134 This signal is emitted when the label of the barSet has changed.
135 */
132 136
133 137 /*!
134 138 \fn void QBarSet::penChanged()
@@ -201,11 +201,13 QTCOMMERCIALCHART_BEGIN_NAMESPACE
201 201
202 202 /*!
203 203 \fn void QPieSeries::countChanged()
204
205 204 Emitted when the slice count has changed.
206
207 205 \sa count
208 206 */
207 /*!
208 \qmlsignal PieSeries::onCountChanged()
209 Emitted when the slice count has changed.
210 */
209 211
210 212 /*!
211 213 \property QPieSeries::sum
@@ -225,11 +227,14 QTCOMMERCIALCHART_BEGIN_NAMESPACE
225 227
226 228 /*!
227 229 \fn void QPieSeries::sumChanged()
228
229 230 Emitted when the sum of all slices has changed.
230
231 231 \sa sum
232 232 */
233 /*!
234 \qmlsignal PieSeries::onSumChanged()
235 Emitted when the sum of all slices has changed. This may happen for example if you add or remove slices, or if you
236 change value of a slice.
237 */
233 238
234 239 /*!
235 240 \fn void QPieSeries::added(QList<QPieSlice*> slices)
@@ -239,7 +244,7 QTCOMMERCIALCHART_BEGIN_NAMESPACE
239 244 \sa append(), insert()
240 245 */
241 246 /*!
242 \qmlsignal PieSeries::added(PieSlice slice)
247 \qmlsignal PieSeries::onAdded(PieSlice slice)
243 248 Emitted when \a slice has been added to the series.
244 249 */
245 250
@@ -249,27 +254,31 QTCOMMERCIALCHART_BEGIN_NAMESPACE
249 254 \sa remove()
250 255 */
251 256 /*!
252 \qmlsignal PieSeries::removed(PieSlice slice)
257 \qmlsignal PieSeries::onRemoved(PieSlice slice)
253 258 Emitted when \a slice has been removed from the series.
254 259 */
255 260
256 261 /*!
257 262 \fn void QPieSeries::clicked(QPieSlice* slice)
258
259 263 This signal is emitted when a \a slice has been clicked.
260
261 264 \sa QPieSlice::clicked()
262 265 */
266 /*!
267 \qmlsignal PieSeries::onClicked(PieSlice slice)
268 This signal is emitted when a \a slice has been clicked.
269 */
263 270
264 271 /*!
265 272 \fn void QPieSeries::hovered(QPieSlice* slice, bool state)
266
267 273 This signal is emitted when user has hovered over or away from the \a slice.
268
269 274 \a state is true when user has hovered over the slice and false when hover has moved away from the slice.
270
271 275 \sa QPieSlice::hovered()
272 276 */
277 /*!
278 \qmlsignal PieSeries::onHovered(PieSlice slice, bool state)
279 This signal is emitted when user has hovered over or away from the \a slice. \a state is true when user has hovered
280 over the slice and false when hover has moved away from the slice.
281 */
273 282
274 283 /*!
275 284 \qmlmethod PieSlice PieSeries::at(int index)
@@ -80,7 +80,7 QTCOMMERCIALCHART_BEGIN_NAMESPACE
80 80 \sa label
81 81 */
82 82 /*!
83 \qmlsignal PieSlice::labelChanged()
83 \qmlsignal PieSlice::onLabelChanged()
84 84 This signal emitted when the slice label has been changed.
85 85 \sa label
86 86 */
@@ -102,7 +102,7 QTCOMMERCIALCHART_BEGIN_NAMESPACE
102 102 \sa value
103 103 */
104 104 /*!
105 \qmlsignal PieSlice::valueChanged()
105 \qmlsignal PieSlice::onValueChanged()
106 106 This signal is emitted when the slice value changes.
107 107 \sa value
108 108 */
@@ -123,7 +123,7 QTCOMMERCIALCHART_BEGIN_NAMESPACE
123 123 \sa labelVisible
124 124 */
125 125 /*!
126 \qmlsignal PieSlice::labelVisibleChanged()
126 \qmlsignal PieSlice::onLabelVisibleChanged()
127 127 This signal emitted when visibility of the slice label has changed.
128 128 \sa labelVisible
129 129 */
@@ -168,7 +168,7 QTCOMMERCIALCHART_BEGIN_NAMESPACE
168 168 \sa pen, borderColor
169 169 */
170 170 /*!
171 \qmlsignal PieSlice::borderColorChanged()
171 \qmlsignal PieSlice::onBorderColorChanged()
172 172 This signal is emitted when slice border color changes.
173 173 \sa borderColor
174 174 */
@@ -192,7 +192,7 QTCOMMERCIALCHART_BEGIN_NAMESPACE
192 192 \sa pen, borderWidth
193 193 */
194 194 /*!
195 \qmlsignal PieSlice::borderWidthChanged()
195 \qmlsignal PieSlice::onBorderWidthChanged()
196 196 This signal is emitted when slice border width changes.
197 197 \sa borderWidth
198 198 */
@@ -225,7 +225,7 QTCOMMERCIALCHART_BEGIN_NAMESPACE
225 225 \sa brush
226 226 */
227 227 /*!
228 \qmlsignal PieSlice::colorChanged()
228 \qmlsignal PieSlice::onColorChanged()
229 229 This signal is emitted when slice color changes.
230 230 */
231 231
@@ -258,7 +258,7 QTCOMMERCIALCHART_BEGIN_NAMESPACE
258 258 \sa labelColor
259 259 */
260 260 /*!
261 \qmlsignal PieSlice::labelColorChanged()
261 \qmlsignal PieSlice::onLabelColorChanged()
262 262 This signal is emitted when slice label color changes.
263 263 \sa labelColor
264 264 */
@@ -354,7 +354,7 QTCOMMERCIALCHART_BEGIN_NAMESPACE
354 354 \sa percentage
355 355 */
356 356 /*!
357 \qmlsignal void PieSlice::percentageChanged()
357 \qmlsignal void PieSlice::onPercentageChanged()
358 358 This signal is emitted when the percentage of the slice has changed.
359 359 \sa percentage
360 360 */
@@ -378,7 +378,7 QTCOMMERCIALCHART_BEGIN_NAMESPACE
378 378 \sa startAngle
379 379 */
380 380 /*!
381 \qmlsignal PieSlice::startAngleChanged()
381 \qmlsignal PieSlice::onStartAngleChanged()
382 382 This signal is emitted when the starting angle f the slice has changed.
383 383 \sa startAngle
384 384 */
@@ -402,7 +402,7 QTCOMMERCIALCHART_BEGIN_NAMESPACE
402 402 \sa angleSpan
403 403 */
404 404 /*!
405 \qmlsignal PieSlice::angleSpanChanged()
405 \qmlsignal PieSlice::onAngleSpanChanged()
406 406 This signal is emitted when the angle span of the slice has changed.
407 407 \sa angleSpan
408 408 */
@@ -92,7 +92,7 QTCOMMERCIALCHART_BEGIN_NAMESPACE
92 92 \sa replace()
93 93 */
94 94 /*!
95 \qmlsignal XYSeries::pointReplaced(int index)
95 \qmlsignal XYSeries::onPointReplaced(int index)
96 96 Signal is emitted when a point has been replaced at \a index.
97 97 */
98 98
@@ -102,7 +102,7 QTCOMMERCIALCHART_BEGIN_NAMESPACE
102 102 \sa append(), insert()
103 103 */
104 104 /*!
105 \qmlsignal XYSeries::pointAdded(int index)
105 \qmlsignal XYSeries::onPointAdded(int index)
106 106 Signal is emitted when a point has been added at \a index.
107 107 */
108 108
@@ -112,7 +112,7 QTCOMMERCIALCHART_BEGIN_NAMESPACE
112 112 \sa remove()
113 113 */
114 114 /*!
115 \qmlsignal XYSeries::pointRemoved(int index)
115 \qmlsignal XYSeries::onPointRemoved(int index)
116 116 Signal is emitted when a point has been removed from \a index.
117 117 */
118 118
@@ -121,7 +121,7 QTCOMMERCIALCHART_BEGIN_NAMESPACE
121 121 \brief Signal is emitted when the line (pen) color has changed to \a color.
122 122 */
123 123 /*!
124 \qmlsignal XYSeries::colorChanged(QColor color)
124 \qmlsignal XYSeries::onColorChanged(color color)
125 125 Signal is emitted when the line (pen) color has changed to \a color.
126 126 */
127 127
General Comments 0
You need to be logged in to leave comments. Login now