##// END OF EJS Templates
Add count property for QBoxPlotSeries...
Titta Heikkala -
r2682:7786daffde49
parent child
Show More
@@ -1,397 +1,401
1 /****************************************************************************
1 /****************************************************************************
2 **
2 **
3 ** Copyright (C) 2013 Digia Plc
3 ** Copyright (C) 2013 Digia Plc
4 ** All rights reserved.
4 ** All rights reserved.
5 ** For any questions to Digia, please use contact form at http://qt.digia.com
5 ** For any questions to Digia, please use contact form at http://qt.digia.com
6 **
6 **
7 ** This file is part of the Qt Enterprise Charts Add-on.
7 ** This file is part of the Qt Enterprise Charts Add-on.
8 **
8 **
9 ** $QT_BEGIN_LICENSE$
9 ** $QT_BEGIN_LICENSE$
10 ** Licensees holding valid Qt Enterprise licenses may use this file in
10 ** Licensees holding valid Qt Enterprise licenses may use this file in
11 ** accordance with the Qt Enterprise License Agreement provided with the
11 ** accordance with the Qt Enterprise License Agreement provided with the
12 ** Software or, alternatively, in accordance with the terms contained in
12 ** Software or, alternatively, in accordance with the terms contained in
13 ** a written agreement between you and Digia.
13 ** a written agreement between you and Digia.
14 **
14 **
15 ** If you have questions regarding the use of this file, please use
15 ** If you have questions regarding the use of this file, please use
16 ** contact form at http://qt.digia.com
16 ** contact form at http://qt.digia.com
17 ** $QT_END_LICENSE$
17 ** $QT_END_LICENSE$
18 **
18 **
19 ****************************************************************************/
19 ****************************************************************************/
20
20
21 #include "declarativebarseries.h"
21 #include "declarativebarseries.h"
22 #include "declarativeboxplotseries.h"
22 #include "declarativeboxplotseries.h"
23 #include "qboxset.h"
23 #include "qboxset.h"
24 #include "qvboxplotmodelmapper.h"
24 #include "qvboxplotmodelmapper.h"
25
25
26 QTCOMMERCIALCHART_BEGIN_NAMESPACE
26 QTCOMMERCIALCHART_BEGIN_NAMESPACE
27
27
28 #ifdef QDOC_QT5
28 #ifdef QDOC_QT5
29 /*!
29 /*!
30 \qmltype BoxSet
30 \qmltype BoxSet
31 \instantiates QBoxSet
31 \instantiates QBoxSet
32 \inqmlmodule QtCommercial.Chart
32 \inqmlmodule QtCommercial.Chart
33
33
34 \include doc/src/declarativeboxset.qdocinc
34 \include doc/src/declarativeboxset.qdocinc
35 */
35 */
36 #else
36 #else
37 /*!
37 /*!
38 \qmlclass BoxSet QBoxSet
38 \qmlclass BoxSet QBoxSet
39
39
40 \include ../doc/src/declarativeboxset.qdocinc
40 \include ../doc/src/declarativeboxset.qdocinc
41 */
41 */
42 #endif
42 #endif
43 /*!
43 /*!
44 \qmlproperty string BoxSet::values
44 \qmlproperty string BoxSet::values
45 The values on the box-and-whiskers set.
45 The values on the box-and-whiskers set.
46 */
46 */
47 /*!
47 /*!
48 \qmlproperty string BoxSet::label
48 \qmlproperty string BoxSet::label
49 Defines the label of the box-and-whiskers set.
49 Defines the label of the box-and-whiskers set.
50 */
50 */
51 /*!
51 /*!
52 \qmlproperty int BoxSet::count
52 \qmlproperty int BoxSet::count
53 The count of values on the box-and-whiskers set
53 The count of values on the box-and-whiskers set
54 */
54 */
55 /*!
55 /*!
56 \qmlmethod void BoxSet::at(int index)
56 \qmlmethod void BoxSet::at(int index)
57 Returns the value at \a index position.
57 Returns the value at \a index position.
58 */
58 */
59 /*!
59 /*!
60 \qmlmethod void BoxSet::append(qreal value)
60 \qmlmethod void BoxSet::append(qreal value)
61 Appends new value \a value to the end of set.
61 Appends new value \a value to the end of set.
62 */
62 */
63 /*!
63 /*!
64 \qmlmethod void BoxSet::clear()
64 \qmlmethod void BoxSet::clear()
65 Sets all values on the set to 0.
65 Sets all values on the set to 0.
66 */
66 */
67 /*!
67 /*!
68 \qmlmethod void BoxSet::setValue(int index, qreal value)
68 \qmlmethod void BoxSet::setValue(int index, qreal value)
69 Sets a new \a value on the \a index position.
69 Sets a new \a value on the \a index position.
70 */
70 */
71 /*!
71 /*!
72 \qmlsignal BoxSet::onClicked()
72 \qmlsignal BoxSet::onClicked()
73 This signal is emitted when the user clicks with a mouse on top of box-and-whiskers item.
73 This signal is emitted when the user clicks with a mouse on top of box-and-whiskers item.
74 */
74 */
75 /*!
75 /*!
76 \qmlsignal BoxSet::onHovered(bool status)
76 \qmlsignal BoxSet::onHovered(bool status)
77 The signal is emitted if mouse is hovered on top of box-and-whiskers item.
77 The signal is emitted if mouse is hovered on top of box-and-whiskers item.
78 Parameter \a status is true, if mouse entered on top of the item, and false if mouse left from top of the item.
78 Parameter \a status is true, if mouse entered on top of the item, and false if mouse left from top of the item.
79 */
79 */
80 /*!
80 /*!
81 \qmlsignal BoxSet::onPenChanged()
81 \qmlsignal BoxSet::onPenChanged()
82 This signal is emitted when the pen of the box-and-whiskers item has changed.
82 This signal is emitted when the pen of the box-and-whiskers item has changed.
83 */
83 */
84 /*!
84 /*!
85 \qmlsignal BoxSet::onBrushChanged()
85 \qmlsignal BoxSet::onBrushChanged()
86 This signal is emitted when the brush of the box-and-whiskers item has changed.
86 This signal is emitted when the brush of the box-and-whiskers item has changed.
87 */
87 */
88 /*!
88 /*!
89 \qmlsignal BoxSet::onChangedValues()
89 \qmlsignal BoxSet::onChangedValues()
90 This signal is emitted when multiple values have been changed on the box-and-whiskers item.
90 This signal is emitted when multiple values have been changed on the box-and-whiskers item.
91 */
91 */
92 /*!
92 /*!
93 \qmlsignal BoxSet::onChangedValue(int index)
93 \qmlsignal BoxSet::onChangedValue(int index)
94 This signal is emitted values the value in the box-and-whiskers item has been modified.
94 This signal is emitted values the value in the box-and-whiskers item has been modified.
95 Parameter \a index indicates the position of the modified value.
95 Parameter \a index indicates the position of the modified value.
96 */
96 */
97 /*!
97 /*!
98 \qmlsignal BoxSet::onCleared()
98 \qmlsignal BoxSet::onCleared()
99 This signal is emitted when all the values on the set are cleared to 0.
99 This signal is emitted when all the values on the set are cleared to 0.
100 */
100 */
101
101
102
102
103 #ifdef QDOC_QT5
103 #ifdef QDOC_QT5
104 /*!
104 /*!
105 \qmltype BoxPlotSeries
105 \qmltype BoxPlotSeries
106 \instantiates QBoxPlotSeries
106 \instantiates QBoxPlotSeries
107 \inqmlmodule QtCommercial.Chart
107 \inqmlmodule QtCommercial.Chart
108
108
109 \include doc/src/declarativeboxplotseries.qdocinc
109 \include doc/src/declarativeboxplotseries.qdocinc
110 */
110 */
111 #else
111 #else
112 /*!
112 /*!
113 \qmlclass BoxPlotSeries QBoxPlotSeries
113 \qmlclass BoxPlotSeries QBoxPlotSeries
114
114
115 \include ../doc/src/declarativeboxplotseries.qdocinc
115 \include ../doc/src/declarativeboxplotseries.qdocinc
116 */
116 */
117 #endif
117 #endif
118
118
119 /*!
119 /*!
120 \qmlmethod BoxPlotSeries::append(string label, VariantList values)
120 \qmlmethod BoxPlotSeries::append(string label, VariantList values)
121 Appends a new box-and-whiskers set with \a label and \a values to the series.
121 Appends a new box-and-whiskers set with \a label and \a values to the series.
122 */
122 */
123 /*!
123 /*!
124 \qmlmethod BoxPlotSeries::append(BoxSet box)
124 \qmlmethod BoxPlotSeries::append(BoxSet box)
125 Appends the \a box to the series.
125 Appends the \a box to the series.
126 */
126 */
127 /*!
127 /*!
128 \qmlmethod BoxPlotSeries::insert(int index, string label, VariantList values)
128 \qmlmethod BoxPlotSeries::insert(int index, string label, VariantList values)
129 Inserts a new box-and-whiskers set with \a label and \a values at the \a index position.
129 Inserts a new box-and-whiskers set with \a label and \a values at the \a index position.
130 */
130 */
131 /*!
131 /*!
132 \qmlmethod BoxPlotSeries::remove(QBoxSet boxset)
132 \qmlmethod BoxPlotSeries::remove(QBoxSet boxset)
133 Removes the \a boxset from the series.
133 Removes the \a boxset from the series.
134 */
134 */
135 /*!
135 /*!
136 \qmlmethod BoxPlotSeries::clear()
136 \qmlmethod BoxPlotSeries::clear()
137 Removes all boxsets from the series. Deletes removed sets.
137 Removes all boxsets from the series. Deletes removed sets.
138 */
138 */
139 /*!
139 /*!
140 \qmlsignal BoxPlotSeries::onClicked(BoxSet boxset);
140 \qmlsignal BoxPlotSeries::onClicked(BoxSet boxset);
141 Signal is emitted when the user clicks the \a boxset on the chart.
141 Signal is emitted when the user clicks the \a boxset on the chart.
142 */
142 */
143 /*!
143 /*!
144 \qmlsignal BoxPlotSeries::onHovered(bool status, BoxSet boxset);
144 \qmlsignal BoxPlotSeries::onHovered(bool status, BoxSet boxset);
145 Signal is emitted when there is change in hover \a status over \a boxset.
145 Signal is emitted when there is change in hover \a status over \a boxset.
146 */
146 */
147 /*!
147 /*!
148 \qmlsignal BoxPlotSeries::onCountChanged();
148 \qmlsignal BoxPlotSeries::onCountChanged();
149 Signal is emitted when there is change in count of box-and-whiskers items in the series.
149 Signal is emitted when there is change in count of box-and-whiskers items in the series.
150 */
150 */
151 /*!
151 /*!
152 \qmlsignal BoxPlotSeries::onBoxsetsAdded()
152 \qmlsignal BoxPlotSeries::onBoxsetsAdded()
153 Signal is emitted when new box-and-whiskers sets are added to the series.
153 Signal is emitted when new box-and-whiskers sets are added to the series.
154 */
154 */
155 /*!
155 /*!
156 \qmlsignal BoxPlotSeries::onBoxsetsRemoved()
156 \qmlsignal BoxPlotSeries::onBoxsetsRemoved()
157 Signal is emitted when new box-and-whiskers sets are removed from the series.
157 Signal is emitted when new box-and-whiskers sets are removed from the series.
158 */
158 */
159 /*!
159 /*!
160 \qmlproperty AbstractAxis BoxPlotSeries::axisX
160 \qmlproperty AbstractAxis BoxPlotSeries::axisX
161 The x axis used for the series. If you leave both axisX and axisXTop undefined, a BarCategoriesAxis is created for
161 The x axis used for the series. If you leave both axisX and axisXTop undefined, a BarCategoriesAxis is created for
162 the series.
162 the series.
163 \sa axisXTop
163 \sa axisXTop
164 */
164 */
165 /*!
165 /*!
166 \qmlproperty AbstractAxis BoxPlotSeries::axisY
166 \qmlproperty AbstractAxis BoxPlotSeries::axisY
167 The y axis used for the series. If you leave both axisY and axisYRight undefined, a ValueAxis is created for
167 The y axis used for the series. If you leave both axisY and axisYRight undefined, a ValueAxis is created for
168 the series.
168 the series.
169 \sa axisYRight
169 \sa axisYRight
170 */
170 */
171 /*!
171 /*!
172 \qmlproperty AbstractAxis BoxPlotSeries::axisXTop
172 \qmlproperty AbstractAxis BoxPlotSeries::axisXTop
173 The x axis used for the series, drawn on top of the chart view. Note that you can only provide either axisX or
173 The x axis used for the series, drawn on top of the chart view. Note that you can only provide either axisX or
174 axisXTop, but not both.
174 axisXTop, but not both.
175 \sa axisX
175 \sa axisX
176 */
176 */
177 /*!
177 /*!
178 \qmlproperty AbstractAxis BoxPlotSeries::axisYRight
178 \qmlproperty AbstractAxis BoxPlotSeries::axisYRight
179 The y axis used for the series, drawn to the right on the chart view. Note that you can only provide either axisY
179 The y axis used for the series, drawn to the right on the chart view. Note that you can only provide either axisY
180 or axisYRight, but not both.
180 or axisYRight, but not both.
181 \sa axisY
181 \sa axisY
182 */
182 */
183 /*!
183 /*!
184 \qmlproperty bool BoxPlotSeries::boxOutlineVisible
184 \qmlproperty bool BoxPlotSeries::boxOutlineVisible
185 This property configures the visibility of the middle box outline.
185 This property configures the visibility of the middle box outline.
186 */
186 */
187 /*!
187 /*!
188 \qmlproperty qreal BoxPlotSeries::boxWidth
188 \qmlproperty qreal BoxPlotSeries::boxWidth
189 This property configures the width of the box-and-whiskers item. The value signifies the relative
189 This property configures the width of the box-and-whiskers item. The value signifies the relative
190 width of the box-and-whiskers item inside its own slot. The value can between 0.0 and 1.0. Negative values
190 width of the box-and-whiskers item inside its own slot. The value can between 0.0 and 1.0. Negative values
191 are clamped to 0.0 and values over 1.0 are clamped to 1.0.
191 are clamped to 0.0 and values over 1.0 are clamped to 1.0.
192 */
192 */
193 /*!
193 /*!
194 \qmlproperty Pen BoxPlotSeries::pen
194 \qmlproperty Pen BoxPlotSeries::pen
195 This property configures the pen of the box-and-whiskers items.
195 This property configures the pen of the box-and-whiskers items.
196 */
196 */
197 /*!
197 /*!
198 \qmlproperty Brush BoxPlotSeries::brush
198 \qmlproperty Brush BoxPlotSeries::brush
199 This property configures the brush of the box-and-whiskers items.
199 This property configures the brush of the box-and-whiskers items.
200 */
200 */
201 /*!
201 /*!
202 \qmlproperty int BoxPlotSeries::count
203 The count of sets in series.
204 */
205 /*!
202 \qmlsignal BoxPlotSeries::onBoxOutlineVisibilityChanged()
206 \qmlsignal BoxPlotSeries::onBoxOutlineVisibilityChanged()
203 Signal is emitted when the middle box outline visibility is changed.
207 Signal is emitted when the middle box outline visibility is changed.
204 */
208 */
205 /*!
209 /*!
206 \qmlsignal BoxPlotSeries::onBoxWidthChanged()
210 \qmlsignal BoxPlotSeries::onBoxWidthChanged()
207 Signal is emitted when the width of the box-and-whiskers item is changed.
211 Signal is emitted when the width of the box-and-whiskers item is changed.
208 */
212 */
209 /*!
213 /*!
210 \qmlsignal BoxPlotSeries::onPenChanged()
214 \qmlsignal BoxPlotSeries::onPenChanged()
211 Signal is emitted when the pen for box-and-whiskers items has changed.
215 Signal is emitted when the pen for box-and-whiskers items has changed.
212 */
216 */
213 /*!
217 /*!
214 \qmlsignal BoxPlotSeries::onBrushChanged()
218 \qmlsignal BoxPlotSeries::onBrushChanged()
215 Signal is emitted when the brush for box-and-whiskers items has changed.
219 Signal is emitted when the brush for box-and-whiskers items has changed.
216 */
220 */
217 /*!
221 /*!
218 \qmlsignal BoxPlotSeries::onClicked(BoxSet boxset)
222 \qmlsignal BoxPlotSeries::onClicked(BoxSet boxset)
219 Signal is emitted when the user clicks the \a boxset on the chart.
223 Signal is emitted when the user clicks the \a boxset on the chart.
220 */
224 */
221 /*!
225 /*!
222 \qmlsignal BoxPlotSeries::onHovered(bool status, BoxSet boxset)
226 \qmlsignal BoxPlotSeries::onHovered(bool status, BoxSet boxset)
223 Signal is emitted when there is change in hover \a status over \a boxset.
227 Signal is emitted when there is change in hover \a status over \a boxset.
224 */
228 */
225 /*!
229 /*!
226 \qmlsignal BoxPlotSeries::onAxisXChanged(AbstractAxis axis)
230 \qmlsignal BoxPlotSeries::onAxisXChanged(AbstractAxis axis)
227 Signal is emitted when there is change in X axis.
231 Signal is emitted when there is change in X axis.
228 */
232 */
229 /*!
233 /*!
230 \qmlsignal BoxPlotSeries::onAxisYChanged(AbstractAxis axis)
234 \qmlsignal BoxPlotSeries::onAxisYChanged(AbstractAxis axis)
231 Signal is emitted when there is change in Y axis.
235 Signal is emitted when there is change in Y axis.
232 */
236 */
233 /*!
237 /*!
234 \qmlsignal BoxPlotSeries::onAxisXTopChanged(AbstractAxis axis)
238 \qmlsignal BoxPlotSeries::onAxisXTopChanged(AbstractAxis axis)
235 Signal is emitted when there is change in top X axis.
239 Signal is emitted when there is change in top X axis.
236 */
240 */
237 /*!
241 /*!
238 \qmlsignal BoxPlotSeries::onAxisYRightChanged(AbstractAxis axis)
242 \qmlsignal BoxPlotSeries::onAxisYRightChanged(AbstractAxis axis)
239 Signal is emitted when there is change in Y right axis.
243 Signal is emitted when there is change in Y right axis.
240 */
244 */
241
245
242
246
243 DeclarativeBoxSet::DeclarativeBoxSet(const QString label, QObject *parent)
247 DeclarativeBoxSet::DeclarativeBoxSet(const QString label, QObject *parent)
244 : QBoxSet(label, parent)
248 : QBoxSet(label, parent)
245 {
249 {
246 connect(this, SIGNAL(valuesChanged()), this, SIGNAL(changedValues()));
250 connect(this, SIGNAL(valuesChanged()), this, SIGNAL(changedValues()));
247 connect(this, SIGNAL(valueChanged(int)), this, SIGNAL(changedValue(int)));
251 connect(this, SIGNAL(valueChanged(int)), this, SIGNAL(changedValue(int)));
248 connect(this, SIGNAL(brushChanged()), this, SLOT(handleBrushChanged()));
252 connect(this, SIGNAL(brushChanged()), this, SLOT(handleBrushChanged()));
249 }
253 }
250
254
251 QVariantList DeclarativeBoxSet::values()
255 QVariantList DeclarativeBoxSet::values()
252 {
256 {
253 QVariantList values;
257 QVariantList values;
254 for (int i(0); i < 5; i++)
258 for (int i(0); i < 5; i++)
255 values.append(QVariant(QBoxSet::at(i)));
259 values.append(QVariant(QBoxSet::at(i)));
256 return values;
260 return values;
257 }
261 }
258
262
259 void DeclarativeBoxSet::setValues(QVariantList values)
263 void DeclarativeBoxSet::setValues(QVariantList values)
260 {
264 {
261 for (int i(0); i < values.count(); i++) {
265 for (int i(0); i < values.count(); i++) {
262 if (values.at(i).canConvert(QVariant::Double))
266 if (values.at(i).canConvert(QVariant::Double))
263 QBoxSet::append(values[i].toDouble());
267 QBoxSet::append(values[i].toDouble());
264 }
268 }
265 }
269 }
266
270
267 QString DeclarativeBoxSet::brushFilename() const
271 QString DeclarativeBoxSet::brushFilename() const
268 {
272 {
269 return m_brushFilename;
273 return m_brushFilename;
270 }
274 }
271
275
272 void DeclarativeBoxSet::setBrushFilename(const QString &brushFilename)
276 void DeclarativeBoxSet::setBrushFilename(const QString &brushFilename)
273 {
277 {
274 QImage brushImage(brushFilename);
278 QImage brushImage(brushFilename);
275 if (QBoxSet::brush().textureImage() != brushImage) {
279 if (QBoxSet::brush().textureImage() != brushImage) {
276 QBrush brush = QBoxSet::brush();
280 QBrush brush = QBoxSet::brush();
277 brush.setTextureImage(brushImage);
281 brush.setTextureImage(brushImage);
278 QBoxSet::setBrush(brush);
282 QBoxSet::setBrush(brush);
279 m_brushFilename = brushFilename;
283 m_brushFilename = brushFilename;
280 m_brushImage = brushImage;
284 m_brushImage = brushImage;
281 emit brushFilenameChanged(brushFilename);
285 emit brushFilenameChanged(brushFilename);
282 }
286 }
283 }
287 }
284
288
285 void DeclarativeBoxSet::handleBrushChanged()
289 void DeclarativeBoxSet::handleBrushChanged()
286 {
290 {
287 // If the texture image of the brush has changed along the brush
291 // If the texture image of the brush has changed along the brush
288 // the brush file name needs to be cleared.
292 // the brush file name needs to be cleared.
289 if (!m_brushFilename.isEmpty() && QBoxSet::brush().textureImage() != m_brushImage) {
293 if (!m_brushFilename.isEmpty() && QBoxSet::brush().textureImage() != m_brushImage) {
290 m_brushFilename.clear();
294 m_brushFilename.clear();
291 emit brushFilenameChanged(QString(""));
295 emit brushFilenameChanged(QString(""));
292 }
296 }
293 }
297 }
294
298
295 // =====================================================
299 // =====================================================
296
300
297 DeclarativeBoxPlotSeries::DeclarativeBoxPlotSeries(QDECLARATIVE_ITEM *parent) :
301 DeclarativeBoxPlotSeries::DeclarativeBoxPlotSeries(QDECLARATIVE_ITEM *parent) :
298 QBoxPlotSeries(parent),
302 QBoxPlotSeries(parent),
299 m_axes(new DeclarativeAxes(this))
303 m_axes(new DeclarativeAxes(this))
300 {
304 {
301 connect(m_axes, SIGNAL(axisXChanged(QAbstractAxis*)), this, SIGNAL(axisXChanged(QAbstractAxis*)));
305 connect(m_axes, SIGNAL(axisXChanged(QAbstractAxis*)), this, SIGNAL(axisXChanged(QAbstractAxis*)));
302 connect(m_axes, SIGNAL(axisYChanged(QAbstractAxis*)), this, SIGNAL(axisYChanged(QAbstractAxis*)));
306 connect(m_axes, SIGNAL(axisYChanged(QAbstractAxis*)), this, SIGNAL(axisYChanged(QAbstractAxis*)));
303 connect(m_axes, SIGNAL(axisXTopChanged(QAbstractAxis*)), this, SIGNAL(axisXTopChanged(QAbstractAxis*)));
307 connect(m_axes, SIGNAL(axisXTopChanged(QAbstractAxis*)), this, SIGNAL(axisXTopChanged(QAbstractAxis*)));
304 connect(m_axes, SIGNAL(axisYRightChanged(QAbstractAxis*)), this, SIGNAL(axisYRightChanged(QAbstractAxis*)));
308 connect(m_axes, SIGNAL(axisYRightChanged(QAbstractAxis*)), this, SIGNAL(axisYRightChanged(QAbstractAxis*)));
305 connect(this, SIGNAL(hovered(bool, QBoxSet*)), this, SLOT(onHovered(bool, QBoxSet*)));
309 connect(this, SIGNAL(hovered(bool, QBoxSet*)), this, SLOT(onHovered(bool, QBoxSet*)));
306 connect(this, SIGNAL(clicked(QBoxSet*)), this, SLOT(onClicked(QBoxSet*)));
310 connect(this, SIGNAL(clicked(QBoxSet*)), this, SLOT(onClicked(QBoxSet*)));
307 connect(this, SIGNAL(brushChanged()), this, SLOT(handleBrushChanged()));
311 connect(this, SIGNAL(brushChanged()), this, SLOT(handleBrushChanged()));
308 }
312 }
309
313
310 void DeclarativeBoxPlotSeries::classBegin()
314 void DeclarativeBoxPlotSeries::classBegin()
311 {
315 {
312 }
316 }
313
317
314 void DeclarativeBoxPlotSeries::componentComplete()
318 void DeclarativeBoxPlotSeries::componentComplete()
315 {
319 {
316 foreach (QObject *child, children()) {
320 foreach (QObject *child, children()) {
317 if (qobject_cast<DeclarativeBoxSet *>(child)) {
321 if (qobject_cast<DeclarativeBoxSet *>(child)) {
318 QBoxPlotSeries::append(qobject_cast<DeclarativeBoxSet *>(child));
322 QBoxPlotSeries::append(qobject_cast<DeclarativeBoxSet *>(child));
319 } else if (qobject_cast<QVBoxPlotModelMapper *>(child)) {
323 } else if (qobject_cast<QVBoxPlotModelMapper *>(child)) {
320 QVBoxPlotModelMapper *mapper = qobject_cast<QVBoxPlotModelMapper *>(child);
324 QVBoxPlotModelMapper *mapper = qobject_cast<QVBoxPlotModelMapper *>(child);
321 mapper->setSeries(this);
325 mapper->setSeries(this);
322 }
326 }
323 }
327 }
324 }
328 }
325
329
326 QDECLARATIVE_LIST_PROPERTY<QObject> DeclarativeBoxPlotSeries::seriesChildren()
330 QDECLARATIVE_LIST_PROPERTY<QObject> DeclarativeBoxPlotSeries::seriesChildren()
327 {
331 {
328 return QDECLARATIVE_LIST_PROPERTY<QObject>(this, 0, &DeclarativeBoxPlotSeries::appendSeriesChildren LIST_PROPERTY_PARAM_DEFAULTS);
332 return QDECLARATIVE_LIST_PROPERTY<QObject>(this, 0, &DeclarativeBoxPlotSeries::appendSeriesChildren LIST_PROPERTY_PARAM_DEFAULTS);
329 }
333 }
330
334
331 void DeclarativeBoxPlotSeries::appendSeriesChildren(QDECLARATIVE_LIST_PROPERTY<QObject> *list, QObject *element)
335 void DeclarativeBoxPlotSeries::appendSeriesChildren(QDECLARATIVE_LIST_PROPERTY<QObject> *list, QObject *element)
332 {
336 {
333 // Empty implementation; the children are parsed in componentComplete instead
337 // Empty implementation; the children are parsed in componentComplete instead
334 Q_UNUSED(list);
338 Q_UNUSED(list);
335 Q_UNUSED(element);
339 Q_UNUSED(element);
336 }
340 }
337
341
338 DeclarativeBoxSet *DeclarativeBoxPlotSeries::at(int index)
342 DeclarativeBoxSet *DeclarativeBoxPlotSeries::at(int index)
339 {
343 {
340 QList<QBoxSet *> setList = boxSets();
344 QList<QBoxSet *> setList = boxSets();
341 if (index >= 0 && index < setList.count())
345 if (index >= 0 && index < setList.count())
342 return qobject_cast<DeclarativeBoxSet *>(setList[index]);
346 return qobject_cast<DeclarativeBoxSet *>(setList[index]);
343
347
344 return 0;
348 return 0;
345 }
349 }
346
350
347 DeclarativeBoxSet *DeclarativeBoxPlotSeries::insert(int index, const QString label, QVariantList values)
351 DeclarativeBoxSet *DeclarativeBoxPlotSeries::insert(int index, const QString label, QVariantList values)
348 {
352 {
349 DeclarativeBoxSet *barset = new DeclarativeBoxSet(label, this);
353 DeclarativeBoxSet *barset = new DeclarativeBoxSet(label, this);
350 barset->setValues(values);
354 barset->setValues(values);
351 if (QBoxPlotSeries::insert(index, barset))
355 if (QBoxPlotSeries::insert(index, barset))
352 return barset;
356 return barset;
353 delete barset;
357 delete barset;
354 return 0;
358 return 0;
355 }
359 }
356
360
357 void DeclarativeBoxPlotSeries::onHovered(bool status, QBoxSet *boxset)
361 void DeclarativeBoxPlotSeries::onHovered(bool status, QBoxSet *boxset)
358 {
362 {
359 emit hovered(status, qobject_cast<DeclarativeBoxSet *>(boxset));
363 emit hovered(status, qobject_cast<DeclarativeBoxSet *>(boxset));
360 }
364 }
361
365
362 void DeclarativeBoxPlotSeries::onClicked(QBoxSet *boxset)
366 void DeclarativeBoxPlotSeries::onClicked(QBoxSet *boxset)
363 {
367 {
364 emit clicked(qobject_cast<DeclarativeBoxSet *>(boxset));
368 emit clicked(qobject_cast<DeclarativeBoxSet *>(boxset));
365 }
369 }
366
370
367 QString DeclarativeBoxPlotSeries::brushFilename() const
371 QString DeclarativeBoxPlotSeries::brushFilename() const
368 {
372 {
369 return m_brushFilename;
373 return m_brushFilename;
370 }
374 }
371
375
372 void DeclarativeBoxPlotSeries::setBrushFilename(const QString &brushFilename)
376 void DeclarativeBoxPlotSeries::setBrushFilename(const QString &brushFilename)
373 {
377 {
374 QImage brushImage(brushFilename);
378 QImage brushImage(brushFilename);
375 if (QBoxPlotSeries::brush().textureImage() != brushImage) {
379 if (QBoxPlotSeries::brush().textureImage() != brushImage) {
376 QBrush brush = QBoxPlotSeries::brush();
380 QBrush brush = QBoxPlotSeries::brush();
377 brush.setTextureImage(brushImage);
381 brush.setTextureImage(brushImage);
378 QBoxPlotSeries::setBrush(brush);
382 QBoxPlotSeries::setBrush(brush);
379 m_brushFilename = brushFilename;
383 m_brushFilename = brushFilename;
380 m_brushImage = brushImage;
384 m_brushImage = brushImage;
381 emit brushFilenameChanged(brushFilename);
385 emit brushFilenameChanged(brushFilename);
382 }
386 }
383 }
387 }
384
388
385 void DeclarativeBoxPlotSeries::handleBrushChanged()
389 void DeclarativeBoxPlotSeries::handleBrushChanged()
386 {
390 {
387 // If the texture image of the brush has changed along the brush
391 // If the texture image of the brush has changed along the brush
388 // the brush file name needs to be cleared.
392 // the brush file name needs to be cleared.
389 if (!m_brushFilename.isEmpty() && QBoxPlotSeries::brush().textureImage() != m_brushImage) {
393 if (!m_brushFilename.isEmpty() && QBoxPlotSeries::brush().textureImage() != m_brushImage) {
390 m_brushFilename.clear();
394 m_brushFilename.clear();
391 emit brushFilenameChanged(QString(""));
395 emit brushFilenameChanged(QString(""));
392 }
396 }
393 }
397 }
394
398
395 #include "moc_declarativeboxplotseries.cpp"
399 #include "moc_declarativeboxplotseries.cpp"
396
400
397 QTCOMMERCIALCHART_END_NAMESPACE
401 QTCOMMERCIALCHART_END_NAMESPACE
@@ -1,2170 +1,2170
1 import QtQuick.tooling 1.1
1 import QtQuick.tooling 1.1
2
2
3 // This file describes the plugin-supplied types contained in the library.
3 // This file describes the plugin-supplied types contained in the library.
4 // It is used for QML tooling purposes only.
4 // It is used for QML tooling purposes only.
5 //
5 //
6 // This file was auto-generated by:
6 // This file was auto-generated by:
7 // 'qmlplugindump -nonrelocatable QtCommercial.Chart 1.4'
7 // 'qmlplugindump -nonrelocatable QtCommercial.Chart 1.4'
8
8
9 Module {
9 Module {
10 Component {
10 Component {
11 name: "QGraphicsObject"
11 name: "QGraphicsObject"
12 defaultProperty: "children"
12 defaultProperty: "children"
13 prototype: "QObject"
13 prototype: "QObject"
14 Property { name: "parent"; type: "QGraphicsObject"; isPointer: true }
14 Property { name: "parent"; type: "QGraphicsObject"; isPointer: true }
15 Property { name: "opacity"; type: "double" }
15 Property { name: "opacity"; type: "double" }
16 Property { name: "enabled"; type: "bool" }
16 Property { name: "enabled"; type: "bool" }
17 Property { name: "visible"; type: "bool" }
17 Property { name: "visible"; type: "bool" }
18 Property { name: "pos"; type: "QPointF" }
18 Property { name: "pos"; type: "QPointF" }
19 Property { name: "x"; type: "double" }
19 Property { name: "x"; type: "double" }
20 Property { name: "y"; type: "double" }
20 Property { name: "y"; type: "double" }
21 Property { name: "z"; type: "double" }
21 Property { name: "z"; type: "double" }
22 Property { name: "rotation"; type: "double" }
22 Property { name: "rotation"; type: "double" }
23 Property { name: "scale"; type: "double" }
23 Property { name: "scale"; type: "double" }
24 Property { name: "transformOriginPoint"; type: "QPointF" }
24 Property { name: "transformOriginPoint"; type: "QPointF" }
25 Property { name: "effect"; type: "QGraphicsEffect"; isPointer: true }
25 Property { name: "effect"; type: "QGraphicsEffect"; isPointer: true }
26 Property {
26 Property {
27 name: "children"
27 name: "children"
28 type: "QDeclarativeListProperty<QGraphicsObject>"
28 type: "QDeclarativeListProperty<QGraphicsObject>"
29 isReadonly: true
29 isReadonly: true
30 }
30 }
31 Property { name: "width"; type: "double" }
31 Property { name: "width"; type: "double" }
32 Property { name: "height"; type: "double" }
32 Property { name: "height"; type: "double" }
33 }
33 }
34 Component {
34 Component {
35 name: "QGraphicsWidget"
35 name: "QGraphicsWidget"
36 defaultProperty: "children"
36 defaultProperty: "children"
37 prototype: "QGraphicsObject"
37 prototype: "QGraphicsObject"
38 Property { name: "palette"; type: "QPalette" }
38 Property { name: "palette"; type: "QPalette" }
39 Property { name: "font"; type: "QFont" }
39 Property { name: "font"; type: "QFont" }
40 Property { name: "layoutDirection"; type: "Qt::LayoutDirection" }
40 Property { name: "layoutDirection"; type: "Qt::LayoutDirection" }
41 Property { name: "size"; type: "QSizeF" }
41 Property { name: "size"; type: "QSizeF" }
42 Property { name: "minimumSize"; type: "QSizeF" }
42 Property { name: "minimumSize"; type: "QSizeF" }
43 Property { name: "preferredSize"; type: "QSizeF" }
43 Property { name: "preferredSize"; type: "QSizeF" }
44 Property { name: "maximumSize"; type: "QSizeF" }
44 Property { name: "maximumSize"; type: "QSizeF" }
45 Property { name: "sizePolicy"; type: "QSizePolicy" }
45 Property { name: "sizePolicy"; type: "QSizePolicy" }
46 Property { name: "focusPolicy"; type: "Qt::FocusPolicy" }
46 Property { name: "focusPolicy"; type: "Qt::FocusPolicy" }
47 Property { name: "windowFlags"; type: "Qt::WindowFlags" }
47 Property { name: "windowFlags"; type: "Qt::WindowFlags" }
48 Property { name: "windowTitle"; type: "string" }
48 Property { name: "windowTitle"; type: "string" }
49 Property { name: "geometry"; type: "QRectF" }
49 Property { name: "geometry"; type: "QRectF" }
50 Property { name: "autoFillBackground"; type: "bool" }
50 Property { name: "autoFillBackground"; type: "bool" }
51 Property { name: "layout"; type: "QGraphicsLayout"; isPointer: true }
51 Property { name: "layout"; type: "QGraphicsLayout"; isPointer: true }
52 Method { name: "close"; type: "bool" }
52 Method { name: "close"; type: "bool" }
53 }
53 }
54 Component {
54 Component {
55 name: "QtCommercialChart::DeclarativeAreaSeries"
55 name: "QtCommercialChart::DeclarativeAreaSeries"
56 prototype: "QtCommercialChart::QAreaSeries"
56 prototype: "QtCommercialChart::QAreaSeries"
57 exports: [
57 exports: [
58 "QtCommercial.Chart/AreaSeries 1.0",
58 "QtCommercial.Chart/AreaSeries 1.0",
59 "QtCommercial.Chart/AreaSeries 1.1",
59 "QtCommercial.Chart/AreaSeries 1.1",
60 "QtCommercial.Chart/AreaSeries 1.2",
60 "QtCommercial.Chart/AreaSeries 1.2",
61 "QtCommercial.Chart/AreaSeries 1.3",
61 "QtCommercial.Chart/AreaSeries 1.3",
62 "QtCommercial.Chart/AreaSeries 1.4"
62 "QtCommercial.Chart/AreaSeries 1.4"
63 ]
63 ]
64 exportMetaObjectRevisions: [0, 1, 2, 3, 4]
64 exportMetaObjectRevisions: [0, 1, 2, 3, 4]
65 Property { name: "upperSeries"; type: "DeclarativeLineSeries"; isPointer: true }
65 Property { name: "upperSeries"; type: "DeclarativeLineSeries"; isPointer: true }
66 Property { name: "lowerSeries"; type: "DeclarativeLineSeries"; isPointer: true }
66 Property { name: "lowerSeries"; type: "DeclarativeLineSeries"; isPointer: true }
67 Property { name: "axisX"; revision: 1; type: "QAbstractAxis"; isPointer: true }
67 Property { name: "axisX"; revision: 1; type: "QAbstractAxis"; isPointer: true }
68 Property { name: "axisY"; revision: 1; type: "QAbstractAxis"; isPointer: true }
68 Property { name: "axisY"; revision: 1; type: "QAbstractAxis"; isPointer: true }
69 Property { name: "axisXTop"; revision: 2; type: "QAbstractAxis"; isPointer: true }
69 Property { name: "axisXTop"; revision: 2; type: "QAbstractAxis"; isPointer: true }
70 Property { name: "axisYRight"; revision: 2; type: "QAbstractAxis"; isPointer: true }
70 Property { name: "axisYRight"; revision: 2; type: "QAbstractAxis"; isPointer: true }
71 Property { name: "axisAngular"; revision: 3; type: "QAbstractAxis"; isPointer: true }
71 Property { name: "axisAngular"; revision: 3; type: "QAbstractAxis"; isPointer: true }
72 Property { name: "axisRadial"; revision: 3; type: "QAbstractAxis"; isPointer: true }
72 Property { name: "axisRadial"; revision: 3; type: "QAbstractAxis"; isPointer: true }
73 Property { name: "borderWidth"; revision: 1; type: "double" }
73 Property { name: "borderWidth"; revision: 1; type: "double" }
74 Property { name: "brushFilename"; revision: 4; type: "string" }
74 Property { name: "brushFilename"; revision: 4; type: "string" }
75 Property { name: "brush"; revision: 4; type: "QBrush" }
75 Property { name: "brush"; revision: 4; type: "QBrush" }
76 Signal {
76 Signal {
77 name: "axisXChanged"
77 name: "axisXChanged"
78 revision: 1
78 revision: 1
79 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
79 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
80 }
80 }
81 Signal {
81 Signal {
82 name: "axisYChanged"
82 name: "axisYChanged"
83 revision: 1
83 revision: 1
84 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
84 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
85 }
85 }
86 Signal {
86 Signal {
87 name: "borderWidthChanged"
87 name: "borderWidthChanged"
88 revision: 1
88 revision: 1
89 Parameter { name: "width"; type: "double" }
89 Parameter { name: "width"; type: "double" }
90 }
90 }
91 Signal {
91 Signal {
92 name: "axisXTopChanged"
92 name: "axisXTopChanged"
93 revision: 2
93 revision: 2
94 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
94 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
95 }
95 }
96 Signal {
96 Signal {
97 name: "axisYRightChanged"
97 name: "axisYRightChanged"
98 revision: 2
98 revision: 2
99 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
99 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
100 }
100 }
101 Signal {
101 Signal {
102 name: "axisAngularChanged"
102 name: "axisAngularChanged"
103 revision: 3
103 revision: 3
104 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
104 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
105 }
105 }
106 Signal {
106 Signal {
107 name: "axisRadialChanged"
107 name: "axisRadialChanged"
108 revision: 3
108 revision: 3
109 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
109 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
110 }
110 }
111 Signal { name: "brushChanged"; revision: 4 }
111 Signal { name: "brushChanged"; revision: 4 }
112 Signal {
112 Signal {
113 name: "brushFilenameChanged"
113 name: "brushFilenameChanged"
114 revision: 4
114 revision: 4
115 Parameter { name: "brushFilename"; type: "string" }
115 Parameter { name: "brushFilename"; type: "string" }
116 }
116 }
117 }
117 }
118 Component {
118 Component {
119 name: "QtCommercialChart::DeclarativeAxes"
119 name: "QtCommercialChart::DeclarativeAxes"
120 prototype: "QObject"
120 prototype: "QObject"
121 exports: ["QtCommercial.Chart/DeclarativeAxes 1.0"]
121 exports: ["QtCommercial.Chart/DeclarativeAxes 1.0"]
122 exportMetaObjectRevisions: [0]
122 exportMetaObjectRevisions: [0]
123 Property { name: "axisX"; type: "QAbstractAxis"; isPointer: true }
123 Property { name: "axisX"; type: "QAbstractAxis"; isPointer: true }
124 Property { name: "axisY"; type: "QAbstractAxis"; isPointer: true }
124 Property { name: "axisY"; type: "QAbstractAxis"; isPointer: true }
125 Property { name: "axisXTop"; type: "QAbstractAxis"; isPointer: true }
125 Property { name: "axisXTop"; type: "QAbstractAxis"; isPointer: true }
126 Property { name: "axisYRight"; type: "QAbstractAxis"; isPointer: true }
126 Property { name: "axisYRight"; type: "QAbstractAxis"; isPointer: true }
127 Signal {
127 Signal {
128 name: "axisXChanged"
128 name: "axisXChanged"
129 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
129 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
130 }
130 }
131 Signal {
131 Signal {
132 name: "axisYChanged"
132 name: "axisYChanged"
133 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
133 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
134 }
134 }
135 Signal {
135 Signal {
136 name: "axisXTopChanged"
136 name: "axisXTopChanged"
137 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
137 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
138 }
138 }
139 Signal {
139 Signal {
140 name: "axisYRightChanged"
140 name: "axisYRightChanged"
141 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
141 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
142 }
142 }
143 }
143 }
144 Component {
144 Component {
145 name: "QtCommercialChart::DeclarativeBarSeries"
145 name: "QtCommercialChart::DeclarativeBarSeries"
146 defaultProperty: "seriesChildren"
146 defaultProperty: "seriesChildren"
147 prototype: "QtCommercialChart::QBarSeries"
147 prototype: "QtCommercialChart::QBarSeries"
148 exports: [
148 exports: [
149 "QtCommercial.Chart/BarSeries 1.0",
149 "QtCommercial.Chart/BarSeries 1.0",
150 "QtCommercial.Chart/BarSeries 1.1",
150 "QtCommercial.Chart/BarSeries 1.1",
151 "QtCommercial.Chart/BarSeries 1.2"
151 "QtCommercial.Chart/BarSeries 1.2"
152 ]
152 ]
153 exportMetaObjectRevisions: [0, 1, 2]
153 exportMetaObjectRevisions: [0, 1, 2]
154 Property { name: "axisX"; revision: 1; type: "QAbstractAxis"; isPointer: true }
154 Property { name: "axisX"; revision: 1; type: "QAbstractAxis"; isPointer: true }
155 Property { name: "axisY"; revision: 1; type: "QAbstractAxis"; isPointer: true }
155 Property { name: "axisY"; revision: 1; type: "QAbstractAxis"; isPointer: true }
156 Property { name: "axisXTop"; revision: 2; type: "QAbstractAxis"; isPointer: true }
156 Property { name: "axisXTop"; revision: 2; type: "QAbstractAxis"; isPointer: true }
157 Property { name: "axisYRight"; revision: 2; type: "QAbstractAxis"; isPointer: true }
157 Property { name: "axisYRight"; revision: 2; type: "QAbstractAxis"; isPointer: true }
158 Property { name: "seriesChildren"; type: "QObject"; isList: true; isReadonly: true }
158 Property { name: "seriesChildren"; type: "QObject"; isList: true; isReadonly: true }
159 Signal {
159 Signal {
160 name: "axisXChanged"
160 name: "axisXChanged"
161 revision: 1
161 revision: 1
162 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
162 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
163 }
163 }
164 Signal {
164 Signal {
165 name: "axisYChanged"
165 name: "axisYChanged"
166 revision: 1
166 revision: 1
167 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
167 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
168 }
168 }
169 Signal {
169 Signal {
170 name: "axisXTopChanged"
170 name: "axisXTopChanged"
171 revision: 2
171 revision: 2
172 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
172 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
173 }
173 }
174 Signal {
174 Signal {
175 name: "axisYRightChanged"
175 name: "axisYRightChanged"
176 revision: 2
176 revision: 2
177 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
177 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
178 }
178 }
179 Method {
179 Method {
180 name: "appendSeriesChildren"
180 name: "appendSeriesChildren"
181 Parameter { name: "list"; type: "QObject"; isList: true; isPointer: true }
181 Parameter { name: "list"; type: "QObject"; isList: true; isPointer: true }
182 Parameter { name: "element"; type: "QObject"; isPointer: true }
182 Parameter { name: "element"; type: "QObject"; isPointer: true }
183 }
183 }
184 Method {
184 Method {
185 name: "at"
185 name: "at"
186 type: "DeclarativeBarSet*"
186 type: "DeclarativeBarSet*"
187 Parameter { name: "index"; type: "int" }
187 Parameter { name: "index"; type: "int" }
188 }
188 }
189 Method {
189 Method {
190 name: "append"
190 name: "append"
191 type: "DeclarativeBarSet*"
191 type: "DeclarativeBarSet*"
192 Parameter { name: "label"; type: "string" }
192 Parameter { name: "label"; type: "string" }
193 Parameter { name: "values"; type: "QVariantList" }
193 Parameter { name: "values"; type: "QVariantList" }
194 }
194 }
195 Method {
195 Method {
196 name: "insert"
196 name: "insert"
197 type: "DeclarativeBarSet*"
197 type: "DeclarativeBarSet*"
198 Parameter { name: "index"; type: "int" }
198 Parameter { name: "index"; type: "int" }
199 Parameter { name: "label"; type: "string" }
199 Parameter { name: "label"; type: "string" }
200 Parameter { name: "values"; type: "QVariantList" }
200 Parameter { name: "values"; type: "QVariantList" }
201 }
201 }
202 Method {
202 Method {
203 name: "remove"
203 name: "remove"
204 type: "bool"
204 type: "bool"
205 Parameter { name: "barset"; type: "QBarSet"; isPointer: true }
205 Parameter { name: "barset"; type: "QBarSet"; isPointer: true }
206 }
206 }
207 Method { name: "clear" }
207 Method { name: "clear" }
208 }
208 }
209 Component {
209 Component {
210 name: "QtCommercialChart::DeclarativeBarSet"
210 name: "QtCommercialChart::DeclarativeBarSet"
211 prototype: "QtCommercialChart::QBarSet"
211 prototype: "QtCommercialChart::QBarSet"
212 exports: [
212 exports: [
213 "QtCommercial.Chart/BarSet 1.0",
213 "QtCommercial.Chart/BarSet 1.0",
214 "QtCommercial.Chart/BarSet 1.1",
214 "QtCommercial.Chart/BarSet 1.1",
215 "QtCommercial.Chart/BarSet 1.4"
215 "QtCommercial.Chart/BarSet 1.4"
216 ]
216 ]
217 exportMetaObjectRevisions: [0, 0, 2]
217 exportMetaObjectRevisions: [0, 0, 2]
218 Property { name: "values"; type: "QVariantList" }
218 Property { name: "values"; type: "QVariantList" }
219 Property { name: "borderWidth"; revision: 1; type: "double" }
219 Property { name: "borderWidth"; revision: 1; type: "double" }
220 Property { name: "count"; type: "int"; isReadonly: true }
220 Property { name: "count"; type: "int"; isReadonly: true }
221 Property { name: "brushFilename"; revision: 2; type: "string" }
221 Property { name: "brushFilename"; revision: 2; type: "string" }
222 Signal {
222 Signal {
223 name: "countChanged"
223 name: "countChanged"
224 Parameter { name: "count"; type: "int" }
224 Parameter { name: "count"; type: "int" }
225 }
225 }
226 Signal {
226 Signal {
227 name: "borderWidthChanged"
227 name: "borderWidthChanged"
228 revision: 1
228 revision: 1
229 Parameter { name: "width"; type: "double" }
229 Parameter { name: "width"; type: "double" }
230 }
230 }
231 Signal {
231 Signal {
232 name: "brushFilenameChanged"
232 name: "brushFilenameChanged"
233 revision: 2
233 revision: 2
234 Parameter { name: "brushFilename"; type: "string" }
234 Parameter { name: "brushFilename"; type: "string" }
235 }
235 }
236 Method {
236 Method {
237 name: "append"
237 name: "append"
238 Parameter { name: "value"; type: "double" }
238 Parameter { name: "value"; type: "double" }
239 }
239 }
240 Method {
240 Method {
241 name: "remove"
241 name: "remove"
242 Parameter { name: "index"; type: "int" }
242 Parameter { name: "index"; type: "int" }
243 Parameter { name: "count"; type: "int" }
243 Parameter { name: "count"; type: "int" }
244 }
244 }
245 Method {
245 Method {
246 name: "remove"
246 name: "remove"
247 Parameter { name: "index"; type: "int" }
247 Parameter { name: "index"; type: "int" }
248 }
248 }
249 Method {
249 Method {
250 name: "replace"
250 name: "replace"
251 Parameter { name: "index"; type: "int" }
251 Parameter { name: "index"; type: "int" }
252 Parameter { name: "value"; type: "double" }
252 Parameter { name: "value"; type: "double" }
253 }
253 }
254 Method {
254 Method {
255 name: "at"
255 name: "at"
256 type: "double"
256 type: "double"
257 Parameter { name: "index"; type: "int" }
257 Parameter { name: "index"; type: "int" }
258 }
258 }
259 }
259 }
260 Component {
260 Component {
261 name: "QtCommercialChart::DeclarativeBoxPlotSeries"
261 name: "QtCommercialChart::DeclarativeBoxPlotSeries"
262 defaultProperty: "seriesChildren"
262 defaultProperty: "seriesChildren"
263 prototype: "QtCommercialChart::QBoxPlotSeries"
263 prototype: "QtCommercialChart::QBoxPlotSeries"
264 exports: [
264 exports: [
265 "QtCommercial.Chart/BoxPlotSeries 1.3",
265 "QtCommercial.Chart/BoxPlotSeries 1.3",
266 "QtCommercial.Chart/BoxPlotSeries 1.4"
266 "QtCommercial.Chart/BoxPlotSeries 1.4"
267 ]
267 ]
268 exportMetaObjectRevisions: [0, 1]
268 exportMetaObjectRevisions: [0, 1]
269 Property { name: "axisX"; type: "QAbstractAxis"; isPointer: true }
269 Property { name: "axisX"; type: "QAbstractAxis"; isPointer: true }
270 Property { name: "axisY"; type: "QAbstractAxis"; isPointer: true }
270 Property { name: "axisY"; type: "QAbstractAxis"; isPointer: true }
271 Property { name: "axisXTop"; type: "QAbstractAxis"; isPointer: true }
271 Property { name: "axisXTop"; type: "QAbstractAxis"; isPointer: true }
272 Property { name: "axisYRight"; type: "QAbstractAxis"; isPointer: true }
272 Property { name: "axisYRight"; type: "QAbstractAxis"; isPointer: true }
273 Property { name: "seriesChildren"; type: "QObject"; isList: true; isReadonly: true }
273 Property { name: "seriesChildren"; type: "QObject"; isList: true; isReadonly: true }
274 Property { name: "brushFilename"; revision: 1; type: "string" }
274 Property { name: "brushFilename"; revision: 1; type: "string" }
275 Signal {
275 Signal {
276 name: "axisXChanged"
276 name: "axisXChanged"
277 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
277 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
278 }
278 }
279 Signal {
279 Signal {
280 name: "axisYChanged"
280 name: "axisYChanged"
281 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
281 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
282 }
282 }
283 Signal {
283 Signal {
284 name: "axisXTopChanged"
284 name: "axisXTopChanged"
285 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
285 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
286 }
286 }
287 Signal {
287 Signal {
288 name: "axisYRightChanged"
288 name: "axisYRightChanged"
289 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
289 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
290 }
290 }
291 Signal {
291 Signal {
292 name: "clicked"
292 name: "clicked"
293 Parameter { name: "boxset"; type: "DeclarativeBoxSet"; isPointer: true }
293 Parameter { name: "boxset"; type: "DeclarativeBoxSet"; isPointer: true }
294 }
294 }
295 Signal {
295 Signal {
296 name: "hovered"
296 name: "hovered"
297 Parameter { name: "status"; type: "bool" }
297 Parameter { name: "status"; type: "bool" }
298 Parameter { name: "boxset"; type: "DeclarativeBoxSet"; isPointer: true }
298 Parameter { name: "boxset"; type: "DeclarativeBoxSet"; isPointer: true }
299 }
299 }
300 Signal {
300 Signal {
301 name: "brushFilenameChanged"
301 name: "brushFilenameChanged"
302 revision: 1
302 revision: 1
303 Parameter { name: "brushFilename"; type: "string" }
303 Parameter { name: "brushFilename"; type: "string" }
304 }
304 }
305 Method {
305 Method {
306 name: "appendSeriesChildren"
306 name: "appendSeriesChildren"
307 Parameter { name: "list"; type: "QDECLARATIVE_LIST_PROPERTY<QObject>"; isPointer: true }
307 Parameter { name: "list"; type: "QDECLARATIVE_LIST_PROPERTY<QObject>"; isPointer: true }
308 Parameter { name: "element"; type: "QObject"; isPointer: true }
308 Parameter { name: "element"; type: "QObject"; isPointer: true }
309 }
309 }
310 Method {
310 Method {
311 name: "onHovered"
311 name: "onHovered"
312 Parameter { name: "status"; type: "bool" }
312 Parameter { name: "status"; type: "bool" }
313 Parameter { name: "boxset"; type: "QBoxSet"; isPointer: true }
313 Parameter { name: "boxset"; type: "QBoxSet"; isPointer: true }
314 }
314 }
315 Method {
315 Method {
316 name: "onClicked"
316 name: "onClicked"
317 Parameter { name: "boxset"; type: "QBoxSet"; isPointer: true }
317 Parameter { name: "boxset"; type: "QBoxSet"; isPointer: true }
318 }
318 }
319 Method {
319 Method {
320 name: "at"
320 name: "at"
321 type: "DeclarativeBoxSet*"
321 type: "DeclarativeBoxSet*"
322 Parameter { name: "index"; type: "int" }
322 Parameter { name: "index"; type: "int" }
323 }
323 }
324 Method {
324 Method {
325 name: "append"
325 name: "append"
326 type: "DeclarativeBoxSet*"
326 type: "DeclarativeBoxSet*"
327 Parameter { name: "label"; type: "string" }
327 Parameter { name: "label"; type: "string" }
328 Parameter { name: "values"; type: "QVariantList" }
328 Parameter { name: "values"; type: "QVariantList" }
329 }
329 }
330 Method {
330 Method {
331 name: "append"
331 name: "append"
332 Parameter { name: "box"; type: "DeclarativeBoxSet"; isPointer: true }
332 Parameter { name: "box"; type: "DeclarativeBoxSet"; isPointer: true }
333 }
333 }
334 Method {
334 Method {
335 name: "insert"
335 name: "insert"
336 type: "DeclarativeBoxSet*"
336 type: "DeclarativeBoxSet*"
337 Parameter { name: "index"; type: "int" }
337 Parameter { name: "index"; type: "int" }
338 Parameter { name: "label"; type: "string" }
338 Parameter { name: "label"; type: "string" }
339 Parameter { name: "values"; type: "QVariantList" }
339 Parameter { name: "values"; type: "QVariantList" }
340 }
340 }
341 Method {
341 Method {
342 name: "remove"
342 name: "remove"
343 type: "bool"
343 type: "bool"
344 Parameter { name: "box"; type: "DeclarativeBoxSet"; isPointer: true }
344 Parameter { name: "box"; type: "DeclarativeBoxSet"; isPointer: true }
345 }
345 }
346 Method { name: "clear" }
346 Method { name: "clear" }
347 }
347 }
348 Component {
348 Component {
349 name: "QtCommercialChart::DeclarativeBoxSet"
349 name: "QtCommercialChart::DeclarativeBoxSet"
350 prototype: "QtCommercialChart::QBoxSet"
350 prototype: "QtCommercialChart::QBoxSet"
351 exports: [
351 exports: [
352 "QtCommercial.Chart/BoxSet 1.3",
352 "QtCommercial.Chart/BoxSet 1.3",
353 "QtCommercial.Chart/BoxSet 1.4"
353 "QtCommercial.Chart/BoxSet 1.4"
354 ]
354 ]
355 exportMetaObjectRevisions: [0, 1]
355 exportMetaObjectRevisions: [0, 1]
356 Enum {
356 Enum {
357 name: "ValuePositions"
357 name: "ValuePositions"
358 values: {
358 values: {
359 "LowerExtreme": 0,
359 "LowerExtreme": 0,
360 "LowerQuartile": 1,
360 "LowerQuartile": 1,
361 "Median": 2,
361 "Median": 2,
362 "UpperQuartile": 3,
362 "UpperQuartile": 3,
363 "UpperExtreme": 4
363 "UpperExtreme": 4
364 }
364 }
365 }
365 }
366 Property { name: "values"; type: "QVariantList" }
366 Property { name: "values"; type: "QVariantList" }
367 Property { name: "label"; type: "string" }
367 Property { name: "label"; type: "string" }
368 Property { name: "count"; type: "int"; isReadonly: true }
368 Property { name: "count"; type: "int"; isReadonly: true }
369 Property { name: "brushFilename"; revision: 1; type: "string" }
369 Property { name: "brushFilename"; revision: 1; type: "string" }
370 Signal { name: "changedValues" }
370 Signal { name: "changedValues" }
371 Signal {
371 Signal {
372 name: "changedValue"
372 name: "changedValue"
373 Parameter { name: "index"; type: "int" }
373 Parameter { name: "index"; type: "int" }
374 }
374 }
375 Signal {
375 Signal {
376 name: "brushFilenameChanged"
376 name: "brushFilenameChanged"
377 revision: 1
377 revision: 1
378 Parameter { name: "brushFilename"; type: "string" }
378 Parameter { name: "brushFilename"; type: "string" }
379 }
379 }
380 Method {
380 Method {
381 name: "append"
381 name: "append"
382 Parameter { name: "value"; type: "double" }
382 Parameter { name: "value"; type: "double" }
383 }
383 }
384 Method { name: "clear" }
384 Method { name: "clear" }
385 Method {
385 Method {
386 name: "at"
386 name: "at"
387 type: "double"
387 type: "double"
388 Parameter { name: "index"; type: "int" }
388 Parameter { name: "index"; type: "int" }
389 }
389 }
390 Method {
390 Method {
391 name: "setValue"
391 name: "setValue"
392 Parameter { name: "index"; type: "int" }
392 Parameter { name: "index"; type: "int" }
393 Parameter { name: "value"; type: "double" }
393 Parameter { name: "value"; type: "double" }
394 }
394 }
395 }
395 }
396 Component {
396 Component {
397 name: "QtCommercialChart::DeclarativeCategoryAxis"
397 name: "QtCommercialChart::DeclarativeCategoryAxis"
398 defaultProperty: "axisChildren"
398 defaultProperty: "axisChildren"
399 prototype: "QtCommercialChart::QCategoryAxis"
399 prototype: "QtCommercialChart::QCategoryAxis"
400 exports: ["QtCommercial.Chart/CategoryAxis 1.1"]
400 exports: ["QtCommercial.Chart/CategoryAxis 1.1"]
401 exportMetaObjectRevisions: [0]
401 exportMetaObjectRevisions: [0]
402 Property { name: "axisChildren"; type: "QObject"; isList: true; isReadonly: true }
402 Property { name: "axisChildren"; type: "QObject"; isList: true; isReadonly: true }
403 Method {
403 Method {
404 name: "append"
404 name: "append"
405 Parameter { name: "label"; type: "string" }
405 Parameter { name: "label"; type: "string" }
406 Parameter { name: "categoryEndValue"; type: "double" }
406 Parameter { name: "categoryEndValue"; type: "double" }
407 }
407 }
408 Method {
408 Method {
409 name: "remove"
409 name: "remove"
410 Parameter { name: "label"; type: "string" }
410 Parameter { name: "label"; type: "string" }
411 }
411 }
412 Method {
412 Method {
413 name: "replace"
413 name: "replace"
414 Parameter { name: "oldLabel"; type: "string" }
414 Parameter { name: "oldLabel"; type: "string" }
415 Parameter { name: "newLabel"; type: "string" }
415 Parameter { name: "newLabel"; type: "string" }
416 }
416 }
417 Method {
417 Method {
418 name: "appendAxisChildren"
418 name: "appendAxisChildren"
419 Parameter { name: "list"; type: "QObject"; isList: true; isPointer: true }
419 Parameter { name: "list"; type: "QObject"; isList: true; isPointer: true }
420 Parameter { name: "element"; type: "QObject"; isPointer: true }
420 Parameter { name: "element"; type: "QObject"; isPointer: true }
421 }
421 }
422 }
422 }
423 Component {
423 Component {
424 name: "QtCommercialChart::DeclarativeCategoryRange"
424 name: "QtCommercialChart::DeclarativeCategoryRange"
425 prototype: "QObject"
425 prototype: "QObject"
426 exports: ["QtCommercial.Chart/CategoryRange 1.1"]
426 exports: ["QtCommercial.Chart/CategoryRange 1.1"]
427 exportMetaObjectRevisions: [0]
427 exportMetaObjectRevisions: [0]
428 Property { name: "endValue"; type: "double" }
428 Property { name: "endValue"; type: "double" }
429 Property { name: "label"; type: "string" }
429 Property { name: "label"; type: "string" }
430 }
430 }
431 Component {
431 Component {
432 name: "QtCommercialChart::DeclarativeChart"
432 name: "QtCommercialChart::DeclarativeChart"
433 defaultProperty: "data"
433 defaultProperty: "data"
434 prototype: "QQuickPaintedItem"
434 prototype: "QQuickPaintedItem"
435 exports: [
435 exports: [
436 "QtCommercial.Chart/ChartView 1.0",
436 "QtCommercial.Chart/ChartView 1.0",
437 "QtCommercial.Chart/ChartView 1.1",
437 "QtCommercial.Chart/ChartView 1.1",
438 "QtCommercial.Chart/ChartView 1.2",
438 "QtCommercial.Chart/ChartView 1.2",
439 "QtCommercial.Chart/ChartView 1.3"
439 "QtCommercial.Chart/ChartView 1.3"
440 ]
440 ]
441 exportMetaObjectRevisions: [0, 1, 2, 3]
441 exportMetaObjectRevisions: [0, 1, 2, 3]
442 Enum {
442 Enum {
443 name: "Theme"
443 name: "Theme"
444 values: {
444 values: {
445 "ChartThemeLight": 0,
445 "ChartThemeLight": 0,
446 "ChartThemeBlueCerulean": 1,
446 "ChartThemeBlueCerulean": 1,
447 "ChartThemeDark": 2,
447 "ChartThemeDark": 2,
448 "ChartThemeBrownSand": 3,
448 "ChartThemeBrownSand": 3,
449 "ChartThemeBlueNcs": 4,
449 "ChartThemeBlueNcs": 4,
450 "ChartThemeHighContrast": 5,
450 "ChartThemeHighContrast": 5,
451 "ChartThemeBlueIcy": 6,
451 "ChartThemeBlueIcy": 6,
452 "ChartThemeQt": 7
452 "ChartThemeQt": 7
453 }
453 }
454 }
454 }
455 Enum {
455 Enum {
456 name: "Animation"
456 name: "Animation"
457 values: {
457 values: {
458 "NoAnimation": 0,
458 "NoAnimation": 0,
459 "GridAxisAnimations": 1,
459 "GridAxisAnimations": 1,
460 "SeriesAnimations": 2,
460 "SeriesAnimations": 2,
461 "AllAnimations": 3
461 "AllAnimations": 3
462 }
462 }
463 }
463 }
464 Enum {
464 Enum {
465 name: "SeriesType"
465 name: "SeriesType"
466 values: {
466 values: {
467 "SeriesTypeLine": 0,
467 "SeriesTypeLine": 0,
468 "SeriesTypeArea": 1,
468 "SeriesTypeArea": 1,
469 "SeriesTypeBar": 2,
469 "SeriesTypeBar": 2,
470 "SeriesTypeStackedBar": 3,
470 "SeriesTypeStackedBar": 3,
471 "SeriesTypePercentBar": 4,
471 "SeriesTypePercentBar": 4,
472 "SeriesTypeBoxPlot": 5,
472 "SeriesTypeBoxPlot": 5,
473 "SeriesTypePie": 6,
473 "SeriesTypePie": 6,
474 "SeriesTypeScatter": 7,
474 "SeriesTypeScatter": 7,
475 "SeriesTypeSpline": 8,
475 "SeriesTypeSpline": 8,
476 "SeriesTypeHorizontalBar": 9,
476 "SeriesTypeHorizontalBar": 9,
477 "SeriesTypeHorizontalStackedBar": 10,
477 "SeriesTypeHorizontalStackedBar": 10,
478 "SeriesTypeHorizontalPercentBar": 11
478 "SeriesTypeHorizontalPercentBar": 11
479 }
479 }
480 }
480 }
481 Property { name: "theme"; type: "Theme" }
481 Property { name: "theme"; type: "Theme" }
482 Property { name: "animationOptions"; type: "Animation" }
482 Property { name: "animationOptions"; type: "Animation" }
483 Property { name: "title"; type: "string" }
483 Property { name: "title"; type: "string" }
484 Property { name: "titleFont"; type: "QFont" }
484 Property { name: "titleFont"; type: "QFont" }
485 Property { name: "titleColor"; type: "QColor" }
485 Property { name: "titleColor"; type: "QColor" }
486 Property { name: "legend"; type: "QLegend"; isReadonly: true; isPointer: true }
486 Property { name: "legend"; type: "QLegend"; isReadonly: true; isPointer: true }
487 Property { name: "count"; type: "int"; isReadonly: true }
487 Property { name: "count"; type: "int"; isReadonly: true }
488 Property { name: "backgroundColor"; type: "QColor" }
488 Property { name: "backgroundColor"; type: "QColor" }
489 Property { name: "dropShadowEnabled"; type: "bool" }
489 Property { name: "dropShadowEnabled"; type: "bool" }
490 Property { name: "backgroundRoundness"; revision: 3; type: "double" }
490 Property { name: "backgroundRoundness"; revision: 3; type: "double" }
491 Property { name: "topMargin"; type: "double"; isReadonly: true }
491 Property { name: "topMargin"; type: "double"; isReadonly: true }
492 Property { name: "bottomMargin"; type: "double"; isReadonly: true }
492 Property { name: "bottomMargin"; type: "double"; isReadonly: true }
493 Property { name: "leftMargin"; type: "double"; isReadonly: true }
493 Property { name: "leftMargin"; type: "double"; isReadonly: true }
494 Property { name: "rightMargin"; type: "double"; isReadonly: true }
494 Property { name: "rightMargin"; type: "double"; isReadonly: true }
495 Property {
495 Property {
496 name: "minimumMargins"
496 name: "minimumMargins"
497 revision: 1
497 revision: 1
498 type: "DeclarativeMargins"
498 type: "DeclarativeMargins"
499 isReadonly: true
499 isReadonly: true
500 isPointer: true
500 isPointer: true
501 }
501 }
502 Property {
502 Property {
503 name: "margins"
503 name: "margins"
504 revision: 2
504 revision: 2
505 type: "DeclarativeMargins"
505 type: "DeclarativeMargins"
506 isReadonly: true
506 isReadonly: true
507 isPointer: true
507 isPointer: true
508 }
508 }
509 Property { name: "plotArea"; revision: 1; type: "QRectF"; isReadonly: true }
509 Property { name: "plotArea"; revision: 1; type: "QRectF"; isReadonly: true }
510 Property { name: "plotAreaColor"; revision: 3; type: "QColor" }
510 Property { name: "plotAreaColor"; revision: 3; type: "QColor" }
511 Property { name: "axes"; revision: 2; type: "QAbstractAxis"; isList: true; isReadonly: true }
511 Property { name: "axes"; revision: 2; type: "QAbstractAxis"; isList: true; isReadonly: true }
512 Signal { name: "axisLabelsChanged" }
512 Signal { name: "axisLabelsChanged" }
513 Signal {
513 Signal {
514 name: "titleColorChanged"
514 name: "titleColorChanged"
515 Parameter { name: "color"; type: "QColor" }
515 Parameter { name: "color"; type: "QColor" }
516 }
516 }
517 Signal {
517 Signal {
518 name: "dropShadowEnabledChanged"
518 name: "dropShadowEnabledChanged"
519 Parameter { name: "enabled"; type: "bool" }
519 Parameter { name: "enabled"; type: "bool" }
520 }
520 }
521 Signal { name: "marginsChanged"; revision: 2 }
521 Signal { name: "marginsChanged"; revision: 2 }
522 Signal {
522 Signal {
523 name: "plotAreaChanged"
523 name: "plotAreaChanged"
524 Parameter { name: "plotArea"; type: "QRectF" }
524 Parameter { name: "plotArea"; type: "QRectF" }
525 }
525 }
526 Signal {
526 Signal {
527 name: "seriesAdded"
527 name: "seriesAdded"
528 Parameter { name: "series"; type: "QAbstractSeries"; isPointer: true }
528 Parameter { name: "series"; type: "QAbstractSeries"; isPointer: true }
529 }
529 }
530 Signal {
530 Signal {
531 name: "seriesRemoved"
531 name: "seriesRemoved"
532 Parameter { name: "series"; type: "QAbstractSeries"; isPointer: true }
532 Parameter { name: "series"; type: "QAbstractSeries"; isPointer: true }
533 }
533 }
534 Signal { name: "plotAreaColorChanged"; revision: 3 }
534 Signal { name: "plotAreaColorChanged"; revision: 3 }
535 Signal {
535 Signal {
536 name: "backgroundRoundnessChanged"
536 name: "backgroundRoundnessChanged"
537 revision: 3
537 revision: 3
538 Parameter { name: "diameter"; type: "double" }
538 Parameter { name: "diameter"; type: "double" }
539 }
539 }
540 Method {
540 Method {
541 name: "series"
541 name: "series"
542 type: "QAbstractSeries*"
542 type: "QAbstractSeries*"
543 Parameter { name: "index"; type: "int" }
543 Parameter { name: "index"; type: "int" }
544 }
544 }
545 Method {
545 Method {
546 name: "series"
546 name: "series"
547 type: "QAbstractSeries*"
547 type: "QAbstractSeries*"
548 Parameter { name: "seriesName"; type: "string" }
548 Parameter { name: "seriesName"; type: "string" }
549 }
549 }
550 Method {
550 Method {
551 name: "createSeries"
551 name: "createSeries"
552 type: "QAbstractSeries*"
552 type: "QAbstractSeries*"
553 Parameter { name: "type"; type: "int" }
553 Parameter { name: "type"; type: "int" }
554 Parameter { name: "name"; type: "string" }
554 Parameter { name: "name"; type: "string" }
555 Parameter { name: "axisX"; type: "QAbstractAxis"; isPointer: true }
555 Parameter { name: "axisX"; type: "QAbstractAxis"; isPointer: true }
556 Parameter { name: "axisY"; type: "QAbstractAxis"; isPointer: true }
556 Parameter { name: "axisY"; type: "QAbstractAxis"; isPointer: true }
557 }
557 }
558 Method {
558 Method {
559 name: "createSeries"
559 name: "createSeries"
560 type: "QAbstractSeries*"
560 type: "QAbstractSeries*"
561 Parameter { name: "type"; type: "int" }
561 Parameter { name: "type"; type: "int" }
562 Parameter { name: "name"; type: "string" }
562 Parameter { name: "name"; type: "string" }
563 Parameter { name: "axisX"; type: "QAbstractAxis"; isPointer: true }
563 Parameter { name: "axisX"; type: "QAbstractAxis"; isPointer: true }
564 }
564 }
565 Method {
565 Method {
566 name: "createSeries"
566 name: "createSeries"
567 type: "QAbstractSeries*"
567 type: "QAbstractSeries*"
568 Parameter { name: "type"; type: "int" }
568 Parameter { name: "type"; type: "int" }
569 Parameter { name: "name"; type: "string" }
569 Parameter { name: "name"; type: "string" }
570 }
570 }
571 Method {
571 Method {
572 name: "createSeries"
572 name: "createSeries"
573 type: "QAbstractSeries*"
573 type: "QAbstractSeries*"
574 Parameter { name: "type"; type: "int" }
574 Parameter { name: "type"; type: "int" }
575 }
575 }
576 Method {
576 Method {
577 name: "removeSeries"
577 name: "removeSeries"
578 Parameter { name: "series"; type: "QAbstractSeries"; isPointer: true }
578 Parameter { name: "series"; type: "QAbstractSeries"; isPointer: true }
579 }
579 }
580 Method { name: "removeAllSeries" }
580 Method { name: "removeAllSeries" }
581 Method {
581 Method {
582 name: "setAxisX"
582 name: "setAxisX"
583 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
583 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
584 Parameter { name: "series"; type: "QAbstractSeries"; isPointer: true }
584 Parameter { name: "series"; type: "QAbstractSeries"; isPointer: true }
585 }
585 }
586 Method {
586 Method {
587 name: "setAxisX"
587 name: "setAxisX"
588 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
588 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
589 }
589 }
590 Method {
590 Method {
591 name: "setAxisY"
591 name: "setAxisY"
592 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
592 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
593 Parameter { name: "series"; type: "QAbstractSeries"; isPointer: true }
593 Parameter { name: "series"; type: "QAbstractSeries"; isPointer: true }
594 }
594 }
595 Method {
595 Method {
596 name: "setAxisY"
596 name: "setAxisY"
597 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
597 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
598 }
598 }
599 Method { name: "createDefaultAxes" }
599 Method { name: "createDefaultAxes" }
600 Method {
600 Method {
601 name: "axisX"
601 name: "axisX"
602 type: "QAbstractAxis*"
602 type: "QAbstractAxis*"
603 Parameter { name: "series"; type: "QAbstractSeries"; isPointer: true }
603 Parameter { name: "series"; type: "QAbstractSeries"; isPointer: true }
604 }
604 }
605 Method { name: "axisX"; type: "QAbstractAxis*" }
605 Method { name: "axisX"; type: "QAbstractAxis*" }
606 Method {
606 Method {
607 name: "axisY"
607 name: "axisY"
608 type: "QAbstractAxis*"
608 type: "QAbstractAxis*"
609 Parameter { name: "series"; type: "QAbstractSeries"; isPointer: true }
609 Parameter { name: "series"; type: "QAbstractSeries"; isPointer: true }
610 }
610 }
611 Method { name: "axisY"; type: "QAbstractAxis*" }
611 Method { name: "axisY"; type: "QAbstractAxis*" }
612 Method {
612 Method {
613 name: "zoom"
613 name: "zoom"
614 Parameter { name: "factor"; type: "double" }
614 Parameter { name: "factor"; type: "double" }
615 }
615 }
616 Method {
616 Method {
617 name: "scrollLeft"
617 name: "scrollLeft"
618 Parameter { name: "pixels"; type: "double" }
618 Parameter { name: "pixels"; type: "double" }
619 }
619 }
620 Method {
620 Method {
621 name: "scrollRight"
621 name: "scrollRight"
622 Parameter { name: "pixels"; type: "double" }
622 Parameter { name: "pixels"; type: "double" }
623 }
623 }
624 Method {
624 Method {
625 name: "scrollUp"
625 name: "scrollUp"
626 Parameter { name: "pixels"; type: "double" }
626 Parameter { name: "pixels"; type: "double" }
627 }
627 }
628 Method {
628 Method {
629 name: "scrollDown"
629 name: "scrollDown"
630 Parameter { name: "pixels"; type: "double" }
630 Parameter { name: "pixels"; type: "double" }
631 }
631 }
632 }
632 }
633 Component {
633 Component {
634 name: "QtCommercialChart::DeclarativeHorizontalBarSeries"
634 name: "QtCommercialChart::DeclarativeHorizontalBarSeries"
635 defaultProperty: "seriesChildren"
635 defaultProperty: "seriesChildren"
636 prototype: "QtCommercialChart::QHorizontalBarSeries"
636 prototype: "QtCommercialChart::QHorizontalBarSeries"
637 exports: [
637 exports: [
638 "QtCommercial.Chart/HorizontalBarSeries 1.1",
638 "QtCommercial.Chart/HorizontalBarSeries 1.1",
639 "QtCommercial.Chart/HorizontalBarSeries 1.2"
639 "QtCommercial.Chart/HorizontalBarSeries 1.2"
640 ]
640 ]
641 exportMetaObjectRevisions: [1, 2]
641 exportMetaObjectRevisions: [1, 2]
642 Property { name: "axisX"; revision: 1; type: "QAbstractAxis"; isPointer: true }
642 Property { name: "axisX"; revision: 1; type: "QAbstractAxis"; isPointer: true }
643 Property { name: "axisY"; revision: 1; type: "QAbstractAxis"; isPointer: true }
643 Property { name: "axisY"; revision: 1; type: "QAbstractAxis"; isPointer: true }
644 Property { name: "axisXTop"; revision: 2; type: "QAbstractAxis"; isPointer: true }
644 Property { name: "axisXTop"; revision: 2; type: "QAbstractAxis"; isPointer: true }
645 Property { name: "axisYRight"; revision: 2; type: "QAbstractAxis"; isPointer: true }
645 Property { name: "axisYRight"; revision: 2; type: "QAbstractAxis"; isPointer: true }
646 Property { name: "seriesChildren"; type: "QObject"; isList: true; isReadonly: true }
646 Property { name: "seriesChildren"; type: "QObject"; isList: true; isReadonly: true }
647 Signal {
647 Signal {
648 name: "axisXChanged"
648 name: "axisXChanged"
649 revision: 1
649 revision: 1
650 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
650 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
651 }
651 }
652 Signal {
652 Signal {
653 name: "axisYChanged"
653 name: "axisYChanged"
654 revision: 1
654 revision: 1
655 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
655 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
656 }
656 }
657 Signal {
657 Signal {
658 name: "axisXTopChanged"
658 name: "axisXTopChanged"
659 revision: 2
659 revision: 2
660 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
660 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
661 }
661 }
662 Signal {
662 Signal {
663 name: "axisYRightChanged"
663 name: "axisYRightChanged"
664 revision: 2
664 revision: 2
665 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
665 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
666 }
666 }
667 Method {
667 Method {
668 name: "appendSeriesChildren"
668 name: "appendSeriesChildren"
669 Parameter { name: "list"; type: "QObject"; isList: true; isPointer: true }
669 Parameter { name: "list"; type: "QObject"; isList: true; isPointer: true }
670 Parameter { name: "element"; type: "QObject"; isPointer: true }
670 Parameter { name: "element"; type: "QObject"; isPointer: true }
671 }
671 }
672 Method {
672 Method {
673 name: "at"
673 name: "at"
674 type: "DeclarativeBarSet*"
674 type: "DeclarativeBarSet*"
675 Parameter { name: "index"; type: "int" }
675 Parameter { name: "index"; type: "int" }
676 }
676 }
677 Method {
677 Method {
678 name: "append"
678 name: "append"
679 type: "DeclarativeBarSet*"
679 type: "DeclarativeBarSet*"
680 Parameter { name: "label"; type: "string" }
680 Parameter { name: "label"; type: "string" }
681 Parameter { name: "values"; type: "QVariantList" }
681 Parameter { name: "values"; type: "QVariantList" }
682 }
682 }
683 Method {
683 Method {
684 name: "insert"
684 name: "insert"
685 type: "DeclarativeBarSet*"
685 type: "DeclarativeBarSet*"
686 Parameter { name: "index"; type: "int" }
686 Parameter { name: "index"; type: "int" }
687 Parameter { name: "label"; type: "string" }
687 Parameter { name: "label"; type: "string" }
688 Parameter { name: "values"; type: "QVariantList" }
688 Parameter { name: "values"; type: "QVariantList" }
689 }
689 }
690 Method {
690 Method {
691 name: "remove"
691 name: "remove"
692 type: "bool"
692 type: "bool"
693 Parameter { name: "barset"; type: "QBarSet"; isPointer: true }
693 Parameter { name: "barset"; type: "QBarSet"; isPointer: true }
694 }
694 }
695 Method { name: "clear" }
695 Method { name: "clear" }
696 }
696 }
697 Component {
697 Component {
698 name: "QtCommercialChart::DeclarativeHorizontalPercentBarSeries"
698 name: "QtCommercialChart::DeclarativeHorizontalPercentBarSeries"
699 defaultProperty: "seriesChildren"
699 defaultProperty: "seriesChildren"
700 prototype: "QtCommercialChart::QHorizontalPercentBarSeries"
700 prototype: "QtCommercialChart::QHorizontalPercentBarSeries"
701 exports: [
701 exports: [
702 "QtCommercial.Chart/HorizontalPercentBarSeries 1.1",
702 "QtCommercial.Chart/HorizontalPercentBarSeries 1.1",
703 "QtCommercial.Chart/HorizontalPercentBarSeries 1.2"
703 "QtCommercial.Chart/HorizontalPercentBarSeries 1.2"
704 ]
704 ]
705 exportMetaObjectRevisions: [1, 2]
705 exportMetaObjectRevisions: [1, 2]
706 Property { name: "axisX"; revision: 1; type: "QAbstractAxis"; isPointer: true }
706 Property { name: "axisX"; revision: 1; type: "QAbstractAxis"; isPointer: true }
707 Property { name: "axisY"; revision: 1; type: "QAbstractAxis"; isPointer: true }
707 Property { name: "axisY"; revision: 1; type: "QAbstractAxis"; isPointer: true }
708 Property { name: "axisXTop"; revision: 2; type: "QAbstractAxis"; isPointer: true }
708 Property { name: "axisXTop"; revision: 2; type: "QAbstractAxis"; isPointer: true }
709 Property { name: "axisYRight"; revision: 2; type: "QAbstractAxis"; isPointer: true }
709 Property { name: "axisYRight"; revision: 2; type: "QAbstractAxis"; isPointer: true }
710 Property { name: "seriesChildren"; type: "QObject"; isList: true; isReadonly: true }
710 Property { name: "seriesChildren"; type: "QObject"; isList: true; isReadonly: true }
711 Signal {
711 Signal {
712 name: "axisXChanged"
712 name: "axisXChanged"
713 revision: 1
713 revision: 1
714 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
714 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
715 }
715 }
716 Signal {
716 Signal {
717 name: "axisYChanged"
717 name: "axisYChanged"
718 revision: 1
718 revision: 1
719 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
719 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
720 }
720 }
721 Signal {
721 Signal {
722 name: "axisXTopChanged"
722 name: "axisXTopChanged"
723 revision: 2
723 revision: 2
724 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
724 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
725 }
725 }
726 Signal {
726 Signal {
727 name: "axisYRightChanged"
727 name: "axisYRightChanged"
728 revision: 2
728 revision: 2
729 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
729 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
730 }
730 }
731 Method {
731 Method {
732 name: "appendSeriesChildren"
732 name: "appendSeriesChildren"
733 Parameter { name: "list"; type: "QObject"; isList: true; isPointer: true }
733 Parameter { name: "list"; type: "QObject"; isList: true; isPointer: true }
734 Parameter { name: "element"; type: "QObject"; isPointer: true }
734 Parameter { name: "element"; type: "QObject"; isPointer: true }
735 }
735 }
736 Method {
736 Method {
737 name: "at"
737 name: "at"
738 type: "DeclarativeBarSet*"
738 type: "DeclarativeBarSet*"
739 Parameter { name: "index"; type: "int" }
739 Parameter { name: "index"; type: "int" }
740 }
740 }
741 Method {
741 Method {
742 name: "append"
742 name: "append"
743 type: "DeclarativeBarSet*"
743 type: "DeclarativeBarSet*"
744 Parameter { name: "label"; type: "string" }
744 Parameter { name: "label"; type: "string" }
745 Parameter { name: "values"; type: "QVariantList" }
745 Parameter { name: "values"; type: "QVariantList" }
746 }
746 }
747 Method {
747 Method {
748 name: "insert"
748 name: "insert"
749 type: "DeclarativeBarSet*"
749 type: "DeclarativeBarSet*"
750 Parameter { name: "index"; type: "int" }
750 Parameter { name: "index"; type: "int" }
751 Parameter { name: "label"; type: "string" }
751 Parameter { name: "label"; type: "string" }
752 Parameter { name: "values"; type: "QVariantList" }
752 Parameter { name: "values"; type: "QVariantList" }
753 }
753 }
754 Method {
754 Method {
755 name: "remove"
755 name: "remove"
756 type: "bool"
756 type: "bool"
757 Parameter { name: "barset"; type: "QBarSet"; isPointer: true }
757 Parameter { name: "barset"; type: "QBarSet"; isPointer: true }
758 }
758 }
759 Method { name: "clear" }
759 Method { name: "clear" }
760 }
760 }
761 Component {
761 Component {
762 name: "QtCommercialChart::DeclarativeHorizontalStackedBarSeries"
762 name: "QtCommercialChart::DeclarativeHorizontalStackedBarSeries"
763 defaultProperty: "seriesChildren"
763 defaultProperty: "seriesChildren"
764 prototype: "QtCommercialChart::QHorizontalStackedBarSeries"
764 prototype: "QtCommercialChart::QHorizontalStackedBarSeries"
765 exports: [
765 exports: [
766 "QtCommercial.Chart/HorizontalStackedBarSeries 1.1",
766 "QtCommercial.Chart/HorizontalStackedBarSeries 1.1",
767 "QtCommercial.Chart/HorizontalStackedBarSeries 1.2"
767 "QtCommercial.Chart/HorizontalStackedBarSeries 1.2"
768 ]
768 ]
769 exportMetaObjectRevisions: [1, 2]
769 exportMetaObjectRevisions: [1, 2]
770 Property { name: "axisX"; revision: 1; type: "QAbstractAxis"; isPointer: true }
770 Property { name: "axisX"; revision: 1; type: "QAbstractAxis"; isPointer: true }
771 Property { name: "axisY"; revision: 1; type: "QAbstractAxis"; isPointer: true }
771 Property { name: "axisY"; revision: 1; type: "QAbstractAxis"; isPointer: true }
772 Property { name: "axisXTop"; revision: 2; type: "QAbstractAxis"; isPointer: true }
772 Property { name: "axisXTop"; revision: 2; type: "QAbstractAxis"; isPointer: true }
773 Property { name: "axisYRight"; revision: 2; type: "QAbstractAxis"; isPointer: true }
773 Property { name: "axisYRight"; revision: 2; type: "QAbstractAxis"; isPointer: true }
774 Property { name: "seriesChildren"; type: "QObject"; isList: true; isReadonly: true }
774 Property { name: "seriesChildren"; type: "QObject"; isList: true; isReadonly: true }
775 Signal {
775 Signal {
776 name: "axisXChanged"
776 name: "axisXChanged"
777 revision: 1
777 revision: 1
778 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
778 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
779 }
779 }
780 Signal {
780 Signal {
781 name: "axisYChanged"
781 name: "axisYChanged"
782 revision: 1
782 revision: 1
783 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
783 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
784 }
784 }
785 Signal {
785 Signal {
786 name: "axisXTopChanged"
786 name: "axisXTopChanged"
787 revision: 2
787 revision: 2
788 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
788 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
789 }
789 }
790 Signal {
790 Signal {
791 name: "axisYRightChanged"
791 name: "axisYRightChanged"
792 revision: 2
792 revision: 2
793 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
793 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
794 }
794 }
795 Method {
795 Method {
796 name: "appendSeriesChildren"
796 name: "appendSeriesChildren"
797 Parameter { name: "list"; type: "QObject"; isList: true; isPointer: true }
797 Parameter { name: "list"; type: "QObject"; isList: true; isPointer: true }
798 Parameter { name: "element"; type: "QObject"; isPointer: true }
798 Parameter { name: "element"; type: "QObject"; isPointer: true }
799 }
799 }
800 Method {
800 Method {
801 name: "at"
801 name: "at"
802 type: "DeclarativeBarSet*"
802 type: "DeclarativeBarSet*"
803 Parameter { name: "index"; type: "int" }
803 Parameter { name: "index"; type: "int" }
804 }
804 }
805 Method {
805 Method {
806 name: "append"
806 name: "append"
807 type: "DeclarativeBarSet*"
807 type: "DeclarativeBarSet*"
808 Parameter { name: "label"; type: "string" }
808 Parameter { name: "label"; type: "string" }
809 Parameter { name: "values"; type: "QVariantList" }
809 Parameter { name: "values"; type: "QVariantList" }
810 }
810 }
811 Method {
811 Method {
812 name: "insert"
812 name: "insert"
813 type: "DeclarativeBarSet*"
813 type: "DeclarativeBarSet*"
814 Parameter { name: "index"; type: "int" }
814 Parameter { name: "index"; type: "int" }
815 Parameter { name: "label"; type: "string" }
815 Parameter { name: "label"; type: "string" }
816 Parameter { name: "values"; type: "QVariantList" }
816 Parameter { name: "values"; type: "QVariantList" }
817 }
817 }
818 Method {
818 Method {
819 name: "remove"
819 name: "remove"
820 type: "bool"
820 type: "bool"
821 Parameter { name: "barset"; type: "QBarSet"; isPointer: true }
821 Parameter { name: "barset"; type: "QBarSet"; isPointer: true }
822 }
822 }
823 Method { name: "clear" }
823 Method { name: "clear" }
824 }
824 }
825 Component {
825 Component {
826 name: "QtCommercialChart::DeclarativeLineSeries"
826 name: "QtCommercialChart::DeclarativeLineSeries"
827 defaultProperty: "declarativeChildren"
827 defaultProperty: "declarativeChildren"
828 prototype: "QtCommercialChart::QLineSeries"
828 prototype: "QtCommercialChart::QLineSeries"
829 exports: [
829 exports: [
830 "QtCommercial.Chart/LineSeries 1.0",
830 "QtCommercial.Chart/LineSeries 1.0",
831 "QtCommercial.Chart/LineSeries 1.1",
831 "QtCommercial.Chart/LineSeries 1.1",
832 "QtCommercial.Chart/LineSeries 1.2",
832 "QtCommercial.Chart/LineSeries 1.2",
833 "QtCommercial.Chart/LineSeries 1.3"
833 "QtCommercial.Chart/LineSeries 1.3"
834 ]
834 ]
835 exportMetaObjectRevisions: [0, 1, 2, 3]
835 exportMetaObjectRevisions: [0, 1, 2, 3]
836 Property { name: "count"; type: "int"; isReadonly: true }
836 Property { name: "count"; type: "int"; isReadonly: true }
837 Property { name: "axisX"; revision: 1; type: "QAbstractAxis"; isPointer: true }
837 Property { name: "axisX"; revision: 1; type: "QAbstractAxis"; isPointer: true }
838 Property { name: "axisY"; revision: 1; type: "QAbstractAxis"; isPointer: true }
838 Property { name: "axisY"; revision: 1; type: "QAbstractAxis"; isPointer: true }
839 Property { name: "axisXTop"; revision: 2; type: "QAbstractAxis"; isPointer: true }
839 Property { name: "axisXTop"; revision: 2; type: "QAbstractAxis"; isPointer: true }
840 Property { name: "axisYRight"; revision: 2; type: "QAbstractAxis"; isPointer: true }
840 Property { name: "axisYRight"; revision: 2; type: "QAbstractAxis"; isPointer: true }
841 Property { name: "axisAngular"; revision: 3; type: "QAbstractAxis"; isPointer: true }
841 Property { name: "axisAngular"; revision: 3; type: "QAbstractAxis"; isPointer: true }
842 Property { name: "axisRadial"; revision: 3; type: "QAbstractAxis"; isPointer: true }
842 Property { name: "axisRadial"; revision: 3; type: "QAbstractAxis"; isPointer: true }
843 Property { name: "width"; revision: 1; type: "double" }
843 Property { name: "width"; revision: 1; type: "double" }
844 Property { name: "style"; revision: 1; type: "Qt::PenStyle" }
844 Property { name: "style"; revision: 1; type: "Qt::PenStyle" }
845 Property { name: "capStyle"; revision: 1; type: "Qt::PenCapStyle" }
845 Property { name: "capStyle"; revision: 1; type: "Qt::PenCapStyle" }
846 Property { name: "declarativeChildren"; type: "QObject"; isList: true; isReadonly: true }
846 Property { name: "declarativeChildren"; type: "QObject"; isList: true; isReadonly: true }
847 Signal {
847 Signal {
848 name: "countChanged"
848 name: "countChanged"
849 Parameter { name: "count"; type: "int" }
849 Parameter { name: "count"; type: "int" }
850 }
850 }
851 Signal {
851 Signal {
852 name: "axisXChanged"
852 name: "axisXChanged"
853 revision: 1
853 revision: 1
854 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
854 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
855 }
855 }
856 Signal {
856 Signal {
857 name: "axisYChanged"
857 name: "axisYChanged"
858 revision: 1
858 revision: 1
859 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
859 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
860 }
860 }
861 Signal {
861 Signal {
862 name: "axisXTopChanged"
862 name: "axisXTopChanged"
863 revision: 2
863 revision: 2
864 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
864 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
865 }
865 }
866 Signal {
866 Signal {
867 name: "axisYRightChanged"
867 name: "axisYRightChanged"
868 revision: 2
868 revision: 2
869 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
869 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
870 }
870 }
871 Signal {
871 Signal {
872 name: "axisAngularChanged"
872 name: "axisAngularChanged"
873 revision: 3
873 revision: 3
874 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
874 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
875 }
875 }
876 Signal {
876 Signal {
877 name: "axisRadialChanged"
877 name: "axisRadialChanged"
878 revision: 3
878 revision: 3
879 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
879 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
880 }
880 }
881 Signal {
881 Signal {
882 name: "widthChanged"
882 name: "widthChanged"
883 revision: 1
883 revision: 1
884 Parameter { name: "width"; type: "double" }
884 Parameter { name: "width"; type: "double" }
885 }
885 }
886 Signal {
886 Signal {
887 name: "styleChanged"
887 name: "styleChanged"
888 revision: 1
888 revision: 1
889 Parameter { name: "style"; type: "Qt::PenStyle" }
889 Parameter { name: "style"; type: "Qt::PenStyle" }
890 }
890 }
891 Signal {
891 Signal {
892 name: "capStyleChanged"
892 name: "capStyleChanged"
893 revision: 1
893 revision: 1
894 Parameter { name: "capStyle"; type: "Qt::PenCapStyle" }
894 Parameter { name: "capStyle"; type: "Qt::PenCapStyle" }
895 }
895 }
896 Method {
896 Method {
897 name: "appendDeclarativeChildren"
897 name: "appendDeclarativeChildren"
898 Parameter { name: "list"; type: "QObject"; isList: true; isPointer: true }
898 Parameter { name: "list"; type: "QObject"; isList: true; isPointer: true }
899 Parameter { name: "element"; type: "QObject"; isPointer: true }
899 Parameter { name: "element"; type: "QObject"; isPointer: true }
900 }
900 }
901 Method {
901 Method {
902 name: "handleCountChanged"
902 name: "handleCountChanged"
903 Parameter { name: "index"; type: "int" }
903 Parameter { name: "index"; type: "int" }
904 }
904 }
905 Method {
905 Method {
906 name: "append"
906 name: "append"
907 Parameter { name: "x"; type: "double" }
907 Parameter { name: "x"; type: "double" }
908 Parameter { name: "y"; type: "double" }
908 Parameter { name: "y"; type: "double" }
909 }
909 }
910 Method {
910 Method {
911 name: "replace"
911 name: "replace"
912 Parameter { name: "oldX"; type: "double" }
912 Parameter { name: "oldX"; type: "double" }
913 Parameter { name: "oldY"; type: "double" }
913 Parameter { name: "oldY"; type: "double" }
914 Parameter { name: "newX"; type: "double" }
914 Parameter { name: "newX"; type: "double" }
915 Parameter { name: "newY"; type: "double" }
915 Parameter { name: "newY"; type: "double" }
916 }
916 }
917 Method {
917 Method {
918 name: "replace"
918 name: "replace"
919 revision: 3
919 revision: 3
920 Parameter { name: "index"; type: "int" }
920 Parameter { name: "index"; type: "int" }
921 Parameter { name: "newX"; type: "double" }
921 Parameter { name: "newX"; type: "double" }
922 Parameter { name: "newY"; type: "double" }
922 Parameter { name: "newY"; type: "double" }
923 }
923 }
924 Method {
924 Method {
925 name: "remove"
925 name: "remove"
926 Parameter { name: "x"; type: "double" }
926 Parameter { name: "x"; type: "double" }
927 Parameter { name: "y"; type: "double" }
927 Parameter { name: "y"; type: "double" }
928 }
928 }
929 Method {
929 Method {
930 name: "remove"
930 name: "remove"
931 revision: 3
931 revision: 3
932 Parameter { name: "index"; type: "int" }
932 Parameter { name: "index"; type: "int" }
933 }
933 }
934 Method {
934 Method {
935 name: "insert"
935 name: "insert"
936 Parameter { name: "index"; type: "int" }
936 Parameter { name: "index"; type: "int" }
937 Parameter { name: "x"; type: "double" }
937 Parameter { name: "x"; type: "double" }
938 Parameter { name: "y"; type: "double" }
938 Parameter { name: "y"; type: "double" }
939 }
939 }
940 Method { name: "clear" }
940 Method { name: "clear" }
941 Method {
941 Method {
942 name: "at"
942 name: "at"
943 type: "QPointF"
943 type: "QPointF"
944 Parameter { name: "index"; type: "int" }
944 Parameter { name: "index"; type: "int" }
945 }
945 }
946 }
946 }
947 Component {
947 Component {
948 name: "QtCommercialChart::DeclarativeMargins"
948 name: "QtCommercialChart::DeclarativeMargins"
949 prototype: "QObject"
949 prototype: "QObject"
950 exports: ["QtCommercial.Chart/Margins 1.1"]
950 exports: ["QtCommercial.Chart/Margins 1.1"]
951 exportMetaObjectRevisions: [0]
951 exportMetaObjectRevisions: [0]
952 Property { name: "top"; type: "int" }
952 Property { name: "top"; type: "int" }
953 Property { name: "bottom"; type: "int" }
953 Property { name: "bottom"; type: "int" }
954 Property { name: "left"; type: "int" }
954 Property { name: "left"; type: "int" }
955 Property { name: "right"; type: "int" }
955 Property { name: "right"; type: "int" }
956 Signal {
956 Signal {
957 name: "topChanged"
957 name: "topChanged"
958 Parameter { name: "top"; type: "int" }
958 Parameter { name: "top"; type: "int" }
959 Parameter { name: "bottom"; type: "int" }
959 Parameter { name: "bottom"; type: "int" }
960 Parameter { name: "left"; type: "int" }
960 Parameter { name: "left"; type: "int" }
961 Parameter { name: "right"; type: "int" }
961 Parameter { name: "right"; type: "int" }
962 }
962 }
963 Signal {
963 Signal {
964 name: "bottomChanged"
964 name: "bottomChanged"
965 Parameter { name: "top"; type: "int" }
965 Parameter { name: "top"; type: "int" }
966 Parameter { name: "bottom"; type: "int" }
966 Parameter { name: "bottom"; type: "int" }
967 Parameter { name: "left"; type: "int" }
967 Parameter { name: "left"; type: "int" }
968 Parameter { name: "right"; type: "int" }
968 Parameter { name: "right"; type: "int" }
969 }
969 }
970 Signal {
970 Signal {
971 name: "leftChanged"
971 name: "leftChanged"
972 Parameter { name: "top"; type: "int" }
972 Parameter { name: "top"; type: "int" }
973 Parameter { name: "bottom"; type: "int" }
973 Parameter { name: "bottom"; type: "int" }
974 Parameter { name: "left"; type: "int" }
974 Parameter { name: "left"; type: "int" }
975 Parameter { name: "right"; type: "int" }
975 Parameter { name: "right"; type: "int" }
976 }
976 }
977 Signal {
977 Signal {
978 name: "rightChanged"
978 name: "rightChanged"
979 Parameter { name: "top"; type: "int" }
979 Parameter { name: "top"; type: "int" }
980 Parameter { name: "bottom"; type: "int" }
980 Parameter { name: "bottom"; type: "int" }
981 Parameter { name: "left"; type: "int" }
981 Parameter { name: "left"; type: "int" }
982 Parameter { name: "right"; type: "int" }
982 Parameter { name: "right"; type: "int" }
983 }
983 }
984 }
984 }
985 Component {
985 Component {
986 name: "QtCommercialChart::DeclarativePercentBarSeries"
986 name: "QtCommercialChart::DeclarativePercentBarSeries"
987 defaultProperty: "seriesChildren"
987 defaultProperty: "seriesChildren"
988 prototype: "QtCommercialChart::QPercentBarSeries"
988 prototype: "QtCommercialChart::QPercentBarSeries"
989 exports: [
989 exports: [
990 "QtCommercial.Chart/PercentBarSeries 1.0",
990 "QtCommercial.Chart/PercentBarSeries 1.0",
991 "QtCommercial.Chart/PercentBarSeries 1.1",
991 "QtCommercial.Chart/PercentBarSeries 1.1",
992 "QtCommercial.Chart/PercentBarSeries 1.2"
992 "QtCommercial.Chart/PercentBarSeries 1.2"
993 ]
993 ]
994 exportMetaObjectRevisions: [0, 1, 2]
994 exportMetaObjectRevisions: [0, 1, 2]
995 Property { name: "axisX"; revision: 1; type: "QAbstractAxis"; isPointer: true }
995 Property { name: "axisX"; revision: 1; type: "QAbstractAxis"; isPointer: true }
996 Property { name: "axisY"; revision: 1; type: "QAbstractAxis"; isPointer: true }
996 Property { name: "axisY"; revision: 1; type: "QAbstractAxis"; isPointer: true }
997 Property { name: "axisXTop"; revision: 2; type: "QAbstractAxis"; isPointer: true }
997 Property { name: "axisXTop"; revision: 2; type: "QAbstractAxis"; isPointer: true }
998 Property { name: "axisYRight"; revision: 2; type: "QAbstractAxis"; isPointer: true }
998 Property { name: "axisYRight"; revision: 2; type: "QAbstractAxis"; isPointer: true }
999 Property { name: "seriesChildren"; type: "QObject"; isList: true; isReadonly: true }
999 Property { name: "seriesChildren"; type: "QObject"; isList: true; isReadonly: true }
1000 Signal {
1000 Signal {
1001 name: "axisXChanged"
1001 name: "axisXChanged"
1002 revision: 1
1002 revision: 1
1003 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
1003 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
1004 }
1004 }
1005 Signal {
1005 Signal {
1006 name: "axisYChanged"
1006 name: "axisYChanged"
1007 revision: 1
1007 revision: 1
1008 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
1008 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
1009 }
1009 }
1010 Signal {
1010 Signal {
1011 name: "axisXTopChanged"
1011 name: "axisXTopChanged"
1012 revision: 2
1012 revision: 2
1013 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
1013 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
1014 }
1014 }
1015 Signal {
1015 Signal {
1016 name: "axisYRightChanged"
1016 name: "axisYRightChanged"
1017 revision: 2
1017 revision: 2
1018 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
1018 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
1019 }
1019 }
1020 Method {
1020 Method {
1021 name: "appendSeriesChildren"
1021 name: "appendSeriesChildren"
1022 Parameter { name: "list"; type: "QObject"; isList: true; isPointer: true }
1022 Parameter { name: "list"; type: "QObject"; isList: true; isPointer: true }
1023 Parameter { name: "element"; type: "QObject"; isPointer: true }
1023 Parameter { name: "element"; type: "QObject"; isPointer: true }
1024 }
1024 }
1025 Method {
1025 Method {
1026 name: "at"
1026 name: "at"
1027 type: "DeclarativeBarSet*"
1027 type: "DeclarativeBarSet*"
1028 Parameter { name: "index"; type: "int" }
1028 Parameter { name: "index"; type: "int" }
1029 }
1029 }
1030 Method {
1030 Method {
1031 name: "append"
1031 name: "append"
1032 type: "DeclarativeBarSet*"
1032 type: "DeclarativeBarSet*"
1033 Parameter { name: "label"; type: "string" }
1033 Parameter { name: "label"; type: "string" }
1034 Parameter { name: "values"; type: "QVariantList" }
1034 Parameter { name: "values"; type: "QVariantList" }
1035 }
1035 }
1036 Method {
1036 Method {
1037 name: "insert"
1037 name: "insert"
1038 type: "DeclarativeBarSet*"
1038 type: "DeclarativeBarSet*"
1039 Parameter { name: "index"; type: "int" }
1039 Parameter { name: "index"; type: "int" }
1040 Parameter { name: "label"; type: "string" }
1040 Parameter { name: "label"; type: "string" }
1041 Parameter { name: "values"; type: "QVariantList" }
1041 Parameter { name: "values"; type: "QVariantList" }
1042 }
1042 }
1043 Method {
1043 Method {
1044 name: "remove"
1044 name: "remove"
1045 type: "bool"
1045 type: "bool"
1046 Parameter { name: "barset"; type: "QBarSet"; isPointer: true }
1046 Parameter { name: "barset"; type: "QBarSet"; isPointer: true }
1047 }
1047 }
1048 Method { name: "clear" }
1048 Method { name: "clear" }
1049 }
1049 }
1050 Component {
1050 Component {
1051 name: "QtCommercialChart::DeclarativePieSeries"
1051 name: "QtCommercialChart::DeclarativePieSeries"
1052 defaultProperty: "seriesChildren"
1052 defaultProperty: "seriesChildren"
1053 prototype: "QtCommercialChart::QPieSeries"
1053 prototype: "QtCommercialChart::QPieSeries"
1054 exports: [
1054 exports: [
1055 "QtCommercial.Chart/PieSeries 1.0",
1055 "QtCommercial.Chart/PieSeries 1.0",
1056 "QtCommercial.Chart/PieSeries 1.1"
1056 "QtCommercial.Chart/PieSeries 1.1"
1057 ]
1057 ]
1058 exportMetaObjectRevisions: [0, 0]
1058 exportMetaObjectRevisions: [0, 0]
1059 Property { name: "seriesChildren"; type: "QObject"; isList: true; isReadonly: true }
1059 Property { name: "seriesChildren"; type: "QObject"; isList: true; isReadonly: true }
1060 Signal {
1060 Signal {
1061 name: "sliceAdded"
1061 name: "sliceAdded"
1062 Parameter { name: "slice"; type: "QPieSlice"; isPointer: true }
1062 Parameter { name: "slice"; type: "QPieSlice"; isPointer: true }
1063 }
1063 }
1064 Signal {
1064 Signal {
1065 name: "sliceRemoved"
1065 name: "sliceRemoved"
1066 Parameter { name: "slice"; type: "QPieSlice"; isPointer: true }
1066 Parameter { name: "slice"; type: "QPieSlice"; isPointer: true }
1067 }
1067 }
1068 Method {
1068 Method {
1069 name: "appendSeriesChildren"
1069 name: "appendSeriesChildren"
1070 Parameter { name: "list"; type: "QObject"; isList: true; isPointer: true }
1070 Parameter { name: "list"; type: "QObject"; isList: true; isPointer: true }
1071 Parameter { name: "element"; type: "QObject"; isPointer: true }
1071 Parameter { name: "element"; type: "QObject"; isPointer: true }
1072 }
1072 }
1073 Method {
1073 Method {
1074 name: "handleAdded"
1074 name: "handleAdded"
1075 Parameter { name: "slices"; type: "QList<QPieSlice*>" }
1075 Parameter { name: "slices"; type: "QList<QPieSlice*>" }
1076 }
1076 }
1077 Method {
1077 Method {
1078 name: "handleRemoved"
1078 name: "handleRemoved"
1079 Parameter { name: "slices"; type: "QList<QPieSlice*>" }
1079 Parameter { name: "slices"; type: "QList<QPieSlice*>" }
1080 }
1080 }
1081 Method {
1081 Method {
1082 name: "at"
1082 name: "at"
1083 type: "QPieSlice*"
1083 type: "QPieSlice*"
1084 Parameter { name: "index"; type: "int" }
1084 Parameter { name: "index"; type: "int" }
1085 }
1085 }
1086 Method {
1086 Method {
1087 name: "find"
1087 name: "find"
1088 type: "QPieSlice*"
1088 type: "QPieSlice*"
1089 Parameter { name: "label"; type: "string" }
1089 Parameter { name: "label"; type: "string" }
1090 }
1090 }
1091 Method {
1091 Method {
1092 name: "append"
1092 name: "append"
1093 type: "DeclarativePieSlice*"
1093 type: "DeclarativePieSlice*"
1094 Parameter { name: "label"; type: "string" }
1094 Parameter { name: "label"; type: "string" }
1095 Parameter { name: "value"; type: "double" }
1095 Parameter { name: "value"; type: "double" }
1096 }
1096 }
1097 Method {
1097 Method {
1098 name: "remove"
1098 name: "remove"
1099 type: "bool"
1099 type: "bool"
1100 Parameter { name: "slice"; type: "QPieSlice"; isPointer: true }
1100 Parameter { name: "slice"; type: "QPieSlice"; isPointer: true }
1101 }
1101 }
1102 Method { name: "clear" }
1102 Method { name: "clear" }
1103 }
1103 }
1104 Component {
1104 Component {
1105 name: "QtCommercialChart::DeclarativePieSlice"
1105 name: "QtCommercialChart::DeclarativePieSlice"
1106 prototype: "QtCommercialChart::QPieSlice"
1106 prototype: "QtCommercialChart::QPieSlice"
1107 exports: ["QtCommercial.Chart/PieSlice 1.4"]
1107 exports: ["QtCommercial.Chart/PieSlice 1.4"]
1108 exportMetaObjectRevisions: [0]
1108 exportMetaObjectRevisions: [0]
1109 Property { name: "brushFilename"; type: "string" }
1109 Property { name: "brushFilename"; type: "string" }
1110 Signal {
1110 Signal {
1111 name: "brushFilenameChanged"
1111 name: "brushFilenameChanged"
1112 Parameter { name: "brushFilename"; type: "string" }
1112 Parameter { name: "brushFilename"; type: "string" }
1113 }
1113 }
1114 }
1114 }
1115 Component {
1115 Component {
1116 name: "QtCommercialChart::DeclarativePolarChart"
1116 name: "QtCommercialChart::DeclarativePolarChart"
1117 defaultProperty: "data"
1117 defaultProperty: "data"
1118 prototype: "QtCommercialChart::DeclarativeChart"
1118 prototype: "QtCommercialChart::DeclarativeChart"
1119 exports: ["QtCommercial.Chart/PolarChartView 1.3"]
1119 exports: ["QtCommercial.Chart/PolarChartView 1.3"]
1120 exportMetaObjectRevisions: [1]
1120 exportMetaObjectRevisions: [1]
1121 }
1121 }
1122 Component {
1122 Component {
1123 name: "QtCommercialChart::DeclarativeScatterSeries"
1123 name: "QtCommercialChart::DeclarativeScatterSeries"
1124 defaultProperty: "declarativeChildren"
1124 defaultProperty: "declarativeChildren"
1125 prototype: "QtCommercialChart::QScatterSeries"
1125 prototype: "QtCommercialChart::QScatterSeries"
1126 exports: [
1126 exports: [
1127 "QtCommercial.Chart/ScatterSeries 1.0",
1127 "QtCommercial.Chart/ScatterSeries 1.0",
1128 "QtCommercial.Chart/ScatterSeries 1.1",
1128 "QtCommercial.Chart/ScatterSeries 1.1",
1129 "QtCommercial.Chart/ScatterSeries 1.2",
1129 "QtCommercial.Chart/ScatterSeries 1.2",
1130 "QtCommercial.Chart/ScatterSeries 1.3",
1130 "QtCommercial.Chart/ScatterSeries 1.3",
1131 "QtCommercial.Chart/ScatterSeries 1.4"
1131 "QtCommercial.Chart/ScatterSeries 1.4"
1132 ]
1132 ]
1133 exportMetaObjectRevisions: [0, 1, 2, 3, 4]
1133 exportMetaObjectRevisions: [0, 1, 2, 3, 4]
1134 Property { name: "count"; type: "int"; isReadonly: true }
1134 Property { name: "count"; type: "int"; isReadonly: true }
1135 Property { name: "axisX"; revision: 1; type: "QAbstractAxis"; isPointer: true }
1135 Property { name: "axisX"; revision: 1; type: "QAbstractAxis"; isPointer: true }
1136 Property { name: "axisY"; revision: 1; type: "QAbstractAxis"; isPointer: true }
1136 Property { name: "axisY"; revision: 1; type: "QAbstractAxis"; isPointer: true }
1137 Property { name: "axisXTop"; revision: 2; type: "QAbstractAxis"; isPointer: true }
1137 Property { name: "axisXTop"; revision: 2; type: "QAbstractAxis"; isPointer: true }
1138 Property { name: "axisYRight"; revision: 2; type: "QAbstractAxis"; isPointer: true }
1138 Property { name: "axisYRight"; revision: 2; type: "QAbstractAxis"; isPointer: true }
1139 Property { name: "axisAngular"; revision: 3; type: "QAbstractAxis"; isPointer: true }
1139 Property { name: "axisAngular"; revision: 3; type: "QAbstractAxis"; isPointer: true }
1140 Property { name: "axisRadial"; revision: 3; type: "QAbstractAxis"; isPointer: true }
1140 Property { name: "axisRadial"; revision: 3; type: "QAbstractAxis"; isPointer: true }
1141 Property { name: "borderWidth"; revision: 1; type: "double" }
1141 Property { name: "borderWidth"; revision: 1; type: "double" }
1142 Property { name: "declarativeChildren"; type: "QObject"; isList: true; isReadonly: true }
1142 Property { name: "declarativeChildren"; type: "QObject"; isList: true; isReadonly: true }
1143 Property { name: "brushFilename"; revision: 4; type: "string" }
1143 Property { name: "brushFilename"; revision: 4; type: "string" }
1144 Property { name: "brush"; revision: 4; type: "QBrush" }
1144 Property { name: "brush"; revision: 4; type: "QBrush" }
1145 Signal {
1145 Signal {
1146 name: "countChanged"
1146 name: "countChanged"
1147 Parameter { name: "count"; type: "int" }
1147 Parameter { name: "count"; type: "int" }
1148 }
1148 }
1149 Signal {
1149 Signal {
1150 name: "axisXChanged"
1150 name: "axisXChanged"
1151 revision: 1
1151 revision: 1
1152 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
1152 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
1153 }
1153 }
1154 Signal {
1154 Signal {
1155 name: "axisYChanged"
1155 name: "axisYChanged"
1156 revision: 1
1156 revision: 1
1157 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
1157 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
1158 }
1158 }
1159 Signal {
1159 Signal {
1160 name: "borderWidthChanged"
1160 name: "borderWidthChanged"
1161 revision: 1
1161 revision: 1
1162 Parameter { name: "width"; type: "double" }
1162 Parameter { name: "width"; type: "double" }
1163 }
1163 }
1164 Signal {
1164 Signal {
1165 name: "axisXTopChanged"
1165 name: "axisXTopChanged"
1166 revision: 2
1166 revision: 2
1167 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
1167 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
1168 }
1168 }
1169 Signal {
1169 Signal {
1170 name: "axisYRightChanged"
1170 name: "axisYRightChanged"
1171 revision: 2
1171 revision: 2
1172 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
1172 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
1173 }
1173 }
1174 Signal {
1174 Signal {
1175 name: "axisAngularChanged"
1175 name: "axisAngularChanged"
1176 revision: 3
1176 revision: 3
1177 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
1177 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
1178 }
1178 }
1179 Signal {
1179 Signal {
1180 name: "axisRadialChanged"
1180 name: "axisRadialChanged"
1181 revision: 3
1181 revision: 3
1182 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
1182 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
1183 }
1183 }
1184 Signal {
1184 Signal {
1185 name: "brushFilenameChanged"
1185 name: "brushFilenameChanged"
1186 revision: 4
1186 revision: 4
1187 Parameter { name: "brushFilename"; type: "string" }
1187 Parameter { name: "brushFilename"; type: "string" }
1188 }
1188 }
1189 Signal { name: "brushChanged"; revision: 4 }
1189 Signal { name: "brushChanged"; revision: 4 }
1190 Method {
1190 Method {
1191 name: "appendDeclarativeChildren"
1191 name: "appendDeclarativeChildren"
1192 Parameter { name: "list"; type: "QObject"; isList: true; isPointer: true }
1192 Parameter { name: "list"; type: "QObject"; isList: true; isPointer: true }
1193 Parameter { name: "element"; type: "QObject"; isPointer: true }
1193 Parameter { name: "element"; type: "QObject"; isPointer: true }
1194 }
1194 }
1195 Method {
1195 Method {
1196 name: "handleCountChanged"
1196 name: "handleCountChanged"
1197 Parameter { name: "index"; type: "int" }
1197 Parameter { name: "index"; type: "int" }
1198 }
1198 }
1199 Method {
1199 Method {
1200 name: "append"
1200 name: "append"
1201 Parameter { name: "x"; type: "double" }
1201 Parameter { name: "x"; type: "double" }
1202 Parameter { name: "y"; type: "double" }
1202 Parameter { name: "y"; type: "double" }
1203 }
1203 }
1204 Method {
1204 Method {
1205 name: "replace"
1205 name: "replace"
1206 Parameter { name: "oldX"; type: "double" }
1206 Parameter { name: "oldX"; type: "double" }
1207 Parameter { name: "oldY"; type: "double" }
1207 Parameter { name: "oldY"; type: "double" }
1208 Parameter { name: "newX"; type: "double" }
1208 Parameter { name: "newX"; type: "double" }
1209 Parameter { name: "newY"; type: "double" }
1209 Parameter { name: "newY"; type: "double" }
1210 }
1210 }
1211 Method {
1211 Method {
1212 name: "replace"
1212 name: "replace"
1213 revision: 3
1213 revision: 3
1214 Parameter { name: "index"; type: "int" }
1214 Parameter { name: "index"; type: "int" }
1215 Parameter { name: "newX"; type: "double" }
1215 Parameter { name: "newX"; type: "double" }
1216 Parameter { name: "newY"; type: "double" }
1216 Parameter { name: "newY"; type: "double" }
1217 }
1217 }
1218 Method {
1218 Method {
1219 name: "remove"
1219 name: "remove"
1220 Parameter { name: "x"; type: "double" }
1220 Parameter { name: "x"; type: "double" }
1221 Parameter { name: "y"; type: "double" }
1221 Parameter { name: "y"; type: "double" }
1222 }
1222 }
1223 Method {
1223 Method {
1224 name: "remove"
1224 name: "remove"
1225 revision: 3
1225 revision: 3
1226 Parameter { name: "index"; type: "int" }
1226 Parameter { name: "index"; type: "int" }
1227 }
1227 }
1228 Method {
1228 Method {
1229 name: "insert"
1229 name: "insert"
1230 Parameter { name: "index"; type: "int" }
1230 Parameter { name: "index"; type: "int" }
1231 Parameter { name: "x"; type: "double" }
1231 Parameter { name: "x"; type: "double" }
1232 Parameter { name: "y"; type: "double" }
1232 Parameter { name: "y"; type: "double" }
1233 }
1233 }
1234 Method { name: "clear" }
1234 Method { name: "clear" }
1235 Method {
1235 Method {
1236 name: "at"
1236 name: "at"
1237 type: "QPointF"
1237 type: "QPointF"
1238 Parameter { name: "index"; type: "int" }
1238 Parameter { name: "index"; type: "int" }
1239 }
1239 }
1240 }
1240 }
1241 Component {
1241 Component {
1242 name: "QtCommercialChart::DeclarativeSplineSeries"
1242 name: "QtCommercialChart::DeclarativeSplineSeries"
1243 defaultProperty: "declarativeChildren"
1243 defaultProperty: "declarativeChildren"
1244 prototype: "QtCommercialChart::QSplineSeries"
1244 prototype: "QtCommercialChart::QSplineSeries"
1245 exports: [
1245 exports: [
1246 "QtCommercial.Chart/SplineSeries 1.0",
1246 "QtCommercial.Chart/SplineSeries 1.0",
1247 "QtCommercial.Chart/SplineSeries 1.1",
1247 "QtCommercial.Chart/SplineSeries 1.1",
1248 "QtCommercial.Chart/SplineSeries 1.2",
1248 "QtCommercial.Chart/SplineSeries 1.2",
1249 "QtCommercial.Chart/SplineSeries 1.3"
1249 "QtCommercial.Chart/SplineSeries 1.3"
1250 ]
1250 ]
1251 exportMetaObjectRevisions: [0, 1, 2, 3]
1251 exportMetaObjectRevisions: [0, 1, 2, 3]
1252 Property { name: "count"; type: "int"; isReadonly: true }
1252 Property { name: "count"; type: "int"; isReadonly: true }
1253 Property { name: "axisX"; revision: 1; type: "QAbstractAxis"; isPointer: true }
1253 Property { name: "axisX"; revision: 1; type: "QAbstractAxis"; isPointer: true }
1254 Property { name: "axisY"; revision: 1; type: "QAbstractAxis"; isPointer: true }
1254 Property { name: "axisY"; revision: 1; type: "QAbstractAxis"; isPointer: true }
1255 Property { name: "axisXTop"; revision: 2; type: "QAbstractAxis"; isPointer: true }
1255 Property { name: "axisXTop"; revision: 2; type: "QAbstractAxis"; isPointer: true }
1256 Property { name: "axisYRight"; revision: 2; type: "QAbstractAxis"; isPointer: true }
1256 Property { name: "axisYRight"; revision: 2; type: "QAbstractAxis"; isPointer: true }
1257 Property { name: "axisAngular"; revision: 3; type: "QAbstractAxis"; isPointer: true }
1257 Property { name: "axisAngular"; revision: 3; type: "QAbstractAxis"; isPointer: true }
1258 Property { name: "axisRadial"; revision: 3; type: "QAbstractAxis"; isPointer: true }
1258 Property { name: "axisRadial"; revision: 3; type: "QAbstractAxis"; isPointer: true }
1259 Property { name: "width"; revision: 1; type: "double" }
1259 Property { name: "width"; revision: 1; type: "double" }
1260 Property { name: "style"; revision: 1; type: "Qt::PenStyle" }
1260 Property { name: "style"; revision: 1; type: "Qt::PenStyle" }
1261 Property { name: "capStyle"; revision: 1; type: "Qt::PenCapStyle" }
1261 Property { name: "capStyle"; revision: 1; type: "Qt::PenCapStyle" }
1262 Property { name: "declarativeChildren"; type: "QObject"; isList: true; isReadonly: true }
1262 Property { name: "declarativeChildren"; type: "QObject"; isList: true; isReadonly: true }
1263 Signal {
1263 Signal {
1264 name: "countChanged"
1264 name: "countChanged"
1265 Parameter { name: "count"; type: "int" }
1265 Parameter { name: "count"; type: "int" }
1266 }
1266 }
1267 Signal {
1267 Signal {
1268 name: "axisXChanged"
1268 name: "axisXChanged"
1269 revision: 1
1269 revision: 1
1270 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
1270 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
1271 }
1271 }
1272 Signal {
1272 Signal {
1273 name: "axisYChanged"
1273 name: "axisYChanged"
1274 revision: 1
1274 revision: 1
1275 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
1275 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
1276 }
1276 }
1277 Signal {
1277 Signal {
1278 name: "axisXTopChanged"
1278 name: "axisXTopChanged"
1279 revision: 2
1279 revision: 2
1280 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
1280 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
1281 }
1281 }
1282 Signal {
1282 Signal {
1283 name: "axisYRightChanged"
1283 name: "axisYRightChanged"
1284 revision: 2
1284 revision: 2
1285 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
1285 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
1286 }
1286 }
1287 Signal {
1287 Signal {
1288 name: "axisAngularChanged"
1288 name: "axisAngularChanged"
1289 revision: 3
1289 revision: 3
1290 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
1290 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
1291 }
1291 }
1292 Signal {
1292 Signal {
1293 name: "axisRadialChanged"
1293 name: "axisRadialChanged"
1294 revision: 3
1294 revision: 3
1295 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
1295 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
1296 }
1296 }
1297 Signal {
1297 Signal {
1298 name: "widthChanged"
1298 name: "widthChanged"
1299 revision: 1
1299 revision: 1
1300 Parameter { name: "width"; type: "double" }
1300 Parameter { name: "width"; type: "double" }
1301 }
1301 }
1302 Signal {
1302 Signal {
1303 name: "styleChanged"
1303 name: "styleChanged"
1304 revision: 1
1304 revision: 1
1305 Parameter { name: "style"; type: "Qt::PenStyle" }
1305 Parameter { name: "style"; type: "Qt::PenStyle" }
1306 }
1306 }
1307 Signal {
1307 Signal {
1308 name: "capStyleChanged"
1308 name: "capStyleChanged"
1309 revision: 1
1309 revision: 1
1310 Parameter { name: "capStyle"; type: "Qt::PenCapStyle" }
1310 Parameter { name: "capStyle"; type: "Qt::PenCapStyle" }
1311 }
1311 }
1312 Method {
1312 Method {
1313 name: "appendDeclarativeChildren"
1313 name: "appendDeclarativeChildren"
1314 Parameter { name: "list"; type: "QObject"; isList: true; isPointer: true }
1314 Parameter { name: "list"; type: "QObject"; isList: true; isPointer: true }
1315 Parameter { name: "element"; type: "QObject"; isPointer: true }
1315 Parameter { name: "element"; type: "QObject"; isPointer: true }
1316 }
1316 }
1317 Method {
1317 Method {
1318 name: "handleCountChanged"
1318 name: "handleCountChanged"
1319 Parameter { name: "index"; type: "int" }
1319 Parameter { name: "index"; type: "int" }
1320 }
1320 }
1321 Method {
1321 Method {
1322 name: "append"
1322 name: "append"
1323 Parameter { name: "x"; type: "double" }
1323 Parameter { name: "x"; type: "double" }
1324 Parameter { name: "y"; type: "double" }
1324 Parameter { name: "y"; type: "double" }
1325 }
1325 }
1326 Method {
1326 Method {
1327 name: "replace"
1327 name: "replace"
1328 Parameter { name: "oldX"; type: "double" }
1328 Parameter { name: "oldX"; type: "double" }
1329 Parameter { name: "oldY"; type: "double" }
1329 Parameter { name: "oldY"; type: "double" }
1330 Parameter { name: "newX"; type: "double" }
1330 Parameter { name: "newX"; type: "double" }
1331 Parameter { name: "newY"; type: "double" }
1331 Parameter { name: "newY"; type: "double" }
1332 }
1332 }
1333 Method {
1333 Method {
1334 name: "replace"
1334 name: "replace"
1335 revision: 3
1335 revision: 3
1336 Parameter { name: "index"; type: "int" }
1336 Parameter { name: "index"; type: "int" }
1337 Parameter { name: "newX"; type: "double" }
1337 Parameter { name: "newX"; type: "double" }
1338 Parameter { name: "newY"; type: "double" }
1338 Parameter { name: "newY"; type: "double" }
1339 }
1339 }
1340 Method {
1340 Method {
1341 name: "remove"
1341 name: "remove"
1342 Parameter { name: "x"; type: "double" }
1342 Parameter { name: "x"; type: "double" }
1343 Parameter { name: "y"; type: "double" }
1343 Parameter { name: "y"; type: "double" }
1344 }
1344 }
1345 Method {
1345 Method {
1346 name: "remove"
1346 name: "remove"
1347 revision: 3
1347 revision: 3
1348 Parameter { name: "index"; type: "int" }
1348 Parameter { name: "index"; type: "int" }
1349 }
1349 }
1350 Method {
1350 Method {
1351 name: "insert"
1351 name: "insert"
1352 Parameter { name: "index"; type: "int" }
1352 Parameter { name: "index"; type: "int" }
1353 Parameter { name: "x"; type: "double" }
1353 Parameter { name: "x"; type: "double" }
1354 Parameter { name: "y"; type: "double" }
1354 Parameter { name: "y"; type: "double" }
1355 }
1355 }
1356 Method { name: "clear" }
1356 Method { name: "clear" }
1357 Method {
1357 Method {
1358 name: "at"
1358 name: "at"
1359 type: "QPointF"
1359 type: "QPointF"
1360 Parameter { name: "index"; type: "int" }
1360 Parameter { name: "index"; type: "int" }
1361 }
1361 }
1362 }
1362 }
1363 Component {
1363 Component {
1364 name: "QtCommercialChart::DeclarativeStackedBarSeries"
1364 name: "QtCommercialChart::DeclarativeStackedBarSeries"
1365 defaultProperty: "seriesChildren"
1365 defaultProperty: "seriesChildren"
1366 prototype: "QtCommercialChart::QStackedBarSeries"
1366 prototype: "QtCommercialChart::QStackedBarSeries"
1367 exports: [
1367 exports: [
1368 "QtCommercial.Chart/StackedBarSeries 1.0",
1368 "QtCommercial.Chart/StackedBarSeries 1.0",
1369 "QtCommercial.Chart/StackedBarSeries 1.1",
1369 "QtCommercial.Chart/StackedBarSeries 1.1",
1370 "QtCommercial.Chart/StackedBarSeries 1.2"
1370 "QtCommercial.Chart/StackedBarSeries 1.2"
1371 ]
1371 ]
1372 exportMetaObjectRevisions: [0, 1, 2]
1372 exportMetaObjectRevisions: [0, 1, 2]
1373 Property { name: "axisX"; revision: 1; type: "QAbstractAxis"; isPointer: true }
1373 Property { name: "axisX"; revision: 1; type: "QAbstractAxis"; isPointer: true }
1374 Property { name: "axisY"; revision: 1; type: "QAbstractAxis"; isPointer: true }
1374 Property { name: "axisY"; revision: 1; type: "QAbstractAxis"; isPointer: true }
1375 Property { name: "axisXTop"; revision: 2; type: "QAbstractAxis"; isPointer: true }
1375 Property { name: "axisXTop"; revision: 2; type: "QAbstractAxis"; isPointer: true }
1376 Property { name: "axisYRight"; revision: 2; type: "QAbstractAxis"; isPointer: true }
1376 Property { name: "axisYRight"; revision: 2; type: "QAbstractAxis"; isPointer: true }
1377 Property { name: "seriesChildren"; type: "QObject"; isList: true; isReadonly: true }
1377 Property { name: "seriesChildren"; type: "QObject"; isList: true; isReadonly: true }
1378 Signal {
1378 Signal {
1379 name: "axisXChanged"
1379 name: "axisXChanged"
1380 revision: 1
1380 revision: 1
1381 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
1381 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
1382 }
1382 }
1383 Signal {
1383 Signal {
1384 name: "axisYChanged"
1384 name: "axisYChanged"
1385 revision: 1
1385 revision: 1
1386 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
1386 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
1387 }
1387 }
1388 Signal {
1388 Signal {
1389 name: "axisXTopChanged"
1389 name: "axisXTopChanged"
1390 revision: 2
1390 revision: 2
1391 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
1391 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
1392 }
1392 }
1393 Signal {
1393 Signal {
1394 name: "axisYRightChanged"
1394 name: "axisYRightChanged"
1395 revision: 2
1395 revision: 2
1396 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
1396 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
1397 }
1397 }
1398 Method {
1398 Method {
1399 name: "appendSeriesChildren"
1399 name: "appendSeriesChildren"
1400 Parameter { name: "list"; type: "QObject"; isList: true; isPointer: true }
1400 Parameter { name: "list"; type: "QObject"; isList: true; isPointer: true }
1401 Parameter { name: "element"; type: "QObject"; isPointer: true }
1401 Parameter { name: "element"; type: "QObject"; isPointer: true }
1402 }
1402 }
1403 Method {
1403 Method {
1404 name: "at"
1404 name: "at"
1405 type: "DeclarativeBarSet*"
1405 type: "DeclarativeBarSet*"
1406 Parameter { name: "index"; type: "int" }
1406 Parameter { name: "index"; type: "int" }
1407 }
1407 }
1408 Method {
1408 Method {
1409 name: "append"
1409 name: "append"
1410 type: "DeclarativeBarSet*"
1410 type: "DeclarativeBarSet*"
1411 Parameter { name: "label"; type: "string" }
1411 Parameter { name: "label"; type: "string" }
1412 Parameter { name: "values"; type: "QVariantList" }
1412 Parameter { name: "values"; type: "QVariantList" }
1413 }
1413 }
1414 Method {
1414 Method {
1415 name: "insert"
1415 name: "insert"
1416 type: "DeclarativeBarSet*"
1416 type: "DeclarativeBarSet*"
1417 Parameter { name: "index"; type: "int" }
1417 Parameter { name: "index"; type: "int" }
1418 Parameter { name: "label"; type: "string" }
1418 Parameter { name: "label"; type: "string" }
1419 Parameter { name: "values"; type: "QVariantList" }
1419 Parameter { name: "values"; type: "QVariantList" }
1420 }
1420 }
1421 Method {
1421 Method {
1422 name: "remove"
1422 name: "remove"
1423 type: "bool"
1423 type: "bool"
1424 Parameter { name: "barset"; type: "QBarSet"; isPointer: true }
1424 Parameter { name: "barset"; type: "QBarSet"; isPointer: true }
1425 }
1425 }
1426 Method { name: "clear" }
1426 Method { name: "clear" }
1427 }
1427 }
1428 Component {
1428 Component {
1429 name: "QtCommercialChart::DeclarativeXYPoint"
1429 name: "QtCommercialChart::DeclarativeXYPoint"
1430 prototype: "QObject"
1430 prototype: "QObject"
1431 exports: ["QtCommercial.Chart/XYPoint 1.0"]
1431 exports: ["QtCommercial.Chart/XYPoint 1.0"]
1432 exportMetaObjectRevisions: [0]
1432 exportMetaObjectRevisions: [0]
1433 Property { name: "x"; type: "double" }
1433 Property { name: "x"; type: "double" }
1434 Property { name: "y"; type: "double" }
1434 Property { name: "y"; type: "double" }
1435 }
1435 }
1436 Component {
1436 Component {
1437 name: "QtCommercialChart::LegendScroller"
1437 name: "QtCommercialChart::LegendScroller"
1438 defaultProperty: "children"
1438 defaultProperty: "children"
1439 prototype: "QtCommercialChart::QLegend"
1439 prototype: "QtCommercialChart::QLegend"
1440 }
1440 }
1441 Component {
1441 Component {
1442 name: "QtCommercialChart::QAbstractAxis"
1442 name: "QtCommercialChart::QAbstractAxis"
1443 prototype: "QObject"
1443 prototype: "QObject"
1444 exports: ["QtCommercial.Chart/AbstractAxis 1.0"]
1444 exports: ["QtCommercial.Chart/AbstractAxis 1.0"]
1445 exportMetaObjectRevisions: [0]
1445 exportMetaObjectRevisions: [0]
1446 Property { name: "visible"; type: "bool" }
1446 Property { name: "visible"; type: "bool" }
1447 Property { name: "lineVisible"; type: "bool" }
1447 Property { name: "lineVisible"; type: "bool" }
1448 Property { name: "linePen"; type: "QPen" }
1448 Property { name: "linePen"; type: "QPen" }
1449 Property { name: "color"; type: "QColor" }
1449 Property { name: "color"; type: "QColor" }
1450 Property { name: "labelsVisible"; type: "bool" }
1450 Property { name: "labelsVisible"; type: "bool" }
1451 Property { name: "labelsPen"; type: "QPen" }
1451 Property { name: "labelsPen"; type: "QPen" }
1452 Property { name: "labelsBrush"; type: "QBrush" }
1452 Property { name: "labelsBrush"; type: "QBrush" }
1453 Property { name: "labelsAngle"; type: "int" }
1453 Property { name: "labelsAngle"; type: "int" }
1454 Property { name: "labelsFont"; type: "QFont" }
1454 Property { name: "labelsFont"; type: "QFont" }
1455 Property { name: "labelsColor"; type: "QColor" }
1455 Property { name: "labelsColor"; type: "QColor" }
1456 Property { name: "gridVisible"; type: "bool" }
1456 Property { name: "gridVisible"; type: "bool" }
1457 Property { name: "gridLinePen"; type: "QPen" }
1457 Property { name: "gridLinePen"; type: "QPen" }
1458 Property { name: "shadesVisible"; type: "bool" }
1458 Property { name: "shadesVisible"; type: "bool" }
1459 Property { name: "shadesColor"; type: "QColor" }
1459 Property { name: "shadesColor"; type: "QColor" }
1460 Property { name: "shadesBorderColor"; type: "QColor" }
1460 Property { name: "shadesBorderColor"; type: "QColor" }
1461 Property { name: "shadesPen"; type: "QPen" }
1461 Property { name: "shadesPen"; type: "QPen" }
1462 Property { name: "shadesBrush"; type: "QBrush" }
1462 Property { name: "shadesBrush"; type: "QBrush" }
1463 Property { name: "titleText"; type: "string" }
1463 Property { name: "titleText"; type: "string" }
1464 Property { name: "titlePen"; type: "QPen" }
1464 Property { name: "titlePen"; type: "QPen" }
1465 Property { name: "titleBrush"; type: "QBrush" }
1465 Property { name: "titleBrush"; type: "QBrush" }
1466 Property { name: "titleVisible"; type: "bool" }
1466 Property { name: "titleVisible"; type: "bool" }
1467 Property { name: "titleFont"; type: "QFont" }
1467 Property { name: "titleFont"; type: "QFont" }
1468 Property { name: "orientation"; type: "Qt::Orientation"; isReadonly: true }
1468 Property { name: "orientation"; type: "Qt::Orientation"; isReadonly: true }
1469 Property { name: "alignment"; type: "Qt::Alignment"; isReadonly: true }
1469 Property { name: "alignment"; type: "Qt::Alignment"; isReadonly: true }
1470 Signal {
1470 Signal {
1471 name: "visibleChanged"
1471 name: "visibleChanged"
1472 Parameter { name: "visible"; type: "bool" }
1472 Parameter { name: "visible"; type: "bool" }
1473 }
1473 }
1474 Signal {
1474 Signal {
1475 name: "linePenChanged"
1475 name: "linePenChanged"
1476 Parameter { name: "pen"; type: "QPen" }
1476 Parameter { name: "pen"; type: "QPen" }
1477 }
1477 }
1478 Signal {
1478 Signal {
1479 name: "lineVisibleChanged"
1479 name: "lineVisibleChanged"
1480 Parameter { name: "visible"; type: "bool" }
1480 Parameter { name: "visible"; type: "bool" }
1481 }
1481 }
1482 Signal {
1482 Signal {
1483 name: "labelsVisibleChanged"
1483 name: "labelsVisibleChanged"
1484 Parameter { name: "visible"; type: "bool" }
1484 Parameter { name: "visible"; type: "bool" }
1485 }
1485 }
1486 Signal {
1486 Signal {
1487 name: "labelsPenChanged"
1487 name: "labelsPenChanged"
1488 Parameter { name: "pen"; type: "QPen" }
1488 Parameter { name: "pen"; type: "QPen" }
1489 }
1489 }
1490 Signal {
1490 Signal {
1491 name: "labelsBrushChanged"
1491 name: "labelsBrushChanged"
1492 Parameter { name: "brush"; type: "QBrush" }
1492 Parameter { name: "brush"; type: "QBrush" }
1493 }
1493 }
1494 Signal {
1494 Signal {
1495 name: "labelsFontChanged"
1495 name: "labelsFontChanged"
1496 Parameter { name: "pen"; type: "QFont" }
1496 Parameter { name: "pen"; type: "QFont" }
1497 }
1497 }
1498 Signal {
1498 Signal {
1499 name: "labelsAngleChanged"
1499 name: "labelsAngleChanged"
1500 Parameter { name: "angle"; type: "int" }
1500 Parameter { name: "angle"; type: "int" }
1501 }
1501 }
1502 Signal {
1502 Signal {
1503 name: "gridLinePenChanged"
1503 name: "gridLinePenChanged"
1504 Parameter { name: "pen"; type: "QPen" }
1504 Parameter { name: "pen"; type: "QPen" }
1505 }
1505 }
1506 Signal {
1506 Signal {
1507 name: "gridVisibleChanged"
1507 name: "gridVisibleChanged"
1508 Parameter { name: "visible"; type: "bool" }
1508 Parameter { name: "visible"; type: "bool" }
1509 }
1509 }
1510 Signal {
1510 Signal {
1511 name: "colorChanged"
1511 name: "colorChanged"
1512 Parameter { name: "color"; type: "QColor" }
1512 Parameter { name: "color"; type: "QColor" }
1513 }
1513 }
1514 Signal {
1514 Signal {
1515 name: "labelsColorChanged"
1515 name: "labelsColorChanged"
1516 Parameter { name: "color"; type: "QColor" }
1516 Parameter { name: "color"; type: "QColor" }
1517 }
1517 }
1518 Signal {
1518 Signal {
1519 name: "titleTextChanged"
1519 name: "titleTextChanged"
1520 Parameter { name: "title"; type: "string" }
1520 Parameter { name: "title"; type: "string" }
1521 }
1521 }
1522 Signal {
1522 Signal {
1523 name: "titlePenChanged"
1523 name: "titlePenChanged"
1524 Parameter { name: "pen"; type: "QPen" }
1524 Parameter { name: "pen"; type: "QPen" }
1525 }
1525 }
1526 Signal {
1526 Signal {
1527 name: "titleBrushChanged"
1527 name: "titleBrushChanged"
1528 Parameter { name: "brush"; type: "QBrush" }
1528 Parameter { name: "brush"; type: "QBrush" }
1529 }
1529 }
1530 Signal {
1530 Signal {
1531 name: "titleVisibleChanged"
1531 name: "titleVisibleChanged"
1532 Parameter { name: "visible"; type: "bool" }
1532 Parameter { name: "visible"; type: "bool" }
1533 }
1533 }
1534 Signal {
1534 Signal {
1535 name: "titleFontChanged"
1535 name: "titleFontChanged"
1536 Parameter { name: "font"; type: "QFont" }
1536 Parameter { name: "font"; type: "QFont" }
1537 }
1537 }
1538 Signal {
1538 Signal {
1539 name: "shadesVisibleChanged"
1539 name: "shadesVisibleChanged"
1540 Parameter { name: "visible"; type: "bool" }
1540 Parameter { name: "visible"; type: "bool" }
1541 }
1541 }
1542 Signal {
1542 Signal {
1543 name: "shadesColorChanged"
1543 name: "shadesColorChanged"
1544 Parameter { name: "color"; type: "QColor" }
1544 Parameter { name: "color"; type: "QColor" }
1545 }
1545 }
1546 Signal {
1546 Signal {
1547 name: "shadesBorderColorChanged"
1547 name: "shadesBorderColorChanged"
1548 Parameter { name: "color"; type: "QColor" }
1548 Parameter { name: "color"; type: "QColor" }
1549 }
1549 }
1550 Signal {
1550 Signal {
1551 name: "shadesPenChanged"
1551 name: "shadesPenChanged"
1552 Parameter { name: "pen"; type: "QPen" }
1552 Parameter { name: "pen"; type: "QPen" }
1553 }
1553 }
1554 Signal {
1554 Signal {
1555 name: "shadesBrushChanged"
1555 name: "shadesBrushChanged"
1556 Parameter { name: "brush"; type: "QBrush" }
1556 Parameter { name: "brush"; type: "QBrush" }
1557 }
1557 }
1558 }
1558 }
1559 Component {
1559 Component {
1560 name: "QtCommercialChart::QAbstractBarSeries"
1560 name: "QtCommercialChart::QAbstractBarSeries"
1561 prototype: "QtCommercialChart::QAbstractSeries"
1561 prototype: "QtCommercialChart::QAbstractSeries"
1562 exports: ["QtCommercial.Chart/AbstractBarSeries 1.0"]
1562 exports: ["QtCommercial.Chart/AbstractBarSeries 1.0"]
1563 exportMetaObjectRevisions: [0]
1563 exportMetaObjectRevisions: [0]
1564 Property { name: "barWidth"; type: "double" }
1564 Property { name: "barWidth"; type: "double" }
1565 Property { name: "count"; type: "int"; isReadonly: true }
1565 Property { name: "count"; type: "int"; isReadonly: true }
1566 Property { name: "labelsVisible"; type: "bool" }
1566 Property { name: "labelsVisible"; type: "bool" }
1567 Signal {
1567 Signal {
1568 name: "clicked"
1568 name: "clicked"
1569 Parameter { name: "index"; type: "int" }
1569 Parameter { name: "index"; type: "int" }
1570 Parameter { name: "barset"; type: "QBarSet"; isPointer: true }
1570 Parameter { name: "barset"; type: "QBarSet"; isPointer: true }
1571 }
1571 }
1572 Signal {
1572 Signal {
1573 name: "hovered"
1573 name: "hovered"
1574 Parameter { name: "status"; type: "bool" }
1574 Parameter { name: "status"; type: "bool" }
1575 Parameter { name: "barset"; type: "QBarSet"; isPointer: true }
1575 Parameter { name: "barset"; type: "QBarSet"; isPointer: true }
1576 }
1576 }
1577 Signal {
1577 Signal {
1578 name: "hovered"
1578 name: "hovered"
1579 Parameter { name: "status"; type: "bool" }
1579 Parameter { name: "status"; type: "bool" }
1580 Parameter { name: "index"; type: "int" }
1580 Parameter { name: "index"; type: "int" }
1581 Parameter { name: "barset"; type: "QBarSet"; isPointer: true }
1581 Parameter { name: "barset"; type: "QBarSet"; isPointer: true }
1582 }
1582 }
1583 Signal {
1583 Signal {
1584 name: "barsetsAdded"
1584 name: "barsetsAdded"
1585 Parameter { name: "sets"; type: "QList<QBarSet*>" }
1585 Parameter { name: "sets"; type: "QList<QBarSet*>" }
1586 }
1586 }
1587 Signal {
1587 Signal {
1588 name: "barsetsRemoved"
1588 name: "barsetsRemoved"
1589 Parameter { name: "sets"; type: "QList<QBarSet*>" }
1589 Parameter { name: "sets"; type: "QList<QBarSet*>" }
1590 }
1590 }
1591 }
1591 }
1592 Component {
1592 Component {
1593 name: "QtCommercialChart::QAbstractSeries"
1593 name: "QtCommercialChart::QAbstractSeries"
1594 prototype: "QObject"
1594 prototype: "QObject"
1595 exports: ["QtCommercial.Chart/AbstractSeries 1.0"]
1595 exports: ["QtCommercial.Chart/AbstractSeries 1.0"]
1596 exportMetaObjectRevisions: [0]
1596 exportMetaObjectRevisions: [0]
1597 Enum {
1597 Enum {
1598 name: "SeriesType"
1598 name: "SeriesType"
1599 values: {
1599 values: {
1600 "SeriesTypeLine": 0,
1600 "SeriesTypeLine": 0,
1601 "SeriesTypeArea": 1,
1601 "SeriesTypeArea": 1,
1602 "SeriesTypeBar": 2,
1602 "SeriesTypeBar": 2,
1603 "SeriesTypeStackedBar": 3,
1603 "SeriesTypeStackedBar": 3,
1604 "SeriesTypePercentBar": 4,
1604 "SeriesTypePercentBar": 4,
1605 "SeriesTypePie": 5,
1605 "SeriesTypePie": 5,
1606 "SeriesTypeScatter": 6,
1606 "SeriesTypeScatter": 6,
1607 "SeriesTypeSpline": 7,
1607 "SeriesTypeSpline": 7,
1608 "SeriesTypeHorizontalBar": 8,
1608 "SeriesTypeHorizontalBar": 8,
1609 "SeriesTypeHorizontalStackedBar": 9,
1609 "SeriesTypeHorizontalStackedBar": 9,
1610 "SeriesTypeHorizontalPercentBar": 10,
1610 "SeriesTypeHorizontalPercentBar": 10,
1611 "SeriesTypeBoxPlot": 11
1611 "SeriesTypeBoxPlot": 11
1612 }
1612 }
1613 }
1613 }
1614 Property { name: "name"; type: "string" }
1614 Property { name: "name"; type: "string" }
1615 Property { name: "visible"; type: "bool" }
1615 Property { name: "visible"; type: "bool" }
1616 Property { name: "opacity"; type: "double" }
1616 Property { name: "opacity"; type: "double" }
1617 Property { name: "type"; type: "SeriesType"; isReadonly: true }
1617 Property { name: "type"; type: "SeriesType"; isReadonly: true }
1618 }
1618 }
1619 Component {
1619 Component {
1620 name: "QtCommercialChart::QAreaSeries"
1620 name: "QtCommercialChart::QAreaSeries"
1621 prototype: "QtCommercialChart::QAbstractSeries"
1621 prototype: "QtCommercialChart::QAbstractSeries"
1622 Property { name: "upperSeries"; type: "QLineSeries"; isReadonly: true; isPointer: true }
1622 Property { name: "upperSeries"; type: "QLineSeries"; isReadonly: true; isPointer: true }
1623 Property { name: "lowerSeries"; type: "QLineSeries"; isReadonly: true; isPointer: true }
1623 Property { name: "lowerSeries"; type: "QLineSeries"; isReadonly: true; isPointer: true }
1624 Property { name: "color"; type: "QColor" }
1624 Property { name: "color"; type: "QColor" }
1625 Property { name: "borderColor"; type: "QColor" }
1625 Property { name: "borderColor"; type: "QColor" }
1626 Signal {
1626 Signal {
1627 name: "clicked"
1627 name: "clicked"
1628 Parameter { name: "point"; type: "QPointF" }
1628 Parameter { name: "point"; type: "QPointF" }
1629 }
1629 }
1630 Signal {
1630 Signal {
1631 name: "hovered"
1631 name: "hovered"
1632 Parameter { name: "point"; type: "QPointF" }
1632 Parameter { name: "point"; type: "QPointF" }
1633 Parameter { name: "state"; type: "bool" }
1633 Parameter { name: "state"; type: "bool" }
1634 }
1634 }
1635 Signal { name: "selected" }
1635 Signal { name: "selected" }
1636 Signal {
1636 Signal {
1637 name: "colorChanged"
1637 name: "colorChanged"
1638 Parameter { name: "color"; type: "QColor" }
1638 Parameter { name: "color"; type: "QColor" }
1639 }
1639 }
1640 Signal {
1640 Signal {
1641 name: "borderColorChanged"
1641 name: "borderColorChanged"
1642 Parameter { name: "color"; type: "QColor" }
1642 Parameter { name: "color"; type: "QColor" }
1643 }
1643 }
1644 }
1644 }
1645 Component {
1645 Component {
1646 name: "QtCommercialChart::QBarCategoryAxis"
1646 name: "QtCommercialChart::QBarCategoryAxis"
1647 prototype: "QtCommercialChart::QAbstractAxis"
1647 prototype: "QtCommercialChart::QAbstractAxis"
1648 exports: [
1648 exports: [
1649 "QtCommercial.Chart/BarCategoriesAxis 1.0",
1649 "QtCommercial.Chart/BarCategoriesAxis 1.0",
1650 "QtCommercial.Chart/BarCategoryAxis 1.1"
1650 "QtCommercial.Chart/BarCategoryAxis 1.1"
1651 ]
1651 ]
1652 exportMetaObjectRevisions: [0, 0]
1652 exportMetaObjectRevisions: [0, 0]
1653 Property { name: "categories"; type: "QStringList" }
1653 Property { name: "categories"; type: "QStringList" }
1654 Property { name: "min"; type: "string" }
1654 Property { name: "min"; type: "string" }
1655 Property { name: "max"; type: "string" }
1655 Property { name: "max"; type: "string" }
1656 Property { name: "count"; type: "int"; isReadonly: true }
1656 Property { name: "count"; type: "int"; isReadonly: true }
1657 Signal {
1657 Signal {
1658 name: "minChanged"
1658 name: "minChanged"
1659 Parameter { name: "min"; type: "string" }
1659 Parameter { name: "min"; type: "string" }
1660 }
1660 }
1661 Signal {
1661 Signal {
1662 name: "maxChanged"
1662 name: "maxChanged"
1663 Parameter { name: "max"; type: "string" }
1663 Parameter { name: "max"; type: "string" }
1664 }
1664 }
1665 Signal {
1665 Signal {
1666 name: "rangeChanged"
1666 name: "rangeChanged"
1667 Parameter { name: "min"; type: "string" }
1667 Parameter { name: "min"; type: "string" }
1668 Parameter { name: "max"; type: "string" }
1668 Parameter { name: "max"; type: "string" }
1669 }
1669 }
1670 }
1670 }
1671 Component {
1671 Component {
1672 name: "QtCommercialChart::QBarModelMapper"
1672 name: "QtCommercialChart::QBarModelMapper"
1673 prototype: "QObject"
1673 prototype: "QObject"
1674 exports: ["QtCommercial.Chart/BarModelMapper 1.0"]
1674 exports: ["QtCommercial.Chart/BarModelMapper 1.0"]
1675 exportMetaObjectRevisions: [0]
1675 exportMetaObjectRevisions: [0]
1676 }
1676 }
1677 Component {
1677 Component {
1678 name: "QtCommercialChart::QBarSeries"
1678 name: "QtCommercialChart::QBarSeries"
1679 prototype: "QtCommercialChart::QAbstractBarSeries"
1679 prototype: "QtCommercialChart::QAbstractBarSeries"
1680 }
1680 }
1681 Component {
1681 Component {
1682 name: "QtCommercialChart::QBarSet"
1682 name: "QtCommercialChart::QBarSet"
1683 prototype: "QObject"
1683 prototype: "QObject"
1684 exports: ["QtCommercial.Chart/BarSetBase 1.0"]
1684 exports: ["QtCommercial.Chart/BarSetBase 1.0"]
1685 exportMetaObjectRevisions: [0]
1685 exportMetaObjectRevisions: [0]
1686 Property { name: "label"; type: "string" }
1686 Property { name: "label"; type: "string" }
1687 Property { name: "pen"; type: "QPen" }
1687 Property { name: "pen"; type: "QPen" }
1688 Property { name: "brush"; type: "QBrush" }
1688 Property { name: "brush"; type: "QBrush" }
1689 Property { name: "labelBrush"; type: "QBrush" }
1689 Property { name: "labelBrush"; type: "QBrush" }
1690 Property { name: "labelFont"; type: "QFont" }
1690 Property { name: "labelFont"; type: "QFont" }
1691 Property { name: "color"; type: "QColor" }
1691 Property { name: "color"; type: "QColor" }
1692 Property { name: "borderColor"; type: "QColor" }
1692 Property { name: "borderColor"; type: "QColor" }
1693 Property { name: "labelColor"; type: "QColor" }
1693 Property { name: "labelColor"; type: "QColor" }
1694 Signal {
1694 Signal {
1695 name: "clicked"
1695 name: "clicked"
1696 Parameter { name: "index"; type: "int" }
1696 Parameter { name: "index"; type: "int" }
1697 }
1697 }
1698 Signal {
1698 Signal {
1699 name: "hovered"
1699 name: "hovered"
1700 Parameter { name: "status"; type: "bool" }
1700 Parameter { name: "status"; type: "bool" }
1701 }
1701 }
1702 Signal {
1702 Signal {
1703 name: "hovered"
1703 name: "hovered"
1704 Parameter { name: "status"; type: "bool" }
1704 Parameter { name: "status"; type: "bool" }
1705 Parameter { name: "index"; type: "int" }
1705 Parameter { name: "index"; type: "int" }
1706 }
1706 }
1707 Signal {
1707 Signal {
1708 name: "colorChanged"
1708 name: "colorChanged"
1709 Parameter { name: "color"; type: "QColor" }
1709 Parameter { name: "color"; type: "QColor" }
1710 }
1710 }
1711 Signal {
1711 Signal {
1712 name: "borderColorChanged"
1712 name: "borderColorChanged"
1713 Parameter { name: "color"; type: "QColor" }
1713 Parameter { name: "color"; type: "QColor" }
1714 }
1714 }
1715 Signal {
1715 Signal {
1716 name: "labelColorChanged"
1716 name: "labelColorChanged"
1717 Parameter { name: "color"; type: "QColor" }
1717 Parameter { name: "color"; type: "QColor" }
1718 }
1718 }
1719 Signal {
1719 Signal {
1720 name: "valuesAdded"
1720 name: "valuesAdded"
1721 Parameter { name: "index"; type: "int" }
1721 Parameter { name: "index"; type: "int" }
1722 Parameter { name: "count"; type: "int" }
1722 Parameter { name: "count"; type: "int" }
1723 }
1723 }
1724 Signal {
1724 Signal {
1725 name: "valuesRemoved"
1725 name: "valuesRemoved"
1726 Parameter { name: "index"; type: "int" }
1726 Parameter { name: "index"; type: "int" }
1727 Parameter { name: "count"; type: "int" }
1727 Parameter { name: "count"; type: "int" }
1728 }
1728 }
1729 Signal {
1729 Signal {
1730 name: "valueChanged"
1730 name: "valueChanged"
1731 Parameter { name: "index"; type: "int" }
1731 Parameter { name: "index"; type: "int" }
1732 }
1732 }
1733 }
1733 }
1734 Component {
1734 Component {
1735 name: "QtCommercialChart::QBoxPlotSeries"
1735 name: "QtCommercialChart::QBoxPlotSeries"
1736 prototype: "QtCommercialChart::QAbstractSeries"
1736 prototype: "QtCommercialChart::QAbstractSeries"
1737 Property { name: "boxOutlineVisible"; type: "bool" }
1737 Property { name: "boxOutlineVisible"; type: "bool" }
1738 Property { name: "boxWidth"; type: "double" }
1738 Property { name: "boxWidth"; type: "double" }
1739 Property { name: "pen"; type: "QPen" }
1739 Property { name: "pen"; type: "QPen" }
1740 Property { name: "brush"; type: "QBrush" }
1740 Property { name: "brush"; type: "QBrush" }
1741 Property { name: "count"; revision: 1; type: "int"; isReadonly: true }
1741 Signal {
1742 Signal {
1742 name: "clicked"
1743 name: "clicked"
1743 Parameter { name: "boxset"; type: "QBoxSet"; isPointer: true }
1744 Parameter { name: "boxset"; type: "QBoxSet"; isPointer: true }
1744 }
1745 }
1745 Signal {
1746 Signal {
1746 name: "hovered"
1747 name: "hovered"
1747 Parameter { name: "status"; type: "bool" }
1748 Parameter { name: "status"; type: "bool" }
1748 Parameter { name: "boxset"; type: "QBoxSet"; isPointer: true }
1749 Parameter { name: "boxset"; type: "QBoxSet"; isPointer: true }
1749 }
1750 }
1750 Signal { name: "countChanged" }
1751 Signal { name: "boxOutlineVisibilityChanged" }
1751 Signal { name: "boxOutlineVisibilityChanged" }
1752 Signal {
1752 Signal {
1753 name: "boxsetsAdded"
1753 name: "boxsetsAdded"
1754 Parameter { name: "sets"; type: "QList<QBoxSet*>" }
1754 Parameter { name: "sets"; type: "QList<QBoxSet*>" }
1755 }
1755 }
1756 Signal {
1756 Signal {
1757 name: "boxsetsRemoved"
1757 name: "boxsetsRemoved"
1758 Parameter { name: "sets"; type: "QList<QBoxSet*>" }
1758 Parameter { name: "sets"; type: "QList<QBoxSet*>" }
1759 }
1759 }
1760 }
1760 }
1761 Component {
1761 Component {
1762 name: "QtCommercialChart::QBoxSet"
1762 name: "QtCommercialChart::QBoxSet"
1763 prototype: "QObject"
1763 prototype: "QObject"
1764 Property { name: "pen"; type: "QPen" }
1764 Property { name: "pen"; type: "QPen" }
1765 Property { name: "brush"; type: "QBrush" }
1765 Property { name: "brush"; type: "QBrush" }
1766 Signal { name: "clicked" }
1766 Signal { name: "clicked" }
1767 Signal {
1767 Signal {
1768 name: "hovered"
1768 name: "hovered"
1769 Parameter { name: "status"; type: "bool" }
1769 Parameter { name: "status"; type: "bool" }
1770 }
1770 }
1771 Signal { name: "valuesChanged" }
1771 Signal { name: "valuesChanged" }
1772 Signal {
1772 Signal {
1773 name: "valueChanged"
1773 name: "valueChanged"
1774 Parameter { name: "index"; type: "int" }
1774 Parameter { name: "index"; type: "int" }
1775 }
1775 }
1776 Signal { name: "cleared" }
1776 Signal { name: "cleared" }
1777 }
1777 }
1778 Component {
1778 Component {
1779 name: "QtCommercialChart::QCategoryAxis"
1779 name: "QtCommercialChart::QCategoryAxis"
1780 prototype: "QtCommercialChart::QValueAxis"
1780 prototype: "QtCommercialChart::QValueAxis"
1781 Property { name: "startValue"; type: "double" }
1781 Property { name: "startValue"; type: "double" }
1782 Property { name: "count"; type: "int"; isReadonly: true }
1782 Property { name: "count"; type: "int"; isReadonly: true }
1783 Property { name: "categoriesLabels"; type: "QStringList"; isReadonly: true }
1783 Property { name: "categoriesLabels"; type: "QStringList"; isReadonly: true }
1784 Signal { name: "categoriesChanged" }
1784 Signal { name: "categoriesChanged" }
1785 }
1785 }
1786 Component {
1786 Component {
1787 name: "QtCommercialChart::QDateTimeAxis"
1787 name: "QtCommercialChart::QDateTimeAxis"
1788 prototype: "QtCommercialChart::QAbstractAxis"
1788 prototype: "QtCommercialChart::QAbstractAxis"
1789 exports: ["QtCommercial.Chart/DateTimeAxis 1.1"]
1789 exports: ["QtCommercial.Chart/DateTimeAxis 1.1"]
1790 exportMetaObjectRevisions: [0]
1790 exportMetaObjectRevisions: [0]
1791 Property { name: "tickCount"; type: "int" }
1791 Property { name: "tickCount"; type: "int" }
1792 Property { name: "min"; type: "QDateTime" }
1792 Property { name: "min"; type: "QDateTime" }
1793 Property { name: "max"; type: "QDateTime" }
1793 Property { name: "max"; type: "QDateTime" }
1794 Property { name: "format"; type: "string" }
1794 Property { name: "format"; type: "string" }
1795 Signal {
1795 Signal {
1796 name: "minChanged"
1796 name: "minChanged"
1797 Parameter { name: "min"; type: "QDateTime" }
1797 Parameter { name: "min"; type: "QDateTime" }
1798 }
1798 }
1799 Signal {
1799 Signal {
1800 name: "maxChanged"
1800 name: "maxChanged"
1801 Parameter { name: "max"; type: "QDateTime" }
1801 Parameter { name: "max"; type: "QDateTime" }
1802 }
1802 }
1803 Signal {
1803 Signal {
1804 name: "rangeChanged"
1804 name: "rangeChanged"
1805 Parameter { name: "min"; type: "QDateTime" }
1805 Parameter { name: "min"; type: "QDateTime" }
1806 Parameter { name: "max"; type: "QDateTime" }
1806 Parameter { name: "max"; type: "QDateTime" }
1807 }
1807 }
1808 Signal {
1808 Signal {
1809 name: "formatChanged"
1809 name: "formatChanged"
1810 Parameter { name: "format"; type: "string" }
1810 Parameter { name: "format"; type: "string" }
1811 }
1811 }
1812 Signal {
1812 Signal {
1813 name: "tickCountChanged"
1813 name: "tickCountChanged"
1814 Parameter { name: "tick"; type: "int" }
1814 Parameter { name: "tick"; type: "int" }
1815 }
1815 }
1816 }
1816 }
1817 Component {
1817 Component {
1818 name: "QtCommercialChart::QHBarModelMapper"
1818 name: "QtCommercialChart::QHBarModelMapper"
1819 prototype: "QtCommercialChart::QBarModelMapper"
1819 prototype: "QtCommercialChart::QBarModelMapper"
1820 exports: ["QtCommercial.Chart/HBarModelMapper 1.0"]
1820 exports: ["QtCommercial.Chart/HBarModelMapper 1.0"]
1821 exportMetaObjectRevisions: [0]
1821 exportMetaObjectRevisions: [0]
1822 Property { name: "series"; type: "QAbstractBarSeries"; isPointer: true }
1822 Property { name: "series"; type: "QAbstractBarSeries"; isPointer: true }
1823 Property { name: "model"; type: "QAbstractItemModel"; isPointer: true }
1823 Property { name: "model"; type: "QAbstractItemModel"; isPointer: true }
1824 Property { name: "firstBarSetRow"; type: "int" }
1824 Property { name: "firstBarSetRow"; type: "int" }
1825 Property { name: "lastBarSetRow"; type: "int" }
1825 Property { name: "lastBarSetRow"; type: "int" }
1826 Property { name: "firstColumn"; type: "int" }
1826 Property { name: "firstColumn"; type: "int" }
1827 Property { name: "columnCount"; type: "int" }
1827 Property { name: "columnCount"; type: "int" }
1828 Signal { name: "seriesReplaced" }
1828 Signal { name: "seriesReplaced" }
1829 Signal { name: "modelReplaced" }
1829 Signal { name: "modelReplaced" }
1830 }
1830 }
1831 Component {
1831 Component {
1832 name: "QtCommercialChart::QHPieModelMapper"
1832 name: "QtCommercialChart::QHPieModelMapper"
1833 prototype: "QtCommercialChart::QPieModelMapper"
1833 prototype: "QtCommercialChart::QPieModelMapper"
1834 exports: ["QtCommercial.Chart/HPieModelMapper 1.0"]
1834 exports: ["QtCommercial.Chart/HPieModelMapper 1.0"]
1835 exportMetaObjectRevisions: [0]
1835 exportMetaObjectRevisions: [0]
1836 Property { name: "series"; type: "QPieSeries"; isPointer: true }
1836 Property { name: "series"; type: "QPieSeries"; isPointer: true }
1837 Property { name: "model"; type: "QAbstractItemModel"; isPointer: true }
1837 Property { name: "model"; type: "QAbstractItemModel"; isPointer: true }
1838 Property { name: "valuesRow"; type: "int" }
1838 Property { name: "valuesRow"; type: "int" }
1839 Property { name: "labelsRow"; type: "int" }
1839 Property { name: "labelsRow"; type: "int" }
1840 Property { name: "firstColumn"; type: "int" }
1840 Property { name: "firstColumn"; type: "int" }
1841 Property { name: "columnCount"; type: "int" }
1841 Property { name: "columnCount"; type: "int" }
1842 Signal { name: "seriesReplaced" }
1842 Signal { name: "seriesReplaced" }
1843 Signal { name: "modelReplaced" }
1843 Signal { name: "modelReplaced" }
1844 }
1844 }
1845 Component {
1845 Component {
1846 name: "QtCommercialChart::QHXYModelMapper"
1846 name: "QtCommercialChart::QHXYModelMapper"
1847 prototype: "QtCommercialChart::QXYModelMapper"
1847 prototype: "QtCommercialChart::QXYModelMapper"
1848 exports: ["QtCommercial.Chart/HXYModelMapper 1.0"]
1848 exports: ["QtCommercial.Chart/HXYModelMapper 1.0"]
1849 exportMetaObjectRevisions: [0]
1849 exportMetaObjectRevisions: [0]
1850 Property { name: "series"; type: "QXYSeries"; isPointer: true }
1850 Property { name: "series"; type: "QXYSeries"; isPointer: true }
1851 Property { name: "model"; type: "QAbstractItemModel"; isPointer: true }
1851 Property { name: "model"; type: "QAbstractItemModel"; isPointer: true }
1852 Property { name: "xRow"; type: "int" }
1852 Property { name: "xRow"; type: "int" }
1853 Property { name: "yRow"; type: "int" }
1853 Property { name: "yRow"; type: "int" }
1854 Property { name: "firstColumn"; type: "int" }
1854 Property { name: "firstColumn"; type: "int" }
1855 Property { name: "columnCount"; type: "int" }
1855 Property { name: "columnCount"; type: "int" }
1856 Signal { name: "seriesReplaced" }
1856 Signal { name: "seriesReplaced" }
1857 Signal { name: "modelReplaced" }
1857 Signal { name: "modelReplaced" }
1858 }
1858 }
1859 Component {
1859 Component {
1860 name: "QtCommercialChart::QHorizontalBarSeries"
1860 name: "QtCommercialChart::QHorizontalBarSeries"
1861 prototype: "QtCommercialChart::QAbstractBarSeries"
1861 prototype: "QtCommercialChart::QAbstractBarSeries"
1862 }
1862 }
1863 Component {
1863 Component {
1864 name: "QtCommercialChart::QHorizontalPercentBarSeries"
1864 name: "QtCommercialChart::QHorizontalPercentBarSeries"
1865 prototype: "QtCommercialChart::QAbstractBarSeries"
1865 prototype: "QtCommercialChart::QAbstractBarSeries"
1866 }
1866 }
1867 Component {
1867 Component {
1868 name: "QtCommercialChart::QHorizontalStackedBarSeries"
1868 name: "QtCommercialChart::QHorizontalStackedBarSeries"
1869 prototype: "QtCommercialChart::QAbstractBarSeries"
1869 prototype: "QtCommercialChart::QAbstractBarSeries"
1870 }
1870 }
1871 Component {
1871 Component {
1872 name: "QtCommercialChart::QLegend"
1872 name: "QtCommercialChart::QLegend"
1873 defaultProperty: "children"
1873 defaultProperty: "children"
1874 prototype: "QGraphicsWidget"
1874 prototype: "QGraphicsWidget"
1875 exports: ["QtCommercial.Chart/Legend 1.0"]
1875 exports: ["QtCommercial.Chart/Legend 1.0"]
1876 exportMetaObjectRevisions: [0]
1876 exportMetaObjectRevisions: [0]
1877 Property { name: "alignment"; type: "Qt::Alignment" }
1877 Property { name: "alignment"; type: "Qt::Alignment" }
1878 Property { name: "backgroundVisible"; type: "bool" }
1878 Property { name: "backgroundVisible"; type: "bool" }
1879 Property { name: "color"; type: "QColor" }
1879 Property { name: "color"; type: "QColor" }
1880 Property { name: "borderColor"; type: "QColor" }
1880 Property { name: "borderColor"; type: "QColor" }
1881 Property { name: "font"; type: "QFont" }
1881 Property { name: "font"; type: "QFont" }
1882 Property { name: "labelColor"; type: "QColor" }
1882 Property { name: "labelColor"; type: "QColor" }
1883 Property { name: "reverseMarkers"; type: "bool" }
1883 Property { name: "reverseMarkers"; type: "bool" }
1884 Signal {
1884 Signal {
1885 name: "backgroundVisibleChanged"
1885 name: "backgroundVisibleChanged"
1886 Parameter { name: "visible"; type: "bool" }
1886 Parameter { name: "visible"; type: "bool" }
1887 }
1887 }
1888 Signal {
1888 Signal {
1889 name: "colorChanged"
1889 name: "colorChanged"
1890 Parameter { name: "color"; type: "QColor" }
1890 Parameter { name: "color"; type: "QColor" }
1891 }
1891 }
1892 Signal {
1892 Signal {
1893 name: "borderColorChanged"
1893 name: "borderColorChanged"
1894 Parameter { name: "color"; type: "QColor" }
1894 Parameter { name: "color"; type: "QColor" }
1895 }
1895 }
1896 Signal {
1896 Signal {
1897 name: "fontChanged"
1897 name: "fontChanged"
1898 Parameter { name: "font"; type: "QFont" }
1898 Parameter { name: "font"; type: "QFont" }
1899 }
1899 }
1900 Signal {
1900 Signal {
1901 name: "labelColorChanged"
1901 name: "labelColorChanged"
1902 Parameter { name: "color"; type: "QColor" }
1902 Parameter { name: "color"; type: "QColor" }
1903 }
1903 }
1904 Signal {
1904 Signal {
1905 name: "reverseMarkersChanged"
1905 name: "reverseMarkersChanged"
1906 Parameter { name: "reverseMarkers"; type: "bool" }
1906 Parameter { name: "reverseMarkers"; type: "bool" }
1907 }
1907 }
1908 }
1908 }
1909 Component { name: "QtCommercialChart::QLineSeries"; prototype: "QtCommercialChart::QXYSeries" }
1909 Component { name: "QtCommercialChart::QLineSeries"; prototype: "QtCommercialChart::QXYSeries" }
1910 Component {
1910 Component {
1911 name: "QtCommercialChart::QLogValueAxis"
1911 name: "QtCommercialChart::QLogValueAxis"
1912 prototype: "QtCommercialChart::QAbstractAxis"
1912 prototype: "QtCommercialChart::QAbstractAxis"
1913 exports: ["QtCommercial.Chart/LogValueAxis 1.3"]
1913 exports: ["QtCommercial.Chart/LogValueAxis 1.3"]
1914 exportMetaObjectRevisions: [0]
1914 exportMetaObjectRevisions: [0]
1915 Property { name: "min"; type: "double" }
1915 Property { name: "min"; type: "double" }
1916 Property { name: "max"; type: "double" }
1916 Property { name: "max"; type: "double" }
1917 Property { name: "labelFormat"; type: "string" }
1917 Property { name: "labelFormat"; type: "string" }
1918 Property { name: "base"; type: "double" }
1918 Property { name: "base"; type: "double" }
1919 Signal {
1919 Signal {
1920 name: "minChanged"
1920 name: "minChanged"
1921 Parameter { name: "min"; type: "double" }
1921 Parameter { name: "min"; type: "double" }
1922 }
1922 }
1923 Signal {
1923 Signal {
1924 name: "maxChanged"
1924 name: "maxChanged"
1925 Parameter { name: "max"; type: "double" }
1925 Parameter { name: "max"; type: "double" }
1926 }
1926 }
1927 Signal {
1927 Signal {
1928 name: "rangeChanged"
1928 name: "rangeChanged"
1929 Parameter { name: "min"; type: "double" }
1929 Parameter { name: "min"; type: "double" }
1930 Parameter { name: "max"; type: "double" }
1930 Parameter { name: "max"; type: "double" }
1931 }
1931 }
1932 Signal {
1932 Signal {
1933 name: "labelFormatChanged"
1933 name: "labelFormatChanged"
1934 Parameter { name: "format"; type: "string" }
1934 Parameter { name: "format"; type: "string" }
1935 }
1935 }
1936 Signal {
1936 Signal {
1937 name: "baseChanged"
1937 name: "baseChanged"
1938 Parameter { name: "base"; type: "double" }
1938 Parameter { name: "base"; type: "double" }
1939 }
1939 }
1940 }
1940 }
1941 Component {
1941 Component {
1942 name: "QtCommercialChart::QPercentBarSeries"
1942 name: "QtCommercialChart::QPercentBarSeries"
1943 prototype: "QtCommercialChart::QAbstractBarSeries"
1943 prototype: "QtCommercialChart::QAbstractBarSeries"
1944 }
1944 }
1945 Component {
1945 Component {
1946 name: "QtCommercialChart::QPieModelMapper"
1946 name: "QtCommercialChart::QPieModelMapper"
1947 prototype: "QObject"
1947 prototype: "QObject"
1948 exports: ["QtCommercial.Chart/PieModelMapper 1.0"]
1948 exports: ["QtCommercial.Chart/PieModelMapper 1.0"]
1949 exportMetaObjectRevisions: [0]
1949 exportMetaObjectRevisions: [0]
1950 }
1950 }
1951 Component {
1951 Component {
1952 name: "QtCommercialChart::QPieSeries"
1952 name: "QtCommercialChart::QPieSeries"
1953 prototype: "QtCommercialChart::QAbstractSeries"
1953 prototype: "QtCommercialChart::QAbstractSeries"
1954 exports: ["QtCommercial.Chart/QPieSeries 1.0"]
1954 exports: ["QtCommercial.Chart/QPieSeries 1.0"]
1955 exportMetaObjectRevisions: [0]
1955 exportMetaObjectRevisions: [0]
1956 Property { name: "horizontalPosition"; type: "double" }
1956 Property { name: "horizontalPosition"; type: "double" }
1957 Property { name: "verticalPosition"; type: "double" }
1957 Property { name: "verticalPosition"; type: "double" }
1958 Property { name: "size"; type: "double" }
1958 Property { name: "size"; type: "double" }
1959 Property { name: "startAngle"; type: "double" }
1959 Property { name: "startAngle"; type: "double" }
1960 Property { name: "endAngle"; type: "double" }
1960 Property { name: "endAngle"; type: "double" }
1961 Property { name: "count"; type: "int"; isReadonly: true }
1961 Property { name: "count"; type: "int"; isReadonly: true }
1962 Property { name: "sum"; type: "double"; isReadonly: true }
1962 Property { name: "sum"; type: "double"; isReadonly: true }
1963 Property { name: "holeSize"; type: "double" }
1963 Property { name: "holeSize"; type: "double" }
1964 Signal {
1964 Signal {
1965 name: "added"
1965 name: "added"
1966 Parameter { name: "slices"; type: "QList<QPieSlice*>" }
1966 Parameter { name: "slices"; type: "QList<QPieSlice*>" }
1967 }
1967 }
1968 Signal {
1968 Signal {
1969 name: "removed"
1969 name: "removed"
1970 Parameter { name: "slices"; type: "QList<QPieSlice*>" }
1970 Parameter { name: "slices"; type: "QList<QPieSlice*>" }
1971 }
1971 }
1972 Signal {
1972 Signal {
1973 name: "clicked"
1973 name: "clicked"
1974 Parameter { name: "slice"; type: "QPieSlice"; isPointer: true }
1974 Parameter { name: "slice"; type: "QPieSlice"; isPointer: true }
1975 }
1975 }
1976 Signal {
1976 Signal {
1977 name: "hovered"
1977 name: "hovered"
1978 Parameter { name: "slice"; type: "QPieSlice"; isPointer: true }
1978 Parameter { name: "slice"; type: "QPieSlice"; isPointer: true }
1979 Parameter { name: "state"; type: "bool" }
1979 Parameter { name: "state"; type: "bool" }
1980 }
1980 }
1981 }
1981 }
1982 Component {
1982 Component {
1983 name: "QtCommercialChart::QPieSlice"
1983 name: "QtCommercialChart::QPieSlice"
1984 prototype: "QObject"
1984 prototype: "QObject"
1985 exports: ["QtCommercial.Chart/PieSlice 1.0"]
1985 exports: ["QtCommercial.Chart/PieSlice 1.0"]
1986 exportMetaObjectRevisions: [0]
1986 exportMetaObjectRevisions: [0]
1987 Enum {
1987 Enum {
1988 name: "LabelPosition"
1988 name: "LabelPosition"
1989 values: {
1989 values: {
1990 "LabelOutside": 0,
1990 "LabelOutside": 0,
1991 "LabelInsideHorizontal": 1,
1991 "LabelInsideHorizontal": 1,
1992 "LabelInsideTangential": 2,
1992 "LabelInsideTangential": 2,
1993 "LabelInsideNormal": 3
1993 "LabelInsideNormal": 3
1994 }
1994 }
1995 }
1995 }
1996 Property { name: "label"; type: "string" }
1996 Property { name: "label"; type: "string" }
1997 Property { name: "value"; type: "double" }
1997 Property { name: "value"; type: "double" }
1998 Property { name: "labelVisible"; type: "bool" }
1998 Property { name: "labelVisible"; type: "bool" }
1999 Property { name: "labelPosition"; type: "LabelPosition" }
1999 Property { name: "labelPosition"; type: "LabelPosition" }
2000 Property { name: "exploded"; type: "bool" }
2000 Property { name: "exploded"; type: "bool" }
2001 Property { name: "pen"; type: "QPen" }
2001 Property { name: "pen"; type: "QPen" }
2002 Property { name: "borderColor"; type: "QColor" }
2002 Property { name: "borderColor"; type: "QColor" }
2003 Property { name: "borderWidth"; type: "int" }
2003 Property { name: "borderWidth"; type: "int" }
2004 Property { name: "brush"; type: "QBrush" }
2004 Property { name: "brush"; type: "QBrush" }
2005 Property { name: "color"; type: "QColor" }
2005 Property { name: "color"; type: "QColor" }
2006 Property { name: "labelBrush"; type: "QBrush" }
2006 Property { name: "labelBrush"; type: "QBrush" }
2007 Property { name: "labelColor"; type: "QColor" }
2007 Property { name: "labelColor"; type: "QColor" }
2008 Property { name: "labelFont"; type: "QFont" }
2008 Property { name: "labelFont"; type: "QFont" }
2009 Property { name: "labelArmLengthFactor"; type: "double" }
2009 Property { name: "labelArmLengthFactor"; type: "double" }
2010 Property { name: "explodeDistanceFactor"; type: "double" }
2010 Property { name: "explodeDistanceFactor"; type: "double" }
2011 Property { name: "percentage"; type: "double"; isReadonly: true }
2011 Property { name: "percentage"; type: "double"; isReadonly: true }
2012 Property { name: "startAngle"; type: "double"; isReadonly: true }
2012 Property { name: "startAngle"; type: "double"; isReadonly: true }
2013 Property { name: "angleSpan"; type: "double"; isReadonly: true }
2013 Property { name: "angleSpan"; type: "double"; isReadonly: true }
2014 Signal { name: "clicked" }
2014 Signal { name: "clicked" }
2015 Signal {
2015 Signal {
2016 name: "hovered"
2016 name: "hovered"
2017 Parameter { name: "state"; type: "bool" }
2017 Parameter { name: "state"; type: "bool" }
2018 }
2018 }
2019 }
2019 }
2020 Component {
2020 Component {
2021 name: "QtCommercialChart::QScatterSeries"
2021 name: "QtCommercialChart::QScatterSeries"
2022 prototype: "QtCommercialChart::QXYSeries"
2022 prototype: "QtCommercialChart::QXYSeries"
2023 Enum {
2023 Enum {
2024 name: "MarkerShape"
2024 name: "MarkerShape"
2025 values: {
2025 values: {
2026 "MarkerShapeCircle": 0,
2026 "MarkerShapeCircle": 0,
2027 "MarkerShapeRectangle": 1
2027 "MarkerShapeRectangle": 1
2028 }
2028 }
2029 }
2029 }
2030 Property { name: "color"; type: "QColor" }
2030 Property { name: "color"; type: "QColor" }
2031 Property { name: "borderColor"; type: "QColor" }
2031 Property { name: "borderColor"; type: "QColor" }
2032 Property { name: "markerShape"; type: "MarkerShape" }
2032 Property { name: "markerShape"; type: "MarkerShape" }
2033 Property { name: "markerSize"; type: "double" }
2033 Property { name: "markerSize"; type: "double" }
2034 Property { name: "brush"; type: "QBrush" }
2034 Property { name: "brush"; type: "QBrush" }
2035 Signal {
2035 Signal {
2036 name: "colorChanged"
2036 name: "colorChanged"
2037 Parameter { name: "color"; type: "QColor" }
2037 Parameter { name: "color"; type: "QColor" }
2038 }
2038 }
2039 Signal {
2039 Signal {
2040 name: "borderColorChanged"
2040 name: "borderColorChanged"
2041 Parameter { name: "color"; type: "QColor" }
2041 Parameter { name: "color"; type: "QColor" }
2042 }
2042 }
2043 }
2043 }
2044 Component {
2044 Component {
2045 name: "QtCommercialChart::QSplineSeries"
2045 name: "QtCommercialChart::QSplineSeries"
2046 prototype: "QtCommercialChart::QLineSeries"
2046 prototype: "QtCommercialChart::QLineSeries"
2047 }
2047 }
2048 Component {
2048 Component {
2049 name: "QtCommercialChart::QStackedBarSeries"
2049 name: "QtCommercialChart::QStackedBarSeries"
2050 prototype: "QtCommercialChart::QAbstractBarSeries"
2050 prototype: "QtCommercialChart::QAbstractBarSeries"
2051 }
2051 }
2052 Component {
2052 Component {
2053 name: "QtCommercialChart::QVBarModelMapper"
2053 name: "QtCommercialChart::QVBarModelMapper"
2054 prototype: "QtCommercialChart::QBarModelMapper"
2054 prototype: "QtCommercialChart::QBarModelMapper"
2055 exports: ["QtCommercial.Chart/VBarModelMapper 1.0"]
2055 exports: ["QtCommercial.Chart/VBarModelMapper 1.0"]
2056 exportMetaObjectRevisions: [0]
2056 exportMetaObjectRevisions: [0]
2057 Property { name: "series"; type: "QAbstractBarSeries"; isPointer: true }
2057 Property { name: "series"; type: "QAbstractBarSeries"; isPointer: true }
2058 Property { name: "model"; type: "QAbstractItemModel"; isPointer: true }
2058 Property { name: "model"; type: "QAbstractItemModel"; isPointer: true }
2059 Property { name: "firstBarSetColumn"; type: "int" }
2059 Property { name: "firstBarSetColumn"; type: "int" }
2060 Property { name: "lastBarSetColumn"; type: "int" }
2060 Property { name: "lastBarSetColumn"; type: "int" }
2061 Property { name: "firstRow"; type: "int" }
2061 Property { name: "firstRow"; type: "int" }
2062 Property { name: "rowCount"; type: "int" }
2062 Property { name: "rowCount"; type: "int" }
2063 Signal { name: "seriesReplaced" }
2063 Signal { name: "seriesReplaced" }
2064 Signal { name: "modelReplaced" }
2064 Signal { name: "modelReplaced" }
2065 }
2065 }
2066 Component {
2066 Component {
2067 name: "QtCommercialChart::QVPieModelMapper"
2067 name: "QtCommercialChart::QVPieModelMapper"
2068 prototype: "QtCommercialChart::QPieModelMapper"
2068 prototype: "QtCommercialChart::QPieModelMapper"
2069 exports: ["QtCommercial.Chart/VPieModelMapper 1.0"]
2069 exports: ["QtCommercial.Chart/VPieModelMapper 1.0"]
2070 exportMetaObjectRevisions: [0]
2070 exportMetaObjectRevisions: [0]
2071 Property { name: "series"; type: "QPieSeries"; isPointer: true }
2071 Property { name: "series"; type: "QPieSeries"; isPointer: true }
2072 Property { name: "model"; type: "QAbstractItemModel"; isPointer: true }
2072 Property { name: "model"; type: "QAbstractItemModel"; isPointer: true }
2073 Property { name: "valuesColumn"; type: "int" }
2073 Property { name: "valuesColumn"; type: "int" }
2074 Property { name: "labelsColumn"; type: "int" }
2074 Property { name: "labelsColumn"; type: "int" }
2075 Property { name: "firstRow"; type: "int" }
2075 Property { name: "firstRow"; type: "int" }
2076 Property { name: "rowCount"; type: "int" }
2076 Property { name: "rowCount"; type: "int" }
2077 Signal { name: "seriesReplaced" }
2077 Signal { name: "seriesReplaced" }
2078 Signal { name: "modelReplaced" }
2078 Signal { name: "modelReplaced" }
2079 }
2079 }
2080 Component {
2080 Component {
2081 name: "QtCommercialChart::QVXYModelMapper"
2081 name: "QtCommercialChart::QVXYModelMapper"
2082 prototype: "QtCommercialChart::QXYModelMapper"
2082 prototype: "QtCommercialChart::QXYModelMapper"
2083 exports: ["QtCommercial.Chart/VXYModelMapper 1.0"]
2083 exports: ["QtCommercial.Chart/VXYModelMapper 1.0"]
2084 exportMetaObjectRevisions: [0]
2084 exportMetaObjectRevisions: [0]
2085 Property { name: "series"; type: "QXYSeries"; isPointer: true }
2085 Property { name: "series"; type: "QXYSeries"; isPointer: true }
2086 Property { name: "model"; type: "QAbstractItemModel"; isPointer: true }
2086 Property { name: "model"; type: "QAbstractItemModel"; isPointer: true }
2087 Property { name: "xColumn"; type: "int" }
2087 Property { name: "xColumn"; type: "int" }
2088 Property { name: "yColumn"; type: "int" }
2088 Property { name: "yColumn"; type: "int" }
2089 Property { name: "firstRow"; type: "int" }
2089 Property { name: "firstRow"; type: "int" }
2090 Property { name: "rowCount"; type: "int" }
2090 Property { name: "rowCount"; type: "int" }
2091 Signal { name: "seriesReplaced" }
2091 Signal { name: "seriesReplaced" }
2092 Signal { name: "modelReplaced" }
2092 Signal { name: "modelReplaced" }
2093 }
2093 }
2094 Component {
2094 Component {
2095 name: "QtCommercialChart::QValueAxis"
2095 name: "QtCommercialChart::QValueAxis"
2096 prototype: "QtCommercialChart::QAbstractAxis"
2096 prototype: "QtCommercialChart::QAbstractAxis"
2097 exports: [
2097 exports: [
2098 "QtCommercial.Chart/ValueAxis 1.1",
2098 "QtCommercial.Chart/ValueAxis 1.1",
2099 "QtCommercial.Chart/ValuesAxis 1.0"
2099 "QtCommercial.Chart/ValuesAxis 1.0"
2100 ]
2100 ]
2101 exportMetaObjectRevisions: [0, 0]
2101 exportMetaObjectRevisions: [0, 0]
2102 Property { name: "tickCount"; type: "int" }
2102 Property { name: "tickCount"; type: "int" }
2103 Property { name: "niceNumbersEnabled"; type: "bool" }
2103 Property { name: "niceNumbersEnabled"; type: "bool" }
2104 Property { name: "min"; type: "double" }
2104 Property { name: "min"; type: "double" }
2105 Property { name: "max"; type: "double" }
2105 Property { name: "max"; type: "double" }
2106 Property { name: "labelFormat"; type: "string" }
2106 Property { name: "labelFormat"; type: "string" }
2107 Signal {
2107 Signal {
2108 name: "minChanged"
2108 name: "minChanged"
2109 Parameter { name: "min"; type: "double" }
2109 Parameter { name: "min"; type: "double" }
2110 }
2110 }
2111 Signal {
2111 Signal {
2112 name: "maxChanged"
2112 name: "maxChanged"
2113 Parameter { name: "max"; type: "double" }
2113 Parameter { name: "max"; type: "double" }
2114 }
2114 }
2115 Signal {
2115 Signal {
2116 name: "rangeChanged"
2116 name: "rangeChanged"
2117 Parameter { name: "min"; type: "double" }
2117 Parameter { name: "min"; type: "double" }
2118 Parameter { name: "max"; type: "double" }
2118 Parameter { name: "max"; type: "double" }
2119 }
2119 }
2120 Signal {
2120 Signal {
2121 name: "tickCountChanged"
2121 name: "tickCountChanged"
2122 Parameter { name: "tickCount"; type: "int" }
2122 Parameter { name: "tickCount"; type: "int" }
2123 }
2123 }
2124 Signal {
2124 Signal {
2125 name: "labelFormatChanged"
2125 name: "labelFormatChanged"
2126 Parameter { name: "format"; type: "string" }
2126 Parameter { name: "format"; type: "string" }
2127 }
2127 }
2128 Method { name: "applyNiceNumbers" }
2128 Method { name: "applyNiceNumbers" }
2129 }
2129 }
2130 Component {
2130 Component {
2131 name: "QtCommercialChart::QXYModelMapper"
2131 name: "QtCommercialChart::QXYModelMapper"
2132 prototype: "QObject"
2132 prototype: "QObject"
2133 exports: ["QtCommercial.Chart/XYModelMapper 1.0"]
2133 exports: ["QtCommercial.Chart/XYModelMapper 1.0"]
2134 exportMetaObjectRevisions: [0]
2134 exportMetaObjectRevisions: [0]
2135 }
2135 }
2136 Component {
2136 Component {
2137 name: "QtCommercialChart::QXYSeries"
2137 name: "QtCommercialChart::QXYSeries"
2138 prototype: "QtCommercialChart::QAbstractSeries"
2138 prototype: "QtCommercialChart::QAbstractSeries"
2139 exports: ["QtCommercial.Chart/XYSeries 1.0"]
2139 exports: ["QtCommercial.Chart/XYSeries 1.0"]
2140 exportMetaObjectRevisions: [0]
2140 exportMetaObjectRevisions: [0]
2141 Property { name: "pointsVisible"; type: "bool" }
2141 Property { name: "pointsVisible"; type: "bool" }
2142 Property { name: "color"; type: "QColor" }
2142 Property { name: "color"; type: "QColor" }
2143 Signal {
2143 Signal {
2144 name: "clicked"
2144 name: "clicked"
2145 Parameter { name: "point"; type: "QPointF" }
2145 Parameter { name: "point"; type: "QPointF" }
2146 }
2146 }
2147 Signal {
2147 Signal {
2148 name: "hovered"
2148 name: "hovered"
2149 Parameter { name: "point"; type: "QPointF" }
2149 Parameter { name: "point"; type: "QPointF" }
2150 Parameter { name: "state"; type: "bool" }
2150 Parameter { name: "state"; type: "bool" }
2151 }
2151 }
2152 Signal {
2152 Signal {
2153 name: "pointReplaced"
2153 name: "pointReplaced"
2154 Parameter { name: "index"; type: "int" }
2154 Parameter { name: "index"; type: "int" }
2155 }
2155 }
2156 Signal {
2156 Signal {
2157 name: "pointRemoved"
2157 name: "pointRemoved"
2158 Parameter { name: "index"; type: "int" }
2158 Parameter { name: "index"; type: "int" }
2159 }
2159 }
2160 Signal {
2160 Signal {
2161 name: "pointAdded"
2161 name: "pointAdded"
2162 Parameter { name: "index"; type: "int" }
2162 Parameter { name: "index"; type: "int" }
2163 }
2163 }
2164 Signal {
2164 Signal {
2165 name: "colorChanged"
2165 name: "colorChanged"
2166 Parameter { name: "color"; type: "QColor" }
2166 Parameter { name: "color"; type: "QColor" }
2167 }
2167 }
2168 Signal { name: "pointsReplaced" }
2168 Signal { name: "pointsReplaced" }
2169 }
2169 }
2170 }
2170 }
@@ -1,686 +1,690
1 /****************************************************************************
1 /****************************************************************************
2 **
2 **
3 ** Copyright (C) 2013 Digia Plc
3 ** Copyright (C) 2013 Digia Plc
4 ** All rights reserved.
4 ** All rights reserved.
5 ** For any questions to Digia, please use contact form at http://qt.digia.com
5 ** For any questions to Digia, please use contact form at http://qt.digia.com
6 **
6 **
7 ** This file is part of the Qt Enterprise Charts Add-on.
7 ** This file is part of the Qt Enterprise Charts Add-on.
8 **
8 **
9 ** $QT_BEGIN_LICENSE$
9 ** $QT_BEGIN_LICENSE$
10 ** Licensees holding valid Qt Enterprise licenses may use this file in
10 ** Licensees holding valid Qt Enterprise licenses may use this file in
11 ** accordance with the Qt Enterprise License Agreement provided with the
11 ** accordance with the Qt Enterprise License Agreement provided with the
12 ** Software or, alternatively, in accordance with the terms contained in
12 ** Software or, alternatively, in accordance with the terms contained in
13 ** a written agreement between you and Digia.
13 ** a written agreement between you and Digia.
14 **
14 **
15 ** If you have questions regarding the use of this file, please use
15 ** If you have questions regarding the use of this file, please use
16 ** contact form at http://qt.digia.com
16 ** contact form at http://qt.digia.com
17 ** $QT_END_LICENSE$
17 ** $QT_END_LICENSE$
18 **
18 **
19 ****************************************************************************/
19 ****************************************************************************/
20
20
21 #include "qboxplotseries.h"
21 #include "qboxplotseries.h"
22 #include "qboxplotseries_p.h"
22 #include "qboxplotseries_p.h"
23 #include "qboxplotlegendmarker.h"
23 #include "qboxplotlegendmarker.h"
24 #include "qbarcategoryaxis.h"
24 #include "qbarcategoryaxis.h"
25 #include "boxplotchartitem_p.h"
25 #include "boxplotchartitem_p.h"
26 #include "chartdataset_p.h"
26 #include "chartdataset_p.h"
27 #include "charttheme_p.h"
27 #include "charttheme_p.h"
28 #include "qvalueaxis.h"
28 #include "qvalueaxis.h"
29 #include "charttheme_p.h"
29 #include "charttheme_p.h"
30 #include "boxplotanimation_p.h"
30 #include "boxplotanimation_p.h"
31 #include "qchart_p.h"
31 #include "qchart_p.h"
32 #include "qboxset.h"
32 #include "qboxset.h"
33 #include "qboxset_p.h"
33 #include "qboxset_p.h"
34
34
35 QTCOMMERCIALCHART_BEGIN_NAMESPACE
35 QTCOMMERCIALCHART_BEGIN_NAMESPACE
36
36
37 /*!
37 /*!
38 \class QBoxPlotSeries
38 \class QBoxPlotSeries
39 \inmodule Qt Charts
39 \inmodule Qt Charts
40 \brief Series for creating box-and-whiskers chart
40 \brief Series for creating box-and-whiskers chart
41 \mainclass
41 \mainclass
42
42
43 QBoxPlotSeries represents a series of data shown as box-and-whisker bars. The purpose of this class is to act as
43 QBoxPlotSeries represents a series of data shown as box-and-whisker bars. The purpose of this class is to act as
44 a container for single box-and-whisker items. Each item is drawn to own slot. If chart includes multiple instances of
44 a container for single box-and-whisker items. Each item is drawn to own slot. If chart includes multiple instances of
45 QBoxPlotSeries then box-and-whiskers items with the same index are drawn to same slot.
45 QBoxPlotSeries then box-and-whiskers items with the same index are drawn to same slot.
46
46
47 See the \l {Box and Whiskers Example} {box-and-whiskers chart example} to learn how to create a box-and-whiskers chart.
47 See the \l {Box and Whiskers Example} {box-and-whiskers chart example} to learn how to create a box-and-whiskers chart.
48 \image examples_boxplotchart.png
48 \image examples_boxplotchart.png
49
49
50 \sa QBoxSet
50 \sa QBoxSet
51 */
51 */
52 /*!
52 /*!
53 \fn QBoxPlotSeries::boxsetsAdded(QList<QBoxSet *> sets)
53 \fn QBoxPlotSeries::boxsetsAdded(QList<QBoxSet *> sets)
54 \brief Signal is emitted when a new \a sets of box-and-whiskers data is added to the series.
54 \brief Signal is emitted when a new \a sets of box-and-whiskers data is added to the series.
55 */
55 */
56 /*!
56 /*!
57 \fn QBoxPlotSeries::boxsetsRemoved(QList<QBoxSet *> sets)
57 \fn QBoxPlotSeries::boxsetsRemoved(QList<QBoxSet *> sets)
58 \brief Signal is emitted when \a sets of box-and-whiskers data is removed from the series.
58 \brief Signal is emitted when \a sets of box-and-whiskers data is removed from the series.
59 */
59 */
60 /*!
60 /*!
61 \fn QBoxPlotSeries::clicked(QBoxSet *boxset)
61 \fn QBoxPlotSeries::clicked(QBoxSet *boxset)
62 \brief Signal is emitted when the user clicks the \a boxset on the chart.
62 \brief Signal is emitted when the user clicks the \a boxset on the chart.
63 */
63 */
64 /*!
64 /*!
65 \fn QBoxPlotSeries::hovered(bool status, QBoxSet *boxset)
65 \fn QBoxPlotSeries::hovered(bool status, QBoxSet *boxset)
66 \brief Signal is emitted when there is change in hover \a status over \a boxset.
66 \brief Signal is emitted when there is change in hover \a status over \a boxset.
67 */
67 */
68 /*!
68 /*!
69 \fn QBoxPlotSeries::countChanged()
69 \fn QBoxPlotSeries::countChanged()
70 \brief Signal is emitted when there is change in count of box-and-whiskers items in the series.
70 \brief Signal is emitted when there is change in count of box-and-whiskers items in the series.
71 */
71 */
72 /*!
72 /*!
73 \property QBoxPlotSeries::boxOutlineVisible
73 \property QBoxPlotSeries::boxOutlineVisible
74 \brief This property configures the visibility of the middle box outline.
74 \brief This property configures the visibility of the middle box outline.
75 */
75 */
76 /*!
76 /*!
77 \property QBoxPlotSeries::boxWidth
77 \property QBoxPlotSeries::boxWidth
78 \brief This property configures the width of the box-and-whiskers item. The value signifies the relative
78 \brief This property configures the width of the box-and-whiskers item. The value signifies the relative
79 width of the box-and-whiskers item inside its own slot. The value can between 0.0 and 1.0. Negative values
79 width of the box-and-whiskers item inside its own slot. The value can between 0.0 and 1.0. Negative values
80 are clamped to 0.0 and values over 1.0 are clamped to 1.0.
80 are clamped to 0.0 and values over 1.0 are clamped to 1.0.
81 */
81 */
82 /*!
82 /*!
83 \property QBoxPlotSeries::pen
83 \property QBoxPlotSeries::pen
84 \brief This property configures the pen of the box-and-whiskers items.
84 \brief This property configures the pen of the box-and-whiskers items.
85 */
85 */
86 /*!
86 /*!
87 \property QBoxPlotSeries::brush
87 \property QBoxPlotSeries::brush
88 \brief This property configures the brush of the box-and-whiskers items.
88 \brief This property configures the brush of the box-and-whiskers items.
89 */
89 */
90 /*!
91 \property QBoxPlotSeries::count
92 \brief The count of sets in series.
93 */
90
94
91 /*!
95 /*!
92 \qmlproperty QString BoxPlotSeries::brushFilename
96 \qmlproperty QString BoxPlotSeries::brushFilename
93 The name of the file used as a brush for the series.
97 The name of the file used as a brush for the series.
94 */
98 */
95
99
96 /*!
100 /*!
97 \fn void QBoxPlotSeries::boxOutlineVisibilityChanged()
101 \fn void QBoxPlotSeries::boxOutlineVisibilityChanged()
98 Signal is emitted when the middle box outline visibility is changed.
102 Signal is emitted when the middle box outline visibility is changed.
99 */
103 */
100 /*!
104 /*!
101 \fn void QBoxPlotSeries::boxWidthChanged()
105 \fn void QBoxPlotSeries::boxWidthChanged()
102 Signal is emitted when the width of the box-and-whiskers item is changed.
106 Signal is emitted when the width of the box-and-whiskers item is changed.
103 */
107 */
104 /*!
108 /*!
105 \fn void QBoxPlotSeries::penChanged()
109 \fn void QBoxPlotSeries::penChanged()
106 This signal is emitted when the pen of the box-and-whiskers has changed.
110 This signal is emitted when the pen of the box-and-whiskers has changed.
107 \sa brush
111 \sa brush
108 */
112 */
109 /*!
113 /*!
110 \fn void QBoxPlotSeries::brushChanged()
114 \fn void QBoxPlotSeries::brushChanged()
111 This signal is emitted when the brush of the box-and-whiskers has changed.
115 This signal is emitted when the brush of the box-and-whiskers has changed.
112 \sa brush
116 \sa brush
113 */
117 */
114 /*!
118 /*!
115 \fn virtual SeriesType QBoxPlotSeries::type() const
119 \fn virtual SeriesType QBoxPlotSeries::type() const
116 \brief Returns type of series.
120 \brief Returns type of series.
117 \sa QAbstractSeries, SeriesType
121 \sa QAbstractSeries, SeriesType
118 */
122 */
119
123
120 /*!
124 /*!
121 Constructs empty QBoxPlotSeries.
125 Constructs empty QBoxPlotSeries.
122 QBoxPlotSeries is QObject which is a child of a \a parent.
126 QBoxPlotSeries is QObject which is a child of a \a parent.
123 */
127 */
124 QBoxPlotSeries::QBoxPlotSeries(QObject *parent)
128 QBoxPlotSeries::QBoxPlotSeries(QObject *parent)
125 : QAbstractSeries(*new QBoxPlotSeriesPrivate(this), parent)
129 : QAbstractSeries(*new QBoxPlotSeriesPrivate(this), parent)
126 {
130 {
127 }
131 }
128
132
129 /*!
133 /*!
130 Destructor. Removes series from chart.
134 Destructor. Removes series from chart.
131 */
135 */
132 QBoxPlotSeries::~QBoxPlotSeries()
136 QBoxPlotSeries::~QBoxPlotSeries()
133 {
137 {
134 Q_D(QBoxPlotSeries);
138 Q_D(QBoxPlotSeries);
135 if (d->m_chart)
139 if (d->m_chart)
136 d->m_chart->removeSeries(this);
140 d->m_chart->removeSeries(this);
137 }
141 }
138
142
139 /*!
143 /*!
140 Adds a single box and whiskers set to series. Takes ownership of the \a set. If the set is null or is already in series, it won't be appended.
144 Adds a single box and whiskers set to series. Takes ownership of the \a set. If the set is null or is already in series, it won't be appended.
141 Returns true, if appending succeeded.
145 Returns true, if appending succeeded.
142 */
146 */
143 bool QBoxPlotSeries::append(QBoxSet *set)
147 bool QBoxPlotSeries::append(QBoxSet *set)
144 {
148 {
145 Q_D(QBoxPlotSeries);
149 Q_D(QBoxPlotSeries);
146
150
147 bool success = d->append(set);
151 bool success = d->append(set);
148 if (success) {
152 if (success) {
149 QList<QBoxSet *> sets;
153 QList<QBoxSet *> sets;
150 sets.append(set);
154 sets.append(set);
151 set->setParent(this);
155 set->setParent(this);
152 emit boxsetsAdded(sets);
156 emit boxsetsAdded(sets);
153 emit countChanged();
157 emit countChanged();
154 }
158 }
155 return success;
159 return success;
156 }
160 }
157
161
158 /*!
162 /*!
159 Removes boxset from the series. Deletes the \a set and returns true if successful.
163 Removes boxset from the series. Deletes the \a set and returns true if successful.
160 */
164 */
161 bool QBoxPlotSeries::remove(QBoxSet *set)
165 bool QBoxPlotSeries::remove(QBoxSet *set)
162 {
166 {
163 Q_D(QBoxPlotSeries);
167 Q_D(QBoxPlotSeries);
164 bool success = d->remove(set);
168 bool success = d->remove(set);
165 if (success) {
169 if (success) {
166 QList<QBoxSet *> sets;
170 QList<QBoxSet *> sets;
167 sets.append(set);
171 sets.append(set);
168 set->setParent(0);
172 set->setParent(0);
169 emit boxsetsRemoved(sets);
173 emit boxsetsRemoved(sets);
170 emit countChanged();
174 emit countChanged();
171 delete set;
175 delete set;
172 set = 0;
176 set = 0;
173 }
177 }
174 return success;
178 return success;
175 }
179 }
176
180
177 /*!
181 /*!
178 Takes a single \a set from the series. Does not delete the boxset object.
182 Takes a single \a set from the series. Does not delete the boxset object.
179
183
180 NOTE: The series remains as the boxset's parent object. You must set the
184 NOTE: The series remains as the boxset's parent object. You must set the
181 parent object to take full ownership.
185 parent object to take full ownership.
182
186
183 Returns true if take was successful.
187 Returns true if take was successful.
184 */
188 */
185 bool QBoxPlotSeries::take(QBoxSet *set)
189 bool QBoxPlotSeries::take(QBoxSet *set)
186 {
190 {
187 Q_D(QBoxPlotSeries);
191 Q_D(QBoxPlotSeries);
188
192
189 bool success = d->remove(set);
193 bool success = d->remove(set);
190 if (success) {
194 if (success) {
191 QList<QBoxSet *> sets;
195 QList<QBoxSet *> sets;
192 sets.append(set);
196 sets.append(set);
193 emit boxsetsRemoved(sets);
197 emit boxsetsRemoved(sets);
194 emit countChanged();
198 emit countChanged();
195 }
199 }
196 return success;
200 return success;
197 }
201 }
198
202
199 /*!
203 /*!
200 Adds a list of boxsets to series. Takes ownership of the \a sets.
204 Adds a list of boxsets to series. Takes ownership of the \a sets.
201 Returns true, if all sets were appended successfully. If any of the sets is null or is already appended to series,
205 Returns true, if all sets were appended successfully. If any of the sets is null or is already appended to series,
202 nothing is appended and function returns false. If any of the sets is in list more than once, nothing is appended
206 nothing is appended and function returns false. If any of the sets is in list more than once, nothing is appended
203 and function returns false.
207 and function returns false.
204 */
208 */
205 bool QBoxPlotSeries::append(QList<QBoxSet *> sets)
209 bool QBoxPlotSeries::append(QList<QBoxSet *> sets)
206 {
210 {
207 Q_D(QBoxPlotSeries);
211 Q_D(QBoxPlotSeries);
208 bool success = d->append(sets);
212 bool success = d->append(sets);
209 if (success) {
213 if (success) {
210 emit boxsetsAdded(sets);
214 emit boxsetsAdded(sets);
211 emit countChanged();
215 emit countChanged();
212 }
216 }
213 return success;
217 return success;
214 }
218 }
215
219
216 /*!
220 /*!
217 Insert a box-and-whiskers set to the series at \a index postion. Takes ownership of the \a set. If the set is null or
221 Insert a box-and-whiskers set to the series at \a index postion. Takes ownership of the \a set. If the set is null or
218 is already in series, it won't be appended. Returns true, if inserting succeeded.
222 is already in series, it won't be appended. Returns true, if inserting succeeded.
219
223
220 */
224 */
221 bool QBoxPlotSeries::insert(int index, QBoxSet *set)
225 bool QBoxPlotSeries::insert(int index, QBoxSet *set)
222 {
226 {
223 Q_D(QBoxPlotSeries);
227 Q_D(QBoxPlotSeries);
224 bool success = d->insert(index, set);
228 bool success = d->insert(index, set);
225 if (success) {
229 if (success) {
226 QList<QBoxSet *> sets;
230 QList<QBoxSet *> sets;
227 sets.append(set);
231 sets.append(set);
228 emit boxsetsAdded(sets);
232 emit boxsetsAdded(sets);
229 emit countChanged();
233 emit countChanged();
230 }
234 }
231 return success;
235 return success;
232 }
236 }
233
237
234 /*!
238 /*!
235 Removes all boxsets from the series. Deletes removed sets.
239 Removes all boxsets from the series. Deletes removed sets.
236 */
240 */
237 void QBoxPlotSeries::clear()
241 void QBoxPlotSeries::clear()
238 {
242 {
239 Q_D(QBoxPlotSeries);
243 Q_D(QBoxPlotSeries);
240 QList<QBoxSet *> sets = boxSets();
244 QList<QBoxSet *> sets = boxSets();
241 bool success = d->remove(sets);
245 bool success = d->remove(sets);
242 if (success) {
246 if (success) {
243 emit boxsetsRemoved(sets);
247 emit boxsetsRemoved(sets);
244 emit countChanged();
248 emit countChanged();
245 foreach (QBoxSet *set, sets)
249 foreach (QBoxSet *set, sets)
246 delete set;
250 delete set;
247 }
251 }
248 }
252 }
249
253
250 /*!
254 /*!
251 Returns number of sets in series.
255 Returns number of sets in series.
252 */
256 */
253 int QBoxPlotSeries::count() const
257 int QBoxPlotSeries::count() const
254 {
258 {
255 Q_D(const QBoxPlotSeries);
259 Q_D(const QBoxPlotSeries);
256 return d->m_boxSets.count();
260 return d->m_boxSets.count();
257 }
261 }
258
262
259 /*!
263 /*!
260 Returns a list of sets in series. Keeps ownership of sets.
264 Returns a list of sets in series. Keeps ownership of sets.
261 */
265 */
262 QList<QBoxSet *> QBoxPlotSeries::boxSets() const
266 QList<QBoxSet *> QBoxPlotSeries::boxSets() const
263 {
267 {
264 Q_D(const QBoxPlotSeries);
268 Q_D(const QBoxPlotSeries);
265 return d->m_boxSets;
269 return d->m_boxSets;
266 }
270 }
267
271
268 /*
272 /*
269 Returns QAbstractSeries::SeriesTypeBoxPlot.
273 Returns QAbstractSeries::SeriesTypeBoxPlot.
270 */
274 */
271 QAbstractSeries::SeriesType QBoxPlotSeries::type() const
275 QAbstractSeries::SeriesType QBoxPlotSeries::type() const
272 {
276 {
273 return QAbstractSeries::SeriesTypeBoxPlot;
277 return QAbstractSeries::SeriesTypeBoxPlot;
274 }
278 }
275
279
276 void QBoxPlotSeries::setBoxOutlineVisible(bool visible)
280 void QBoxPlotSeries::setBoxOutlineVisible(bool visible)
277 {
281 {
278 Q_D(QBoxPlotSeries);
282 Q_D(QBoxPlotSeries);
279
283
280 if (d->m_boxOutlineVisible != visible) {
284 if (d->m_boxOutlineVisible != visible) {
281 d->m_boxOutlineVisible = visible;
285 d->m_boxOutlineVisible = visible;
282 emit d->updated();
286 emit d->updated();
283 emit boxOutlineVisibilityChanged();
287 emit boxOutlineVisibilityChanged();
284 }
288 }
285 }
289 }
286
290
287 bool QBoxPlotSeries::boxOutlineVisible()
291 bool QBoxPlotSeries::boxOutlineVisible()
288 {
292 {
289 Q_D(QBoxPlotSeries);
293 Q_D(QBoxPlotSeries);
290
294
291 return d->m_boxOutlineVisible;
295 return d->m_boxOutlineVisible;
292 }
296 }
293
297
294 void QBoxPlotSeries::setBoxWidth(qreal width)
298 void QBoxPlotSeries::setBoxWidth(qreal width)
295 {
299 {
296 Q_D(QBoxPlotSeries);
300 Q_D(QBoxPlotSeries);
297
301
298 if (width != d->m_boxWidth) {
302 if (width != d->m_boxWidth) {
299 if (width < 0.0)
303 if (width < 0.0)
300 width = 0.0;
304 width = 0.0;
301 if (width > 1.0)
305 if (width > 1.0)
302 width = 1.0;
306 width = 1.0;
303 d->m_boxWidth = width;
307 d->m_boxWidth = width;
304 emit d->updatedLayout();
308 emit d->updatedLayout();
305 emit boxWidthChanged();
309 emit boxWidthChanged();
306 }
310 }
307 }
311 }
308
312
309 qreal QBoxPlotSeries::boxWidth()
313 qreal QBoxPlotSeries::boxWidth()
310 {
314 {
311 Q_D(QBoxPlotSeries);
315 Q_D(QBoxPlotSeries);
312
316
313 return d->m_boxWidth;
317 return d->m_boxWidth;
314 }
318 }
315
319
316 void QBoxPlotSeries::setBrush(const QBrush &brush)
320 void QBoxPlotSeries::setBrush(const QBrush &brush)
317 {
321 {
318 Q_D(QBoxPlotSeries);
322 Q_D(QBoxPlotSeries);
319
323
320 if (d->m_brush != brush) {
324 if (d->m_brush != brush) {
321 d->m_brush = brush;
325 d->m_brush = brush;
322 emit d->updated();
326 emit d->updated();
323 emit brushChanged();
327 emit brushChanged();
324 }
328 }
325 }
329 }
326
330
327 QBrush QBoxPlotSeries::brush() const
331 QBrush QBoxPlotSeries::brush() const
328 {
332 {
329 Q_D(const QBoxPlotSeries);
333 Q_D(const QBoxPlotSeries);
330
334
331 return d->m_brush;
335 return d->m_brush;
332 }
336 }
333
337
334 void QBoxPlotSeries::setPen(const QPen &pen)
338 void QBoxPlotSeries::setPen(const QPen &pen)
335 {
339 {
336 Q_D(QBoxPlotSeries);
340 Q_D(QBoxPlotSeries);
337
341
338 if (d->m_pen != pen) {
342 if (d->m_pen != pen) {
339 d->m_pen = pen;
343 d->m_pen = pen;
340 emit d->updated();
344 emit d->updated();
341 emit penChanged();
345 emit penChanged();
342 }
346 }
343 }
347 }
344
348
345 QPen QBoxPlotSeries::pen() const
349 QPen QBoxPlotSeries::pen() const
346 {
350 {
347 Q_D(const QBoxPlotSeries);
351 Q_D(const QBoxPlotSeries);
348
352
349 return d->m_pen;
353 return d->m_pen;
350 }
354 }
351
355
352 ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
356 ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
353
357
354 QBoxPlotSeriesPrivate::QBoxPlotSeriesPrivate(QBoxPlotSeries *q)
358 QBoxPlotSeriesPrivate::QBoxPlotSeriesPrivate(QBoxPlotSeries *q)
355 : QAbstractSeriesPrivate(q),
359 : QAbstractSeriesPrivate(q),
356 m_pen(QChartPrivate::defaultPen()),
360 m_pen(QChartPrivate::defaultPen()),
357 m_brush(QChartPrivate::defaultBrush()),
361 m_brush(QChartPrivate::defaultBrush()),
358 m_boxOutlineVisible(true),
362 m_boxOutlineVisible(true),
359 m_boxWidth(0.5)
363 m_boxWidth(0.5)
360 {
364 {
361 }
365 }
362
366
363 QBoxPlotSeriesPrivate::~QBoxPlotSeriesPrivate()
367 QBoxPlotSeriesPrivate::~QBoxPlotSeriesPrivate()
364 {
368 {
365 disconnect(this, 0, 0, 0);
369 disconnect(this, 0, 0, 0);
366 }
370 }
367
371
368 void QBoxPlotSeriesPrivate::initializeDomain()
372 void QBoxPlotSeriesPrivate::initializeDomain()
369 {
373 {
370 qreal minX(domain()->minX());
374 qreal minX(domain()->minX());
371 qreal minY(domain()->minY());
375 qreal minY(domain()->minY());
372 qreal maxX(domain()->maxX());
376 qreal maxX(domain()->maxX());
373 qreal maxY(domain()->maxY());
377 qreal maxY(domain()->maxY());
374
378
375 qreal x = m_boxSets.count();
379 qreal x = m_boxSets.count();
376 minX = qMin(minX, qreal(-0.5));
380 minX = qMin(minX, qreal(-0.5));
377 minY = qMin(minY, min());
381 minY = qMin(minY, min());
378 maxX = qMax(maxX, x - qreal(0.5));
382 maxX = qMax(maxX, x - qreal(0.5));
379 maxY = qMax(maxY, max());
383 maxY = qMax(maxY, max());
380
384
381 domain()->setRange(minX, maxX, minY, maxY);
385 domain()->setRange(minX, maxX, minY, maxY);
382 }
386 }
383
387
384 void QBoxPlotSeriesPrivate::initializeAxes()
388 void QBoxPlotSeriesPrivate::initializeAxes()
385 {
389 {
386 foreach (QAbstractAxis* axis, m_axes) {
390 foreach (QAbstractAxis* axis, m_axes) {
387 if (axis->type() == QAbstractAxis::AxisTypeBarCategory) {
391 if (axis->type() == QAbstractAxis::AxisTypeBarCategory) {
388 if (axis->orientation() == Qt::Horizontal)
392 if (axis->orientation() == Qt::Horizontal)
389 populateCategories(qobject_cast<QBarCategoryAxis *>(axis));
393 populateCategories(qobject_cast<QBarCategoryAxis *>(axis));
390 }
394 }
391 }
395 }
392 }
396 }
393
397
394 QAbstractAxis::AxisType QBoxPlotSeriesPrivate::defaultAxisType(Qt::Orientation orientation) const
398 QAbstractAxis::AxisType QBoxPlotSeriesPrivate::defaultAxisType(Qt::Orientation orientation) const
395 {
399 {
396 if (orientation == Qt::Horizontal)
400 if (orientation == Qt::Horizontal)
397 return QAbstractAxis::AxisTypeBarCategory;
401 return QAbstractAxis::AxisTypeBarCategory;
398
402
399 return QAbstractAxis::AxisTypeValue;
403 return QAbstractAxis::AxisTypeValue;
400 }
404 }
401
405
402 QAbstractAxis* QBoxPlotSeriesPrivate::createDefaultAxis(Qt::Orientation orientation) const
406 QAbstractAxis* QBoxPlotSeriesPrivate::createDefaultAxis(Qt::Orientation orientation) const
403 {
407 {
404 if (defaultAxisType(orientation) == QAbstractAxis::AxisTypeBarCategory)
408 if (defaultAxisType(orientation) == QAbstractAxis::AxisTypeBarCategory)
405 return new QBarCategoryAxis;
409 return new QBarCategoryAxis;
406 else
410 else
407 return new QValueAxis;
411 return new QValueAxis;
408 }
412 }
409
413
410 void QBoxPlotSeriesPrivate::populateCategories(QBarCategoryAxis *axis)
414 void QBoxPlotSeriesPrivate::populateCategories(QBarCategoryAxis *axis)
411 {
415 {
412 QStringList categories;
416 QStringList categories;
413 if (axis->categories().isEmpty()) {
417 if (axis->categories().isEmpty()) {
414 for (int i(1); i < m_boxSets.count() + 1; i++) {
418 for (int i(1); i < m_boxSets.count() + 1; i++) {
415 QBoxSet *set = m_boxSets.at(i - 1);
419 QBoxSet *set = m_boxSets.at(i - 1);
416 if (set->label().isEmpty())
420 if (set->label().isEmpty())
417 categories << QString::number(i);
421 categories << QString::number(i);
418 else
422 else
419 categories << set->label();
423 categories << set->label();
420 }
424 }
421 axis->append(categories);
425 axis->append(categories);
422 }
426 }
423 }
427 }
424
428
425 void QBoxPlotSeriesPrivate::initializeGraphics(QGraphicsItem *parent)
429 void QBoxPlotSeriesPrivate::initializeGraphics(QGraphicsItem *parent)
426 {
430 {
427 Q_Q(QBoxPlotSeries);
431 Q_Q(QBoxPlotSeries);
428
432
429 BoxPlotChartItem *boxPlot = new BoxPlotChartItem(q, parent);
433 BoxPlotChartItem *boxPlot = new BoxPlotChartItem(q, parent);
430 m_item.reset(boxPlot);
434 m_item.reset(boxPlot);
431 QAbstractSeriesPrivate::initializeGraphics(parent);
435 QAbstractSeriesPrivate::initializeGraphics(parent);
432
436
433 if (m_chart) {
437 if (m_chart) {
434 connect(m_chart->d_ptr->m_dataset, SIGNAL(seriesAdded(QAbstractSeries*)), this, SLOT(handleSeriesChange(QAbstractSeries*)) );
438 connect(m_chart->d_ptr->m_dataset, SIGNAL(seriesAdded(QAbstractSeries*)), this, SLOT(handleSeriesChange(QAbstractSeries*)) );
435 connect(m_chart->d_ptr->m_dataset, SIGNAL(seriesRemoved(QAbstractSeries*)), this, SLOT(handleSeriesRemove(QAbstractSeries*)) );
439 connect(m_chart->d_ptr->m_dataset, SIGNAL(seriesRemoved(QAbstractSeries*)), this, SLOT(handleSeriesRemove(QAbstractSeries*)) );
436
440
437 QList<QAbstractSeries *> serieses = m_chart->series();
441 QList<QAbstractSeries *> serieses = m_chart->series();
438
442
439 // Tries to find this series from the Chart's list of series and deduce the index
443 // Tries to find this series from the Chart's list of series and deduce the index
440 int index = 0;
444 int index = 0;
441 foreach (QAbstractSeries *s, serieses) {
445 foreach (QAbstractSeries *s, serieses) {
442 if (s->type() == QAbstractSeries::SeriesTypeBoxPlot) {
446 if (s->type() == QAbstractSeries::SeriesTypeBoxPlot) {
443 if (q == static_cast<QBoxPlotSeries *>(s)) {
447 if (q == static_cast<QBoxPlotSeries *>(s)) {
444 boxPlot->m_seriesIndex = index;
448 boxPlot->m_seriesIndex = index;
445 m_index = index;
449 m_index = index;
446 }
450 }
447 index++;
451 index++;
448 }
452 }
449 }
453 }
450 boxPlot->m_seriesCount = index;
454 boxPlot->m_seriesCount = index;
451 }
455 }
452
456
453 // Make BoxPlotChartItem to instantiate box & whisker items
457 // Make BoxPlotChartItem to instantiate box & whisker items
454 boxPlot->handleDataStructureChanged();
458 boxPlot->handleDataStructureChanged();
455 }
459 }
456
460
457 void QBoxPlotSeriesPrivate::initializeTheme(int index, ChartTheme* theme, bool forced)
461 void QBoxPlotSeriesPrivate::initializeTheme(int index, ChartTheme* theme, bool forced)
458 {
462 {
459 Q_Q(QBoxPlotSeries);
463 Q_Q(QBoxPlotSeries);
460
464
461 const QList<QGradient> gradients = theme->seriesGradients();
465 const QList<QGradient> gradients = theme->seriesGradients();
462
466
463 if (forced || QChartPrivate::defaultBrush() == m_brush) {
467 if (forced || QChartPrivate::defaultBrush() == m_brush) {
464 QColor brushColor = ChartThemeManager::colorAt(gradients.at(index % gradients.size()), 0.5);
468 QColor brushColor = ChartThemeManager::colorAt(gradients.at(index % gradients.size()), 0.5);
465 q->setBrush(brushColor);
469 q->setBrush(brushColor);
466 }
470 }
467
471
468 if (forced || QChartPrivate::defaultPen() == m_pen) {
472 if (forced || QChartPrivate::defaultPen() == m_pen) {
469 QPen pen = theme->outlinePen();
473 QPen pen = theme->outlinePen();
470 pen.setCosmetic(true);
474 pen.setCosmetic(true);
471 q->setPen(pen);
475 q->setPen(pen);
472 }
476 }
473 }
477 }
474
478
475 void QBoxPlotSeriesPrivate::initializeAnimations(QChart::AnimationOptions options)
479 void QBoxPlotSeriesPrivate::initializeAnimations(QChart::AnimationOptions options)
476 {
480 {
477 BoxPlotChartItem *item = static_cast<BoxPlotChartItem *>(m_item.data());
481 BoxPlotChartItem *item = static_cast<BoxPlotChartItem *>(m_item.data());
478 Q_ASSERT(item);
482 Q_ASSERT(item);
479 if (item->animation())
483 if (item->animation())
480 item->animation()->stopAndDestroyLater();
484 item->animation()->stopAndDestroyLater();
481
485
482 if (options.testFlag(QChart::SeriesAnimations))
486 if (options.testFlag(QChart::SeriesAnimations))
483 m_animation = new BoxPlotAnimation(item);
487 m_animation = new BoxPlotAnimation(item);
484 else
488 else
485 m_animation = 0;
489 m_animation = 0;
486 item->setAnimation(m_animation);
490 item->setAnimation(m_animation);
487
491
488 QAbstractSeriesPrivate::initializeAnimations(options);
492 QAbstractSeriesPrivate::initializeAnimations(options);
489 }
493 }
490
494
491 QList<QLegendMarker*> QBoxPlotSeriesPrivate::createLegendMarkers(QLegend *legend)
495 QList<QLegendMarker*> QBoxPlotSeriesPrivate::createLegendMarkers(QLegend *legend)
492 {
496 {
493 Q_Q(QBoxPlotSeries);
497 Q_Q(QBoxPlotSeries);
494 QList<QLegendMarker *> list;
498 QList<QLegendMarker *> list;
495 return list << new QBoxPlotLegendMarker(q, legend);
499 return list << new QBoxPlotLegendMarker(q, legend);
496 }
500 }
497
501
498 void QBoxPlotSeriesPrivate::handleSeriesRemove(QAbstractSeries *series)
502 void QBoxPlotSeriesPrivate::handleSeriesRemove(QAbstractSeries *series)
499 {
503 {
500 Q_Q(QBoxPlotSeries);
504 Q_Q(QBoxPlotSeries);
501
505
502 QBoxPlotSeries *removedSeries = static_cast<QBoxPlotSeries *>(series);
506 QBoxPlotSeries *removedSeries = static_cast<QBoxPlotSeries *>(series);
503
507
504 if (q == removedSeries && m_animation) {
508 if (q == removedSeries && m_animation) {
505 m_animation->stopAll();
509 m_animation->stopAll();
506 QObject::disconnect(m_chart->d_ptr->m_dataset, 0, removedSeries->d_func(), 0);
510 QObject::disconnect(m_chart->d_ptr->m_dataset, 0, removedSeries->d_func(), 0);
507 }
511 }
508
512
509 // Test if series removed is me, then don't do anything
513 // Test if series removed is me, then don't do anything
510 if (q != removedSeries) {
514 if (q != removedSeries) {
511 BoxPlotChartItem *item = static_cast<BoxPlotChartItem *>(m_item.data());
515 BoxPlotChartItem *item = static_cast<BoxPlotChartItem *>(m_item.data());
512 if (item) {
516 if (item) {
513 item->m_seriesCount = item->m_seriesCount - 1;
517 item->m_seriesCount = item->m_seriesCount - 1;
514 if (removedSeries->d_func()->m_index < m_index) {
518 if (removedSeries->d_func()->m_index < m_index) {
515 m_index--;
519 m_index--;
516 item->m_seriesIndex = m_index;
520 item->m_seriesIndex = m_index;
517 }
521 }
518
522
519 item->handleDataStructureChanged();
523 item->handleDataStructureChanged();
520 }
524 }
521 }
525 }
522 }
526 }
523
527
524 void QBoxPlotSeriesPrivate::handleSeriesChange(QAbstractSeries *series)
528 void QBoxPlotSeriesPrivate::handleSeriesChange(QAbstractSeries *series)
525 {
529 {
526 Q_UNUSED(series);
530 Q_UNUSED(series);
527
531
528 Q_Q(QBoxPlotSeries);
532 Q_Q(QBoxPlotSeries);
529
533
530 BoxPlotChartItem *boxPlot = static_cast<BoxPlotChartItem *>(m_item.data());
534 BoxPlotChartItem *boxPlot = static_cast<BoxPlotChartItem *>(m_item.data());
531
535
532 if (m_chart) {
536 if (m_chart) {
533 QList<QAbstractSeries *> serieses = m_chart->series();
537 QList<QAbstractSeries *> serieses = m_chart->series();
534
538
535 // Tries to find this series from the Chart's list of series and deduce the index
539 // Tries to find this series from the Chart's list of series and deduce the index
536 int index = 0;
540 int index = 0;
537 foreach (QAbstractSeries *s, serieses) {
541 foreach (QAbstractSeries *s, serieses) {
538 if (s->type() == QAbstractSeries::SeriesTypeBoxPlot) {
542 if (s->type() == QAbstractSeries::SeriesTypeBoxPlot) {
539 if (q == static_cast<QBoxPlotSeries *>(s)) {
543 if (q == static_cast<QBoxPlotSeries *>(s)) {
540 boxPlot->m_seriesIndex = index;
544 boxPlot->m_seriesIndex = index;
541 m_index = index;
545 m_index = index;
542 }
546 }
543 index++;
547 index++;
544 }
548 }
545 }
549 }
546 boxPlot->m_seriesCount = index;
550 boxPlot->m_seriesCount = index;
547 }
551 }
548
552
549 boxPlot->handleDataStructureChanged();
553 boxPlot->handleDataStructureChanged();
550 }
554 }
551
555
552 bool QBoxPlotSeriesPrivate::append(QBoxSet *set)
556 bool QBoxPlotSeriesPrivate::append(QBoxSet *set)
553 {
557 {
554 if (m_boxSets.contains(set) || (set == 0) || set->d_ptr->m_series)
558 if (m_boxSets.contains(set) || (set == 0) || set->d_ptr->m_series)
555 return false; // Fail if set is already in list or set is null.
559 return false; // Fail if set is already in list or set is null.
556
560
557 m_boxSets.append(set);
561 m_boxSets.append(set);
558 QObject::connect(set->d_ptr.data(), SIGNAL(updatedLayout()), this, SIGNAL(updatedLayout()));
562 QObject::connect(set->d_ptr.data(), SIGNAL(updatedLayout()), this, SIGNAL(updatedLayout()));
559 QObject::connect(set->d_ptr.data(), SIGNAL(updatedBox()), this, SIGNAL(updatedBoxes()));
563 QObject::connect(set->d_ptr.data(), SIGNAL(updatedBox()), this, SIGNAL(updatedBoxes()));
560 QObject::connect(set->d_ptr.data(), SIGNAL(restructuredBox()), this, SIGNAL(restructuredBoxes()));
564 QObject::connect(set->d_ptr.data(), SIGNAL(restructuredBox()), this, SIGNAL(restructuredBoxes()));
561 set->d_ptr->m_series = this;
565 set->d_ptr->m_series = this;
562
566
563 emit restructuredBoxes(); // this notifies boxplotchartitem
567 emit restructuredBoxes(); // this notifies boxplotchartitem
564 return true;
568 return true;
565 }
569 }
566
570
567 bool QBoxPlotSeriesPrivate::remove(QBoxSet *set)
571 bool QBoxPlotSeriesPrivate::remove(QBoxSet *set)
568 {
572 {
569 if (!m_boxSets.contains(set))
573 if (!m_boxSets.contains(set))
570 return false; // Fail if set is not in list
574 return false; // Fail if set is not in list
571
575
572 set->d_ptr->m_series = 0;
576 set->d_ptr->m_series = 0;
573 m_boxSets.removeOne(set);
577 m_boxSets.removeOne(set);
574 QObject::disconnect(set->d_ptr.data(), SIGNAL(updatedLayout()), this, SIGNAL(updatedLayout()));
578 QObject::disconnect(set->d_ptr.data(), SIGNAL(updatedLayout()), this, SIGNAL(updatedLayout()));
575 QObject::disconnect(set->d_ptr.data(), SIGNAL(updatedBox()), this, SIGNAL(updatedBoxes()));
579 QObject::disconnect(set->d_ptr.data(), SIGNAL(updatedBox()), this, SIGNAL(updatedBoxes()));
576 QObject::disconnect(set->d_ptr.data(), SIGNAL(restructuredBox()), this, SIGNAL(restructuredBoxes()));
580 QObject::disconnect(set->d_ptr.data(), SIGNAL(restructuredBox()), this, SIGNAL(restructuredBoxes()));
577
581
578 emit restructuredBoxes(); // this notifies boxplotchartitem
582 emit restructuredBoxes(); // this notifies boxplotchartitem
579 return true;
583 return true;
580 }
584 }
581
585
582 bool QBoxPlotSeriesPrivate::append(QList<QBoxSet *> sets)
586 bool QBoxPlotSeriesPrivate::append(QList<QBoxSet *> sets)
583 {
587 {
584 foreach (QBoxSet *set, sets) {
588 foreach (QBoxSet *set, sets) {
585 if ((set == 0) || m_boxSets.contains(set) || set->d_ptr->m_series)
589 if ((set == 0) || m_boxSets.contains(set) || set->d_ptr->m_series)
586 return false; // Fail if any of the sets is null or is already appended.
590 return false; // Fail if any of the sets is null or is already appended.
587 if (sets.count(set) != 1)
591 if (sets.count(set) != 1)
588 return false; // Also fail if same set is more than once in given list.
592 return false; // Also fail if same set is more than once in given list.
589 }
593 }
590
594
591 foreach (QBoxSet *set, sets) {
595 foreach (QBoxSet *set, sets) {
592 m_boxSets.append(set);
596 m_boxSets.append(set);
593 QObject::connect(set->d_ptr.data(), SIGNAL(updatedLayout()), this, SIGNAL(updatedLayout()));
597 QObject::connect(set->d_ptr.data(), SIGNAL(updatedLayout()), this, SIGNAL(updatedLayout()));
594 QObject::connect(set->d_ptr.data(), SIGNAL(updatedBox()), this, SIGNAL(updatedBoxes()));
598 QObject::connect(set->d_ptr.data(), SIGNAL(updatedBox()), this, SIGNAL(updatedBoxes()));
595 QObject::connect(set->d_ptr.data(), SIGNAL(restructuredBox()), this, SIGNAL(restructuredBoxes()));
599 QObject::connect(set->d_ptr.data(), SIGNAL(restructuredBox()), this, SIGNAL(restructuredBoxes()));
596 set->d_ptr->m_series = this;
600 set->d_ptr->m_series = this;
597 }
601 }
598
602
599 emit restructuredBoxes(); // this notifies boxplotchartitem
603 emit restructuredBoxes(); // this notifies boxplotchartitem
600 return true;
604 return true;
601 }
605 }
602
606
603 bool QBoxPlotSeriesPrivate::remove(QList<QBoxSet *> sets)
607 bool QBoxPlotSeriesPrivate::remove(QList<QBoxSet *> sets)
604 {
608 {
605 if (sets.count() == 0)
609 if (sets.count() == 0)
606 return false;
610 return false;
607
611
608 foreach (QBoxSet *set, sets) {
612 foreach (QBoxSet *set, sets) {
609 if ((set == 0) || (!m_boxSets.contains(set)))
613 if ((set == 0) || (!m_boxSets.contains(set)))
610 return false; // Fail if any of the sets is null or is not in series
614 return false; // Fail if any of the sets is null or is not in series
611 if (sets.count(set) != 1)
615 if (sets.count(set) != 1)
612 return false; // Also fail if same set is more than once in given list.
616 return false; // Also fail if same set is more than once in given list.
613 }
617 }
614
618
615 foreach (QBoxSet *set, sets) {
619 foreach (QBoxSet *set, sets) {
616 set->d_ptr->m_series = 0;
620 set->d_ptr->m_series = 0;
617 m_boxSets.removeOne(set);
621 m_boxSets.removeOne(set);
618 QObject::disconnect(set->d_ptr.data(), SIGNAL(updatedLayout()), this, SIGNAL(updatedLayout()));
622 QObject::disconnect(set->d_ptr.data(), SIGNAL(updatedLayout()), this, SIGNAL(updatedLayout()));
619 QObject::disconnect(set->d_ptr.data(), SIGNAL(updatedBox()), this, SIGNAL(updatedBoxes()));
623 QObject::disconnect(set->d_ptr.data(), SIGNAL(updatedBox()), this, SIGNAL(updatedBoxes()));
620 QObject::disconnect(set->d_ptr.data(), SIGNAL(restructuredBox()), this, SIGNAL(restructuredBoxes()));
624 QObject::disconnect(set->d_ptr.data(), SIGNAL(restructuredBox()), this, SIGNAL(restructuredBoxes()));
621 }
625 }
622
626
623 emit restructuredBoxes(); // this notifies boxplotchartitem
627 emit restructuredBoxes(); // this notifies boxplotchartitem
624
628
625 return true;
629 return true;
626 }
630 }
627
631
628 bool QBoxPlotSeriesPrivate::insert(int index, QBoxSet *set)
632 bool QBoxPlotSeriesPrivate::insert(int index, QBoxSet *set)
629 {
633 {
630 if ((m_boxSets.contains(set)) || (set == 0) || set->d_ptr->m_series)
634 if ((m_boxSets.contains(set)) || (set == 0) || set->d_ptr->m_series)
631 return false; // Fail if set is already in list or set is null.
635 return false; // Fail if set is already in list or set is null.
632
636
633 m_boxSets.insert(index, set);
637 m_boxSets.insert(index, set);
634 set->d_ptr->m_series = this;
638 set->d_ptr->m_series = this;
635 QObject::connect(set->d_ptr.data(), SIGNAL(updatedLayout()), this, SIGNAL(updatedLayout()));
639 QObject::connect(set->d_ptr.data(), SIGNAL(updatedLayout()), this, SIGNAL(updatedLayout()));
636 QObject::connect(set->d_ptr.data(), SIGNAL(updatedBox()), this, SIGNAL(updatedBoxes()));
640 QObject::connect(set->d_ptr.data(), SIGNAL(updatedBox()), this, SIGNAL(updatedBoxes()));
637 QObject::connect(set->d_ptr.data(), SIGNAL(restructuredBox()), this, SIGNAL(restructuredBoxes()));
641 QObject::connect(set->d_ptr.data(), SIGNAL(restructuredBox()), this, SIGNAL(restructuredBoxes()));
638
642
639 emit restructuredBoxes(); // this notifies boxplotchartitem
643 emit restructuredBoxes(); // this notifies boxplotchartitem
640 return true;
644 return true;
641 }
645 }
642
646
643 QBoxSet *QBoxPlotSeriesPrivate::boxSetAt(int index)
647 QBoxSet *QBoxPlotSeriesPrivate::boxSetAt(int index)
644 {
648 {
645 return m_boxSets.at(index);
649 return m_boxSets.at(index);
646 }
650 }
647
651
648 qreal QBoxPlotSeriesPrivate::min()
652 qreal QBoxPlotSeriesPrivate::min()
649 {
653 {
650 if (m_boxSets.count() <= 0)
654 if (m_boxSets.count() <= 0)
651 return 0;
655 return 0;
652
656
653 qreal min = m_boxSets.at(0)->at(0);
657 qreal min = m_boxSets.at(0)->at(0);
654
658
655 foreach (QBoxSet *set, m_boxSets) {
659 foreach (QBoxSet *set, m_boxSets) {
656 for (int i = 0; i < 5; i++) {
660 for (int i = 0; i < 5; i++) {
657 if (set->at(i) < min)
661 if (set->at(i) < min)
658 min = set->at(i);
662 min = set->at(i);
659 }
663 }
660 }
664 }
661
665
662 return min;
666 return min;
663 }
667 }
664
668
665 qreal QBoxPlotSeriesPrivate::max()
669 qreal QBoxPlotSeriesPrivate::max()
666 {
670 {
667 if (m_boxSets.count() <= 0)
671 if (m_boxSets.count() <= 0)
668 return 0;
672 return 0;
669
673
670 qreal max = m_boxSets.at(0)->at(0);
674 qreal max = m_boxSets.at(0)->at(0);
671
675
672 foreach (QBoxSet *set, m_boxSets) {
676 foreach (QBoxSet *set, m_boxSets) {
673 for (int i = 0; i < 5; i++) {
677 for (int i = 0; i < 5; i++) {
674 if (set->at(i) > max)
678 if (set->at(i) > max)
675 max = set->at(i);
679 max = set->at(i);
676 }
680 }
677 }
681 }
678
682
679 return max;
683 return max;
680 }
684 }
681
685
682 #include "moc_qboxplotseries.cpp"
686 #include "moc_qboxplotseries.cpp"
683 #include "moc_qboxplotseries_p.cpp"
687 #include "moc_qboxplotseries_p.cpp"
684
688
685 QTCOMMERCIALCHART_END_NAMESPACE
689 QTCOMMERCIALCHART_END_NAMESPACE
686
690
@@ -1,84 +1,85
1 /****************************************************************************
1 /****************************************************************************
2 **
2 **
3 ** Copyright (C) 2013 Digia Plc
3 ** Copyright (C) 2013 Digia Plc
4 ** All rights reserved.
4 ** All rights reserved.
5 ** For any questions to Digia, please use contact form at http://qt.digia.com
5 ** For any questions to Digia, please use contact form at http://qt.digia.com
6 **
6 **
7 ** This file is part of the Qt Enterprise Charts Add-on.
7 ** This file is part of the Qt Enterprise Charts Add-on.
8 **
8 **
9 ** $QT_BEGIN_LICENSE$
9 ** $QT_BEGIN_LICENSE$
10 ** Licensees holding valid Qt Enterprise licenses may use this file in
10 ** Licensees holding valid Qt Enterprise licenses may use this file in
11 ** accordance with the Qt Enterprise License Agreement provided with the
11 ** accordance with the Qt Enterprise License Agreement provided with the
12 ** Software or, alternatively, in accordance with the terms contained in
12 ** Software or, alternatively, in accordance with the terms contained in
13 ** a written agreement between you and Digia.
13 ** a written agreement between you and Digia.
14 **
14 **
15 ** If you have questions regarding the use of this file, please use
15 ** If you have questions regarding the use of this file, please use
16 ** contact form at http://qt.digia.com
16 ** contact form at http://qt.digia.com
17 ** $QT_END_LICENSE$
17 ** $QT_END_LICENSE$
18 **
18 **
19 ****************************************************************************/
19 ****************************************************************************/
20
20
21 #ifndef QBOXPLOTSERIES_H
21 #ifndef QBOXPLOTSERIES_H
22 #define QBOXPLOTSERIES_H
22 #define QBOXPLOTSERIES_H
23
23
24 #include <qchartglobal.h>
24 #include <qchartglobal.h>
25 #include <qboxset.h>
25 #include <qboxset.h>
26 #include <qabstractseries.h>
26 #include <qabstractseries.h>
27
27
28 QTCOMMERCIALCHART_BEGIN_NAMESPACE
28 QTCOMMERCIALCHART_BEGIN_NAMESPACE
29
29
30 class QBoxPlotSeriesPrivate;
30 class QBoxPlotSeriesPrivate;
31
31
32 class QTCOMMERCIALCHART_EXPORT QBoxPlotSeries : public QAbstractSeries
32 class QTCOMMERCIALCHART_EXPORT QBoxPlotSeries : public QAbstractSeries
33 {
33 {
34 Q_OBJECT
34 Q_OBJECT
35 Q_PROPERTY(bool boxOutlineVisible READ boxOutlineVisible WRITE setBoxOutlineVisible NOTIFY boxOutlineVisibilityChanged)
35 Q_PROPERTY(bool boxOutlineVisible READ boxOutlineVisible WRITE setBoxOutlineVisible NOTIFY boxOutlineVisibilityChanged)
36 Q_PROPERTY(qreal boxWidth READ boxWidth WRITE setBoxWidth NOTIFY boxWidthChanged)
36 Q_PROPERTY(qreal boxWidth READ boxWidth WRITE setBoxWidth NOTIFY boxWidthChanged)
37 Q_PROPERTY(QPen pen READ pen WRITE setPen NOTIFY penChanged)
37 Q_PROPERTY(QPen pen READ pen WRITE setPen NOTIFY penChanged)
38 Q_PROPERTY(QBrush brush READ brush WRITE setBrush NOTIFY brushChanged)
38 Q_PROPERTY(QBrush brush READ brush WRITE setBrush NOTIFY brushChanged)
39 Q_PROPERTY(int count READ count NOTIFY countChanged REVISION 1)
39 public:
40 public:
40 explicit QBoxPlotSeries(QObject *parent = 0);
41 explicit QBoxPlotSeries(QObject *parent = 0);
41 ~QBoxPlotSeries();
42 ~QBoxPlotSeries();
42
43
43 bool append(QBoxSet *box);
44 bool append(QBoxSet *box);
44 bool remove(QBoxSet *box);
45 bool remove(QBoxSet *box);
45 bool take(QBoxSet *box);
46 bool take(QBoxSet *box);
46 bool append(QList<QBoxSet *> boxes);
47 bool append(QList<QBoxSet *> boxes);
47 bool insert(int index, QBoxSet *box);
48 bool insert(int index, QBoxSet *box);
48 int count() const;
49 int count() const;
49 QList<QBoxSet *> boxSets() const;
50 QList<QBoxSet *> boxSets() const;
50 void clear();
51 void clear();
51
52
52 QAbstractSeries::SeriesType type() const;
53 QAbstractSeries::SeriesType type() const;
53
54
54 void setBoxOutlineVisible(bool visible);
55 void setBoxOutlineVisible(bool visible);
55 bool boxOutlineVisible();
56 bool boxOutlineVisible();
56 void setBoxWidth(qreal width);
57 void setBoxWidth(qreal width);
57 qreal boxWidth();
58 qreal boxWidth();
58 void setBrush(const QBrush &brush);
59 void setBrush(const QBrush &brush);
59 QBrush brush() const;
60 QBrush brush() const;
60 void setPen(const QPen &pen);
61 void setPen(const QPen &pen);
61 QPen pen() const;
62 QPen pen() const;
62
63
63 Q_SIGNALS:
64 Q_SIGNALS:
64 void clicked(QBoxSet *boxset);
65 void clicked(QBoxSet *boxset);
65 void hovered(bool status, QBoxSet *boxset);
66 void hovered(bool status, QBoxSet *boxset);
66 void countChanged();
67 void countChanged();
67 void penChanged();
68 void penChanged();
68 void brushChanged();
69 void brushChanged();
69 void boxOutlineVisibilityChanged();
70 void boxOutlineVisibilityChanged();
70 void boxWidthChanged();
71 void boxWidthChanged();
71
72
72 void boxsetsAdded(QList<QBoxSet *> sets);
73 void boxsetsAdded(QList<QBoxSet *> sets);
73 void boxsetsRemoved(QList<QBoxSet *> sets);
74 void boxsetsRemoved(QList<QBoxSet *> sets);
74
75
75 private:
76 private:
76 Q_DECLARE_PRIVATE(QBoxPlotSeries)
77 Q_DECLARE_PRIVATE(QBoxPlotSeries)
77 Q_DISABLE_COPY(QBoxPlotSeries)
78 Q_DISABLE_COPY(QBoxPlotSeries)
78 friend class BoxPlotChartItem;
79 friend class BoxPlotChartItem;
79 friend class QBoxPlotLegendMarkerPrivate;
80 friend class QBoxPlotLegendMarkerPrivate;
80 };
81 };
81
82
82 QTCOMMERCIALCHART_END_NAMESPACE
83 QTCOMMERCIALCHART_END_NAMESPACE
83
84
84 #endif // QBOXPLOTSERIES_H
85 #endif // QBOXPLOTSERIES_H
@@ -1,98 +1,100
1 /****************************************************************************
1 /****************************************************************************
2 **
2 **
3 ** Copyright (C) 2013 Digia Plc
3 ** Copyright (C) 2013 Digia Plc
4 ** All rights reserved.
4 ** All rights reserved.
5 ** For any questions to Digia, please use contact form at http://qt.digia.com
5 ** For any questions to Digia, please use contact form at http://qt.digia.com
6 **
6 **
7 ** This file is part of the Qt Enterprise Charts Add-on.
7 ** This file is part of the Qt Enterprise Charts Add-on.
8 **
8 **
9 ** $QT_BEGIN_LICENSE$
9 ** $QT_BEGIN_LICENSE$
10 ** Licensees holding valid Qt Enterprise licenses may use this file in
10 ** Licensees holding valid Qt Enterprise licenses may use this file in
11 ** accordance with the Qt Enterprise License Agreement provided with the
11 ** accordance with the Qt Enterprise License Agreement provided with the
12 ** Software or, alternatively, in accordance with the terms contained in
12 ** Software or, alternatively, in accordance with the terms contained in
13 ** a written agreement between you and Digia.
13 ** a written agreement between you and Digia.
14 **
14 **
15 ** If you have questions regarding the use of this file, please use
15 ** If you have questions regarding the use of this file, please use
16 ** contact form at http://qt.digia.com
16 ** contact form at http://qt.digia.com
17 ** $QT_END_LICENSE$
17 ** $QT_END_LICENSE$
18 **
18 **
19 ****************************************************************************/
19 ****************************************************************************/
20
20
21 import QtQuick 2.0
21 import QtQuick 2.0
22 import QtTest 1.0
22 import QtTest 1.0
23 import QtCommercial.Chart 1.4
23 import QtCommercial.Chart 1.4
24
24
25 Rectangle {
25 Rectangle {
26 width: 400
26 width: 400
27 height: 300
27 height: 300
28
28
29 TestCase {
29 TestCase {
30 id: tc1
30 id: tc1
31 name: "tst_qml-qtquicktest BoxPlotSeries"
31 name: "tst_qml-qtquicktest BoxPlotSeries"
32 when: windowShown
32 when: windowShown
33
33
34 function test_properties() {
34 function test_properties() {
35 compare(boxPlotSeries.boxWidth, 0.5);
35 compare(boxPlotSeries.boxWidth, 0.5);
36 compare(boxPlotSeries.brushFilename, "");
36 compare(boxPlotSeries.brushFilename, "");
37 }
37 }
38
38
39 function test_setproperties() {
39 function test_setproperties() {
40 var set = boxPlotSeries.append("boxplot", [1, 2, 5, 6, 8]);
40 var set = boxPlotSeries.append("boxplot", [1, 2, 5, 6, 8]);
41 compare(set.label, "boxplot");
41 compare(set.label, "boxplot");
42 compare(set.count, 5);
42 compare(set.count, 5);
43 compare(set.brushFilename, "");
43 compare(set.brushFilename, "");
44 }
44 }
45
45
46 function test_append() {
46 function test_append() {
47 boxPlotSeries.clear();
47 addedSpy.clear();
48 addedSpy.clear();
48 countChangedSpy.clear();
49 countChangedSpy.clear();
49 var count = 50;
50 var count = 50;
50 for (var i = 0; i < count; i++)
51 for (var i = 0; i < count; i++)
51 boxPlotSeries.append("boxplot" + i, Math.random());
52 boxPlotSeries.append("boxplot" + i, Math.random());
52 compare(addedSpy.count, count);
53 compare(addedSpy.count, count);
53 compare(countChangedSpy.count, count);
54 compare(countChangedSpy.count, count);
54 console.log("Check the series count once QTRD-2504 is implemented");
55 compare(boxPlotSeries.count, count)
55 boxPlotSeries.clear();
56 boxPlotSeries.clear();
56 }
57 }
57
58
58 function test_remove() {
59 function test_remove() {
60 boxPlotSeries.clear();
59 removedSpy.clear();
61 removedSpy.clear();
60 countChangedSpy.clear();
62 countChangedSpy.clear();
61 var count = 50;
63 var count = 50;
62 for (var i = 0; i < count; i++)
64 for (var i = 0; i < count; i++)
63 boxPlotSeries.append("boxplot" + i, Math.random());
65 boxPlotSeries.append("boxplot" + i, Math.random());
64 for (var j = 0; j < count; j++)
66 for (var j = 0; j < count; j++)
65 boxPlotSeries.remove(boxPlotSeries.at(0));
67 boxPlotSeries.remove(boxPlotSeries.at(0));
66 compare(removedSpy.count, count);
68 compare(removedSpy.count, count);
67 compare(countChangedSpy.count, 2 * count);
69 compare(countChangedSpy.count, 2 * count);
68 console.log("Check the series count once QTRD-2504 is implemented");
70 compare(boxPlotSeries.count, 0)
69 }
71 }
70 }
72 }
71
73
72 ChartView {
74 ChartView {
73 id: chartView
75 id: chartView
74 anchors.fill: parent
76 anchors.fill: parent
75
77
76 BoxPlotSeries {
78 BoxPlotSeries {
77 id: boxPlotSeries
79 id: boxPlotSeries
78 name: "boxplot"
80 name: "boxplot"
79 BoxSet { label: "Jan"; values: [3, 4, 5.1, 6.2, 8.5] }
81 BoxSet { label: "Jan"; values: [3, 4, 5.1, 6.2, 8.5] }
80
82
81 SignalSpy {
83 SignalSpy {
82 id: addedSpy
84 id: addedSpy
83 target: boxPlotSeries
85 target: boxPlotSeries
84 signalName: "boxsetsAdded"
86 signalName: "boxsetsAdded"
85 }
87 }
86 SignalSpy {
88 SignalSpy {
87 id: removedSpy
89 id: removedSpy
88 target: boxPlotSeries
90 target: boxPlotSeries
89 signalName: "boxsetsRemoved"
91 signalName: "boxsetsRemoved"
90 }
92 }
91 SignalSpy {
93 SignalSpy {
92 id: countChangedSpy
94 id: countChangedSpy
93 target: boxPlotSeries
95 target: boxPlotSeries
94 signalName: "countChanged"
96 signalName: "countChanged"
95 }
97 }
96 }
98 }
97 }
99 }
98 }
100 }
@@ -1,96 +1,94
1 /****************************************************************************
1 /****************************************************************************
2 **
2 **
3 ** Copyright (C) 2013 Digia Plc
3 ** Copyright (C) 2013 Digia Plc
4 ** All rights reserved.
4 ** All rights reserved.
5 ** For any questions to Digia, please use contact form at http://qt.digia.com
5 ** For any questions to Digia, please use contact form at http://qt.digia.com
6 **
6 **
7 ** This file is part of the Qt Enterprise Charts Add-on.
7 ** This file is part of the Qt Enterprise Charts Add-on.
8 **
8 **
9 ** $QT_BEGIN_LICENSE$
9 ** $QT_BEGIN_LICENSE$
10 ** Licensees holding valid Qt Enterprise licenses may use this file in
10 ** Licensees holding valid Qt Enterprise licenses may use this file in
11 ** accordance with the Qt Enterprise License Agreement provided with the
11 ** accordance with the Qt Enterprise License Agreement provided with the
12 ** Software or, alternatively, in accordance with the terms contained in
12 ** Software or, alternatively, in accordance with the terms contained in
13 ** a written agreement between you and Digia.
13 ** a written agreement between you and Digia.
14 **
14 **
15 ** If you have questions regarding the use of this file, please use
15 ** If you have questions regarding the use of this file, please use
16 ** contact form at http://qt.digia.com
16 ** contact form at http://qt.digia.com
17 ** $QT_END_LICENSE$
17 ** $QT_END_LICENSE$
18 **
18 **
19 ****************************************************************************/
19 ****************************************************************************/
20
20
21 import QtQuick 2.0
21 import QtQuick 2.0
22 import QtTest 1.0
22 import QtTest 1.0
23 import QtCommercial.Chart 1.3
23 import QtCommercial.Chart 1.3
24
24
25 Rectangle {
25 Rectangle {
26 width: 400
26 width: 400
27 height: 300
27 height: 300
28
28
29 TestCase {
29 TestCase {
30 id: tc1
30 id: tc1
31 name: "tst_qml-qtquicktest BoxPlotSeries 1.3"
31 name: "tst_qml-qtquicktest BoxPlotSeries 1.3"
32 when: windowShown
32 when: windowShown
33
33
34 function test_properties() {
34 function test_properties() {
35 compare(boxPlotSeries.boxWidth, 0.5);
35 compare(boxPlotSeries.boxWidth, 0.5);
36 }
36 }
37
37
38 function test_setproperties() {
38 function test_setproperties() {
39 var set = boxPlotSeries.append("boxplot", [1, 2, 5, 6, 8]);
39 var set = boxPlotSeries.append("boxplot", [1, 2, 5, 6, 8]);
40 compare(set.label, "boxplot");
40 compare(set.label, "boxplot");
41 compare(set.count, 5);
41 compare(set.count, 5);
42 }
42 }
43
43
44 function test_append() {
44 function test_append() {
45 addedSpy.clear();
45 addedSpy.clear();
46 countChangedSpy.clear();
46 countChangedSpy.clear();
47 var count = 50;
47 var count = 50;
48 for (var i = 0; i < count; i++)
48 for (var i = 0; i < count; i++)
49 boxPlotSeries.append("boxplot" + i, Math.random());
49 boxPlotSeries.append("boxplot" + i, Math.random());
50 compare(addedSpy.count, count);
50 compare(addedSpy.count, count);
51 compare(countChangedSpy.count, count);
51 compare(countChangedSpy.count, count);
52 console.log("Check the series count once QTRD-2504 is implemented");
53 boxPlotSeries.clear();
52 boxPlotSeries.clear();
54 }
53 }
55
54
56 function test_remove() {
55 function test_remove() {
57 removedSpy.clear();
56 removedSpy.clear();
58 countChangedSpy.clear();
57 countChangedSpy.clear();
59 var count = 50;
58 var count = 50;
60 for (var i = 0; i < count; i++)
59 for (var i = 0; i < count; i++)
61 boxPlotSeries.append("boxplot" + i, Math.random());
60 boxPlotSeries.append("boxplot" + i, Math.random());
62 for (var j = 0; j < count; j++)
61 for (var j = 0; j < count; j++)
63 boxPlotSeries.remove(boxPlotSeries.at(0));
62 boxPlotSeries.remove(boxPlotSeries.at(0));
64 compare(removedSpy.count, count);
63 compare(removedSpy.count, count);
65 compare(countChangedSpy.count, 2 * count);
64 compare(countChangedSpy.count, 2 * count);
66 console.log("Check the series count once QTRD-2504 is implemented");
67 }
65 }
68 }
66 }
69
67
70 ChartView {
68 ChartView {
71 id: chartView
69 id: chartView
72 anchors.fill: parent
70 anchors.fill: parent
73
71
74 BoxPlotSeries {
72 BoxPlotSeries {
75 id: boxPlotSeries
73 id: boxPlotSeries
76 name: "boxplot"
74 name: "boxplot"
77 BoxSet { label: "Jan"; values: [3, 4, 5.1, 6.2, 8.5] }
75 BoxSet { label: "Jan"; values: [3, 4, 5.1, 6.2, 8.5] }
78
76
79 SignalSpy {
77 SignalSpy {
80 id: addedSpy
78 id: addedSpy
81 target: boxPlotSeries
79 target: boxPlotSeries
82 signalName: "boxsetsAdded"
80 signalName: "boxsetsAdded"
83 }
81 }
84 SignalSpy {
82 SignalSpy {
85 id: removedSpy
83 id: removedSpy
86 target: boxPlotSeries
84 target: boxPlotSeries
87 signalName: "boxsetsRemoved"
85 signalName: "boxsetsRemoved"
88 }
86 }
89 SignalSpy {
87 SignalSpy {
90 id: countChangedSpy
88 id: countChangedSpy
91 target: boxPlotSeries
89 target: boxPlotSeries
92 signalName: "countChanged"
90 signalName: "countChanged"
93 }
91 }
94 }
92 }
95 }
93 }
96 }
94 }
General Comments 0
You need to be logged in to leave comments. Login now