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