##// END OF EJS Templates
Added zooming functions to ChartView...
Titta Heikkala -
r2788:67af712ca4a0
parent child
Show More
@@ -0,0 +1,158
1 /****************************************************************************
2 **
3 ** Copyright (C) 2015 The Qt Company Ltd
4 ** All rights reserved.
5 ** For any questions to The Qt Company, please use contact form at http://qt.io
6 **
7 ** This file is part of the Qt Charts module.
8 **
9 ** Licensees holding valid commercial license for Qt may use this file in
10 ** accordance with the Qt License Agreement provided with the Software
11 ** or, alternatively, in accordance with the terms contained in a written
12 ** agreement between you and The Qt Company.
13 **
14 ** If you have questions regarding the use of this file, please use
15 ** contact form at http://qt.io
16 **
17 ****************************************************************************/
18
19 import QtQuick 2.0
20 import QtTest 1.0
21 import QtCharts 2.0
22
23 Rectangle {
24 width: 400
25 height: 300
26
27 TestCase {
28 id: tc1
29 name: "tst_qml-qtquicktest ChartView Functions"
30 when: windowShown
31
32 function test_chartViewSeriesAndAxes() {
33 // Create XY series
34 var line = chartView.createSeries(ChartView.SeriesTypeLine, "line");
35 verify(line != null && line != undefined);
36 var spline = chartView.createSeries(ChartView.SeriesTypeSpline, "spline");
37 verify(spline != null && spline != undefined);
38 var scatter = chartView.createSeries(ChartView.SeriesTypeScatter, "scatter");
39 verify(scatter != null && scatter != undefined);
40
41 // Create a series with specific axes
42 var line2 = chartView.createSeries(ChartView.SeriesTypeLine, "line2", chartView.axisX(line), chartView.axisY(line));
43
44 // Check that all the XY series use the same axes
45 verify(chartView.axisX(line) != null);
46 verify(chartView.axisY(line) != null);
47 compare(chartView.axisX(line), chartView.axisX(line2));
48 compare(chartView.axisY(line), chartView.axisY(line2));
49 compare(chartView.axisX(line), chartView.axisX(spline));
50 compare(chartView.axisY(line), chartView.axisY(spline));
51 compare(chartView.axisX(line), chartView.axisX(scatter));
52 compare(chartView.axisY(line), chartView.axisY(scatter));
53
54 var bar = chartView.createSeries(ChartView.SeriesTypeBar, "bar");
55 verify(bar != null && bar != undefined);
56 var stackedbar = chartView.createSeries(ChartView.SeriesTypeStackedBar, "stackedbar");
57 verify(stackedbar != null && stackedbar != undefined);
58 var percentbar = chartView.createSeries(ChartView.SeriesTypePercentBar, "percentbar");
59 verify(percentbar != null && percentbar != undefined);
60 var horizontalbar = chartView.createSeries(ChartView.SeriesTypeHorizontalBar, "horizontalbar");
61 verify(horizontalbar != null && horizontalbar != undefined);
62 var horizontalstackedbar = chartView.createSeries(ChartView.SeriesTypeHorizontalStackedBar, "horizontalstackedbar");
63 verify(horizontalstackedbar != null && horizontalstackedbar != undefined);
64 var horizontalpercentbar = chartView.createSeries(ChartView.SeriesTypeHorizontalPercentBar, "horizontalpercentbar");
65 verify(horizontalpercentbar != null && horizontalpercentbar != undefined);
66 var area = chartView.createSeries(ChartView.SeriesTypeArea, "area");
67 verify(area != null && area != undefined);
68
69 // Remove all series
70 chartView.removeAllSeries();
71 compare(chartView.count, 0);
72 }
73
74 function test_chartViewRange() {
75 // Set initial values
76 chartView.createSeries(ChartView.SeriesTypeLine, "line");
77 verify(chartView.axisX() != null);
78 verify(chartView.axisY() != null);
79 chartView.axisX().min = 1.0;
80 chartView.axisX().max = 2.0;
81 chartView.axisY().min = 1.0;
82 chartView.axisY().max = 2.0;
83
84 var xMax = chartView.axisX().max;
85 var xMin = chartView.axisX().min;
86 var yMax = chartView.axisY().max;
87 var yMin = chartView.axisY().min;
88
89 // zoom x 2.5
90 chartView.zoom(1.5);
91 verify(chartView.axisX().max < xMax);
92 verify(chartView.axisX().min > xMin);
93 verify(chartView.axisY().max < yMax);
94 verify(chartView.axisY().min > yMin);
95 xMax = chartView.axisX().max;
96 xMin = chartView.axisX().min;
97 yMax = chartView.axisY().max;
98 yMin = chartView.axisY().min;
99
100 // zoom x 0.5
101 chartView.zoom(0.5);
102 verify(chartView.axisX().max > xMax);
103 verify(chartView.axisX().min < xMin);
104 verify(chartView.axisY().max > yMax);
105 verify(chartView.axisY().min < yMin);
106 xMax = chartView.axisX().max;
107 xMin = chartView.axisX().min;
108 yMax = chartView.axisY().max;
109 yMin = chartView.axisY().min;
110
111 // Scroll up
112 chartView.scrollUp(10);
113 compare(chartView.axisX().max, xMax);
114 compare(chartView.axisX().min, xMin);
115 verify(chartView.axisY().max > yMax);
116 verify(chartView.axisY().min > yMin);
117 xMax = chartView.axisX().max;
118 xMin = chartView.axisX().min;
119 yMax = chartView.axisY().max;
120 yMin = chartView.axisY().min;
121
122 // Scroll down
123 chartView.scrollDown(10);
124 compare(chartView.axisX().max, xMax);
125 compare(chartView.axisX().min, xMin);
126 verify(chartView.axisY().max < yMax);
127 verify(chartView.axisY().min < yMin);
128 xMax = chartView.axisX().max;
129 xMin = chartView.axisX().min;
130 yMax = chartView.axisY().max;
131 yMin = chartView.axisY().min;
132
133 // Scroll left
134 chartView.scrollLeft(10);
135 verify(chartView.axisX().max < xMax);
136 verify(chartView.axisX().min < xMin);
137 compare(chartView.axisY().max, yMax);
138 compare(chartView.axisY().min, yMin);
139 xMax = chartView.axisX().max;
140 xMin = chartView.axisX().min;
141 yMax = chartView.axisY().max;
142 yMin = chartView.axisY().min;
143
144 // Scroll right
145 chartView.scrollRight(10);
146 verify(chartView.axisX().max > xMax);
147 verify(chartView.axisX().min > xMin);
148 compare(chartView.axisY().max, yMax);
149 compare(chartView.axisY().min, yMin);
150 }
151 }
152
153 ChartView {
154 id: chartView
155 anchors.fill: parent
156 title: "Chart"
157 }
158 }
@@ -1,316 +1,317
1 /****************************************************************************
1 /****************************************************************************
2 **
2 **
3 ** Copyright (C) 2015 The Qt Company Ltd
3 ** Copyright (C) 2015 The Qt Company Ltd
4 ** All rights reserved.
4 ** All rights reserved.
5 ** For any questions to The Qt Company, please use contact form at http://qt.io
5 ** For any questions to The Qt Company, please use contact form at http://qt.io
6 **
6 **
7 ** This file is part of the Qt Charts module.
7 ** This file is part of the Qt Charts module.
8 **
8 **
9 ** Licensees holding valid commercial license for Qt may use this file in
9 ** Licensees holding valid commercial license for Qt may use this file in
10 ** accordance with the Qt License Agreement provided with the Software
10 ** accordance with the Qt License Agreement provided with the Software
11 ** or, alternatively, in accordance with the terms contained in a written
11 ** or, alternatively, in accordance with the terms contained in a written
12 ** agreement between you and The Qt Company.
12 ** agreement between you and The Qt Company.
13 **
13 **
14 ** If you have questions regarding the use of this file, please use
14 ** If you have questions regarding the use of this file, please use
15 ** contact form at http://qt.io
15 ** contact form at http://qt.io
16 **
16 **
17 ****************************************************************************/
17 ****************************************************************************/
18
18
19 #include <QtCharts/QChart>
19 #include <QtCharts/QChart>
20 #include <QtCharts/QAbstractAxis>
20 #include <QtCharts/QAbstractAxis>
21 #include <QtCharts/QValueAxis>
21 #include <QtCharts/QValueAxis>
22 #include <QtCharts/QLogValueAxis>
22 #include <QtCharts/QLogValueAxis>
23 #include "declarativecategoryaxis.h"
23 #include "declarativecategoryaxis.h"
24 #include <QtCharts/QBarCategoryAxis>
24 #include <QtCharts/QBarCategoryAxis>
25 #include "declarativechart.h"
25 #include "declarativechart.h"
26 #include "declarativepolarchart.h"
26 #include "declarativepolarchart.h"
27 #include "declarativexypoint.h"
27 #include "declarativexypoint.h"
28 #include "declarativelineseries.h"
28 #include "declarativelineseries.h"
29 #include "declarativesplineseries.h"
29 #include "declarativesplineseries.h"
30 #include "declarativeareaseries.h"
30 #include "declarativeareaseries.h"
31 #include "declarativescatterseries.h"
31 #include "declarativescatterseries.h"
32 #include "declarativebarseries.h"
32 #include "declarativebarseries.h"
33 #include "declarativeboxplotseries.h"
33 #include "declarativeboxplotseries.h"
34 #include "declarativepieseries.h"
34 #include "declarativepieseries.h"
35 #include "declarativeaxes.h"
35 #include "declarativeaxes.h"
36 #include <QtCharts/QVXYModelMapper>
36 #include <QtCharts/QVXYModelMapper>
37 #include <QtCharts/QHXYModelMapper>
37 #include <QtCharts/QHXYModelMapper>
38 #include <QtCharts/QHPieModelMapper>
38 #include <QtCharts/QHPieModelMapper>
39 #include <QtCharts/QVPieModelMapper>
39 #include <QtCharts/QVPieModelMapper>
40 #include <QtCharts/QHBarModelMapper>
40 #include <QtCharts/QHBarModelMapper>
41 #include <QtCharts/QVBarModelMapper>
41 #include <QtCharts/QVBarModelMapper>
42 #include "declarativemargins.h"
42 #include "declarativemargins.h"
43 #include <QtCharts/QAreaLegendMarker>
43 #include <QtCharts/QAreaLegendMarker>
44 #include <QtCharts/QBarLegendMarker>
44 #include <QtCharts/QBarLegendMarker>
45 #include <QtCharts/QPieLegendMarker>
45 #include <QtCharts/QPieLegendMarker>
46 #include <QtCharts/QXYLegendMarker>
46 #include <QtCharts/QXYLegendMarker>
47 #include <QtCharts/QBoxPlotModelMapper>
47 #include <QtCharts/QBoxPlotModelMapper>
48 #include <QtCharts/QVBoxPlotModelMapper>
48 #include <QtCharts/QVBoxPlotModelMapper>
49 #ifndef QT_ON_ARM
49 #ifndef QT_ON_ARM
50 #include <QtCharts/QDateTimeAxis>
50 #include <QtCharts/QDateTimeAxis>
51 #endif
51 #endif
52 #include <QtCore/QAbstractItemModel>
52 #include <QtCore/QAbstractItemModel>
53 #include <QtQml>
53 #include <QtQml>
54
54
55 QT_CHARTS_USE_NAMESPACE
55 QT_CHARTS_USE_NAMESPACE
56
56
57 QML_DECLARE_TYPE(QList<QPieSlice *>)
57 QML_DECLARE_TYPE(QList<QPieSlice *>)
58 QML_DECLARE_TYPE(QList<QBarSet *>)
58 QML_DECLARE_TYPE(QList<QBarSet *>)
59 QML_DECLARE_TYPE(QList<QAbstractAxis *>)
59 QML_DECLARE_TYPE(QList<QAbstractAxis *>)
60
60
61 QML_DECLARE_TYPE(DeclarativeChart)
61 QML_DECLARE_TYPE(DeclarativeChart)
62 QML_DECLARE_TYPE(DeclarativePolarChart)
62 QML_DECLARE_TYPE(DeclarativePolarChart)
63 QML_DECLARE_TYPE(DeclarativeMargins)
63 QML_DECLARE_TYPE(DeclarativeMargins)
64 QML_DECLARE_TYPE(DeclarativeAreaSeries)
64 QML_DECLARE_TYPE(DeclarativeAreaSeries)
65 QML_DECLARE_TYPE(DeclarativeBarSeries)
65 QML_DECLARE_TYPE(DeclarativeBarSeries)
66 QML_DECLARE_TYPE(DeclarativeBarSet)
66 QML_DECLARE_TYPE(DeclarativeBarSet)
67 QML_DECLARE_TYPE(DeclarativeBoxPlotSeries)
67 QML_DECLARE_TYPE(DeclarativeBoxPlotSeries)
68 QML_DECLARE_TYPE(DeclarativeBoxSet)
68 QML_DECLARE_TYPE(DeclarativeBoxSet)
69 QML_DECLARE_TYPE(DeclarativeLineSeries)
69 QML_DECLARE_TYPE(DeclarativeLineSeries)
70 QML_DECLARE_TYPE(DeclarativePieSeries)
70 QML_DECLARE_TYPE(DeclarativePieSeries)
71 QML_DECLARE_TYPE(DeclarativePieSlice)
71 QML_DECLARE_TYPE(DeclarativePieSlice)
72 QML_DECLARE_TYPE(DeclarativeScatterSeries)
72 QML_DECLARE_TYPE(DeclarativeScatterSeries)
73 QML_DECLARE_TYPE(DeclarativeSplineSeries)
73 QML_DECLARE_TYPE(DeclarativeSplineSeries)
74
74
75 QML_DECLARE_TYPE(QAbstractAxis)
75 QML_DECLARE_TYPE(QAbstractAxis)
76 QML_DECLARE_TYPE(QValueAxis)
76 QML_DECLARE_TYPE(QValueAxis)
77 QML_DECLARE_TYPE(QBarCategoryAxis)
77 QML_DECLARE_TYPE(QBarCategoryAxis)
78 QML_DECLARE_TYPE(QCategoryAxis)
78 QML_DECLARE_TYPE(QCategoryAxis)
79 QML_DECLARE_TYPE(QDateTimeAxis)
79 QML_DECLARE_TYPE(QDateTimeAxis)
80 QML_DECLARE_TYPE(QLogValueAxis)
80 QML_DECLARE_TYPE(QLogValueAxis)
81
81
82 QML_DECLARE_TYPE(QLegend)
82 QML_DECLARE_TYPE(QLegend)
83 QML_DECLARE_TYPE(QLegendMarker)
83 QML_DECLARE_TYPE(QLegendMarker)
84 QML_DECLARE_TYPE(QAreaLegendMarker)
84 QML_DECLARE_TYPE(QAreaLegendMarker)
85 QML_DECLARE_TYPE(QBarLegendMarker)
85 QML_DECLARE_TYPE(QBarLegendMarker)
86 QML_DECLARE_TYPE(QPieLegendMarker)
86 QML_DECLARE_TYPE(QPieLegendMarker)
87
87
88 QML_DECLARE_TYPE(QHPieModelMapper)
88 QML_DECLARE_TYPE(QHPieModelMapper)
89 QML_DECLARE_TYPE(QHXYModelMapper)
89 QML_DECLARE_TYPE(QHXYModelMapper)
90 QML_DECLARE_TYPE(QPieModelMapper)
90 QML_DECLARE_TYPE(QPieModelMapper)
91 QML_DECLARE_TYPE(QHBarModelMapper)
91 QML_DECLARE_TYPE(QHBarModelMapper)
92 QML_DECLARE_TYPE(QBarModelMapper)
92 QML_DECLARE_TYPE(QBarModelMapper)
93 QML_DECLARE_TYPE(QVBarModelMapper)
93 QML_DECLARE_TYPE(QVBarModelMapper)
94 QML_DECLARE_TYPE(QVPieModelMapper)
94 QML_DECLARE_TYPE(QVPieModelMapper)
95 QML_DECLARE_TYPE(QVXYModelMapper)
95 QML_DECLARE_TYPE(QVXYModelMapper)
96 QML_DECLARE_TYPE(QXYLegendMarker)
96 QML_DECLARE_TYPE(QXYLegendMarker)
97 QML_DECLARE_TYPE(QXYModelMapper)
97 QML_DECLARE_TYPE(QXYModelMapper)
98 QML_DECLARE_TYPE(QBoxPlotModelMapper)
98 QML_DECLARE_TYPE(QBoxPlotModelMapper)
99 QML_DECLARE_TYPE(QVBoxPlotModelMapper)
99 QML_DECLARE_TYPE(QVBoxPlotModelMapper)
100
100
101 QML_DECLARE_TYPE(QAbstractSeries)
101 QML_DECLARE_TYPE(QAbstractSeries)
102 QML_DECLARE_TYPE(QXYSeries)
102 QML_DECLARE_TYPE(QXYSeries)
103 QML_DECLARE_TYPE(QAbstractBarSeries)
103 QML_DECLARE_TYPE(QAbstractBarSeries)
104 QML_DECLARE_TYPE(QBarSeries)
104 QML_DECLARE_TYPE(QBarSeries)
105 QML_DECLARE_TYPE(QBarSet)
105 QML_DECLARE_TYPE(QBarSet)
106 QML_DECLARE_TYPE(QAreaSeries)
106 QML_DECLARE_TYPE(QAreaSeries)
107 QML_DECLARE_TYPE(QHorizontalBarSeries)
107 QML_DECLARE_TYPE(QHorizontalBarSeries)
108 QML_DECLARE_TYPE(QHorizontalPercentBarSeries)
108 QML_DECLARE_TYPE(QHorizontalPercentBarSeries)
109 QML_DECLARE_TYPE(QHorizontalStackedBarSeries)
109 QML_DECLARE_TYPE(QHorizontalStackedBarSeries)
110 QML_DECLARE_TYPE(QLineSeries)
110 QML_DECLARE_TYPE(QLineSeries)
111 QML_DECLARE_TYPE(QPercentBarSeries)
111 QML_DECLARE_TYPE(QPercentBarSeries)
112 QML_DECLARE_TYPE(QPieSeries)
112 QML_DECLARE_TYPE(QPieSeries)
113 QML_DECLARE_TYPE(QPieSlice)
113 QML_DECLARE_TYPE(QPieSlice)
114 QML_DECLARE_TYPE(QScatterSeries)
114 QML_DECLARE_TYPE(QScatterSeries)
115 QML_DECLARE_TYPE(QSplineSeries)
115 QML_DECLARE_TYPE(QSplineSeries)
116 QML_DECLARE_TYPE(QStackedBarSeries)
116 QML_DECLARE_TYPE(QStackedBarSeries)
117
117
118 QT_CHARTS_BEGIN_NAMESPACE
118 QT_CHARTS_BEGIN_NAMESPACE
119
119
120 class QtChartsQml2Plugin : public QQmlExtensionPlugin
120 class QtChartsQml2Plugin : public QQmlExtensionPlugin
121 {
121 {
122 Q_OBJECT
122 Q_OBJECT
123
123
124 Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QQmlExtensionInterface")
124 Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QQmlExtensionInterface")
125
125
126 public:
126 public:
127 virtual void registerTypes(const char *uri)
127 virtual void registerTypes(const char *uri)
128 {
128 {
129 Q_ASSERT(QLatin1String(uri) == QLatin1String("QtCharts"));
129 Q_ASSERT(QLatin1String(uri) == QLatin1String("QtCharts"));
130
130
131 // @uri QtCharts
131 // @uri QtCharts
132
132
133 qRegisterMetaType<QList<QPieSlice *> >();
133 qRegisterMetaType<QList<QPieSlice *> >();
134 qRegisterMetaType<QList<QBarSet *> >();
134 qRegisterMetaType<QList<QBarSet *> >();
135 qRegisterMetaType<QList<QAbstractAxis *> >();
135 qRegisterMetaType<QList<QAbstractAxis *> >();
136
136
137 // QtCharts 1.0
137 // QtCharts 1.0
138 qmlRegisterType<DeclarativeChart>(uri, 1, 0, "ChartView");
138 qmlRegisterType<DeclarativeChart>(uri, 1, 0, "ChartView");
139 qmlRegisterType<DeclarativeXYPoint>(uri, 1, 0, "XYPoint");
139 qmlRegisterType<DeclarativeXYPoint>(uri, 1, 0, "XYPoint");
140 qmlRegisterType<DeclarativeScatterSeries>(uri, 1, 0, "ScatterSeries");
140 qmlRegisterType<DeclarativeScatterSeries>(uri, 1, 0, "ScatterSeries");
141 qmlRegisterType<DeclarativeLineSeries>(uri, 1, 0, "LineSeries");
141 qmlRegisterType<DeclarativeLineSeries>(uri, 1, 0, "LineSeries");
142 qmlRegisterType<DeclarativeSplineSeries>(uri, 1, 0, "SplineSeries");
142 qmlRegisterType<DeclarativeSplineSeries>(uri, 1, 0, "SplineSeries");
143 qmlRegisterType<DeclarativeAreaSeries>(uri, 1, 0, "AreaSeries");
143 qmlRegisterType<DeclarativeAreaSeries>(uri, 1, 0, "AreaSeries");
144 qmlRegisterType<DeclarativeBarSeries>(uri, 1, 0, "BarSeries");
144 qmlRegisterType<DeclarativeBarSeries>(uri, 1, 0, "BarSeries");
145 qmlRegisterType<DeclarativeStackedBarSeries>(uri, 1, 0, "StackedBarSeries");
145 qmlRegisterType<DeclarativeStackedBarSeries>(uri, 1, 0, "StackedBarSeries");
146 qmlRegisterType<DeclarativePercentBarSeries>(uri, 1, 0, "PercentBarSeries");
146 qmlRegisterType<DeclarativePercentBarSeries>(uri, 1, 0, "PercentBarSeries");
147 qmlRegisterType<DeclarativePieSeries>(uri, 1, 0, "PieSeries");
147 qmlRegisterType<DeclarativePieSeries>(uri, 1, 0, "PieSeries");
148 qmlRegisterType<QPieSlice>(uri, 1, 0, "PieSlice");
148 qmlRegisterType<QPieSlice>(uri, 1, 0, "PieSlice");
149 qmlRegisterType<DeclarativeBarSet>(uri, 1, 0, "BarSet");
149 qmlRegisterType<DeclarativeBarSet>(uri, 1, 0, "BarSet");
150 qmlRegisterType<QHXYModelMapper>(uri, 1, 0, "HXYModelMapper");
150 qmlRegisterType<QHXYModelMapper>(uri, 1, 0, "HXYModelMapper");
151 qmlRegisterType<QVXYModelMapper>(uri, 1, 0, "VXYModelMapper");
151 qmlRegisterType<QVXYModelMapper>(uri, 1, 0, "VXYModelMapper");
152 qmlRegisterType<QHPieModelMapper>(uri, 1, 0, "HPieModelMapper");
152 qmlRegisterType<QHPieModelMapper>(uri, 1, 0, "HPieModelMapper");
153 qmlRegisterType<QVPieModelMapper>(uri, 1, 0, "VPieModelMapper");
153 qmlRegisterType<QVPieModelMapper>(uri, 1, 0, "VPieModelMapper");
154 qmlRegisterType<QHBarModelMapper>(uri, 1, 0, "HBarModelMapper");
154 qmlRegisterType<QHBarModelMapper>(uri, 1, 0, "HBarModelMapper");
155 qmlRegisterType<QVBarModelMapper>(uri, 1, 0, "VBarModelMapper");
155 qmlRegisterType<QVBarModelMapper>(uri, 1, 0, "VBarModelMapper");
156
156
157 qmlRegisterType<QValueAxis>(uri, 1, 0, "ValuesAxis");
157 qmlRegisterType<QValueAxis>(uri, 1, 0, "ValuesAxis");
158 qmlRegisterType<QBarCategoryAxis>(uri, 1, 0, "BarCategoriesAxis");
158 qmlRegisterType<QBarCategoryAxis>(uri, 1, 0, "BarCategoriesAxis");
159 qmlRegisterUncreatableType<QLegend>(uri, 1, 0, "Legend",
159 qmlRegisterUncreatableType<QLegend>(uri, 1, 0, "Legend",
160 QLatin1String("Trying to create uncreatable: Legend."));
160 QLatin1String("Trying to create uncreatable: Legend."));
161 qmlRegisterUncreatableType<QXYSeries>(uri, 1, 0, "XYSeries",
161 qmlRegisterUncreatableType<QXYSeries>(uri, 1, 0, "XYSeries",
162 QLatin1String("Trying to create uncreatable: XYSeries."));
162 QLatin1String("Trying to create uncreatable: XYSeries."));
163 qmlRegisterUncreatableType<QAbstractItemModel>(uri, 1, 0, "AbstractItemModel",
163 qmlRegisterUncreatableType<QAbstractItemModel>(uri, 1, 0, "AbstractItemModel",
164 QLatin1String("Trying to create uncreatable: AbstractItemModel."));
164 QLatin1String("Trying to create uncreatable: AbstractItemModel."));
165 qmlRegisterUncreatableType<QXYModelMapper>(uri, 1, 0, "XYModelMapper",
165 qmlRegisterUncreatableType<QXYModelMapper>(uri, 1, 0, "XYModelMapper",
166 QLatin1String("Trying to create uncreatable: XYModelMapper."));
166 QLatin1String("Trying to create uncreatable: XYModelMapper."));
167 qmlRegisterUncreatableType<QPieModelMapper>(uri, 1, 0, "PieModelMapper",
167 qmlRegisterUncreatableType<QPieModelMapper>(uri, 1, 0, "PieModelMapper",
168 QLatin1String("Trying to create uncreatable: PieModelMapper."));
168 QLatin1String("Trying to create uncreatable: PieModelMapper."));
169 qmlRegisterUncreatableType<QBarModelMapper>(uri, 1, 0, "BarModelMapper",
169 qmlRegisterUncreatableType<QBarModelMapper>(uri, 1, 0, "BarModelMapper",
170 QLatin1String("Trying to create uncreatable: BarModelMapper."));
170 QLatin1String("Trying to create uncreatable: BarModelMapper."));
171 qmlRegisterUncreatableType<QAbstractSeries>(uri, 1, 0, "AbstractSeries",
171 qmlRegisterUncreatableType<QAbstractSeries>(uri, 1, 0, "AbstractSeries",
172 QLatin1String("Trying to create uncreatable: AbstractSeries."));
172 QLatin1String("Trying to create uncreatable: AbstractSeries."));
173 qmlRegisterUncreatableType<QAbstractBarSeries>(uri, 1, 0, "AbstractBarSeries",
173 qmlRegisterUncreatableType<QAbstractBarSeries>(uri, 1, 0, "AbstractBarSeries",
174 QLatin1String("Trying to create uncreatable: AbstractBarSeries."));
174 QLatin1String("Trying to create uncreatable: AbstractBarSeries."));
175 qmlRegisterUncreatableType<QAbstractAxis>(uri, 1, 0, "AbstractAxis",
175 qmlRegisterUncreatableType<QAbstractAxis>(uri, 1, 0, "AbstractAxis",
176 QLatin1String("Trying to create uncreatable: AbstractAxis. Use specific types of axis instead."));
176 QLatin1String("Trying to create uncreatable: AbstractAxis. Use specific types of axis instead."));
177 qmlRegisterUncreatableType<QBarSet>(uri, 1, 0, "BarSetBase",
177 qmlRegisterUncreatableType<QBarSet>(uri, 1, 0, "BarSetBase",
178 QLatin1String("Trying to create uncreatable: BarsetBase."));
178 QLatin1String("Trying to create uncreatable: BarsetBase."));
179 qmlRegisterUncreatableType<QPieSeries>(uri, 1, 0, "QPieSeries",
179 qmlRegisterUncreatableType<QPieSeries>(uri, 1, 0, "QPieSeries",
180 QLatin1String("Trying to create uncreatable: QPieSeries. Use PieSeries instead."));
180 QLatin1String("Trying to create uncreatable: QPieSeries. Use PieSeries instead."));
181 qmlRegisterUncreatableType<DeclarativeAxes>(uri, 1, 0, "DeclarativeAxes",
181 qmlRegisterUncreatableType<DeclarativeAxes>(uri, 1, 0, "DeclarativeAxes",
182 QLatin1String("Trying to create uncreatable: DeclarativeAxes."));
182 QLatin1String("Trying to create uncreatable: DeclarativeAxes."));
183
183
184 // QtCharts 1.1
184 // QtCharts 1.1
185 qmlRegisterType<DeclarativeChart, 1>(uri, 1, 1, "ChartView");
185 qmlRegisterType<DeclarativeChart, 1>(uri, 1, 1, "ChartView");
186 qmlRegisterType<DeclarativeScatterSeries, 1>(uri, 1, 1, "ScatterSeries");
186 qmlRegisterType<DeclarativeScatterSeries, 1>(uri, 1, 1, "ScatterSeries");
187 qmlRegisterType<DeclarativeLineSeries, 1>(uri, 1, 1, "LineSeries");
187 qmlRegisterType<DeclarativeLineSeries, 1>(uri, 1, 1, "LineSeries");
188 qmlRegisterType<DeclarativeSplineSeries, 1>(uri, 1, 1, "SplineSeries");
188 qmlRegisterType<DeclarativeSplineSeries, 1>(uri, 1, 1, "SplineSeries");
189 qmlRegisterType<DeclarativeAreaSeries, 1>(uri, 1, 1, "AreaSeries");
189 qmlRegisterType<DeclarativeAreaSeries, 1>(uri, 1, 1, "AreaSeries");
190 qmlRegisterType<DeclarativeBarSeries, 1>(uri, 1, 1, "BarSeries");
190 qmlRegisterType<DeclarativeBarSeries, 1>(uri, 1, 1, "BarSeries");
191 qmlRegisterType<DeclarativeStackedBarSeries, 1>(uri, 1, 1, "StackedBarSeries");
191 qmlRegisterType<DeclarativeStackedBarSeries, 1>(uri, 1, 1, "StackedBarSeries");
192 qmlRegisterType<DeclarativePercentBarSeries, 1>(uri, 1, 1, "PercentBarSeries");
192 qmlRegisterType<DeclarativePercentBarSeries, 1>(uri, 1, 1, "PercentBarSeries");
193 qmlRegisterType<DeclarativeHorizontalBarSeries, 1>(uri, 1, 1, "HorizontalBarSeries");
193 qmlRegisterType<DeclarativeHorizontalBarSeries, 1>(uri, 1, 1, "HorizontalBarSeries");
194 qmlRegisterType<DeclarativeHorizontalStackedBarSeries, 1>(uri, 1, 1, "HorizontalStackedBarSeries");
194 qmlRegisterType<DeclarativeHorizontalStackedBarSeries, 1>(uri, 1, 1, "HorizontalStackedBarSeries");
195 qmlRegisterType<DeclarativeHorizontalPercentBarSeries, 1>(uri, 1, 1, "HorizontalPercentBarSeries");
195 qmlRegisterType<DeclarativeHorizontalPercentBarSeries, 1>(uri, 1, 1, "HorizontalPercentBarSeries");
196 qmlRegisterType<DeclarativePieSeries>(uri, 1, 1, "PieSeries");
196 qmlRegisterType<DeclarativePieSeries>(uri, 1, 1, "PieSeries");
197 qmlRegisterType<DeclarativeBarSet>(uri, 1, 1, "BarSet");
197 qmlRegisterType<DeclarativeBarSet>(uri, 1, 1, "BarSet");
198 qmlRegisterType<QValueAxis>(uri, 1, 1, "ValueAxis");
198 qmlRegisterType<QValueAxis>(uri, 1, 1, "ValueAxis");
199 #ifndef QT_ON_ARM
199 #ifndef QT_ON_ARM
200 qmlRegisterType<QDateTimeAxis>(uri, 1, 1, "DateTimeAxis");
200 qmlRegisterType<QDateTimeAxis>(uri, 1, 1, "DateTimeAxis");
201 #endif
201 #endif
202 qmlRegisterType<DeclarativeCategoryAxis>(uri, 1, 1, "CategoryAxis");
202 qmlRegisterType<DeclarativeCategoryAxis>(uri, 1, 1, "CategoryAxis");
203 qmlRegisterType<DeclarativeCategoryRange>(uri, 1, 1, "CategoryRange");
203 qmlRegisterType<DeclarativeCategoryRange>(uri, 1, 1, "CategoryRange");
204 qmlRegisterType<QBarCategoryAxis>(uri, 1, 1, "BarCategoryAxis");
204 qmlRegisterType<QBarCategoryAxis>(uri, 1, 1, "BarCategoryAxis");
205 qmlRegisterUncreatableType<DeclarativeMargins>(uri, 1, 1, "Margins",
205 qmlRegisterUncreatableType<DeclarativeMargins>(uri, 1, 1, "Margins",
206 QLatin1String("Trying to create uncreatable: Margins."));
206 QLatin1String("Trying to create uncreatable: Margins."));
207
207
208 // QtCharts 1.2
208 // QtCharts 1.2
209 qmlRegisterType<DeclarativeChart, 2>(uri, 1, 2, "ChartView");
209 qmlRegisterType<DeclarativeChart, 2>(uri, 1, 2, "ChartView");
210 qmlRegisterType<DeclarativeScatterSeries, 2>(uri, 1, 2, "ScatterSeries");
210 qmlRegisterType<DeclarativeScatterSeries, 2>(uri, 1, 2, "ScatterSeries");
211 qmlRegisterType<DeclarativeLineSeries, 2>(uri, 1, 2, "LineSeries");
211 qmlRegisterType<DeclarativeLineSeries, 2>(uri, 1, 2, "LineSeries");
212 qmlRegisterType<DeclarativeSplineSeries, 2>(uri, 1, 2, "SplineSeries");
212 qmlRegisterType<DeclarativeSplineSeries, 2>(uri, 1, 2, "SplineSeries");
213 qmlRegisterType<DeclarativeAreaSeries, 2>(uri, 1, 2, "AreaSeries");
213 qmlRegisterType<DeclarativeAreaSeries, 2>(uri, 1, 2, "AreaSeries");
214 qmlRegisterType<DeclarativeBarSeries, 2>(uri, 1, 2, "BarSeries");
214 qmlRegisterType<DeclarativeBarSeries, 2>(uri, 1, 2, "BarSeries");
215 qmlRegisterType<DeclarativeStackedBarSeries, 2>(uri, 1, 2, "StackedBarSeries");
215 qmlRegisterType<DeclarativeStackedBarSeries, 2>(uri, 1, 2, "StackedBarSeries");
216 qmlRegisterType<DeclarativePercentBarSeries, 2>(uri, 1, 2, "PercentBarSeries");
216 qmlRegisterType<DeclarativePercentBarSeries, 2>(uri, 1, 2, "PercentBarSeries");
217 qmlRegisterType<DeclarativeHorizontalBarSeries, 2>(uri, 1, 2, "HorizontalBarSeries");
217 qmlRegisterType<DeclarativeHorizontalBarSeries, 2>(uri, 1, 2, "HorizontalBarSeries");
218 qmlRegisterType<DeclarativeHorizontalStackedBarSeries, 2>(uri, 1, 2, "HorizontalStackedBarSeries");
218 qmlRegisterType<DeclarativeHorizontalStackedBarSeries, 2>(uri, 1, 2, "HorizontalStackedBarSeries");
219 qmlRegisterType<DeclarativeHorizontalPercentBarSeries, 2>(uri, 1, 2, "HorizontalPercentBarSeries");
219 qmlRegisterType<DeclarativeHorizontalPercentBarSeries, 2>(uri, 1, 2, "HorizontalPercentBarSeries");
220
220
221 // QtCharts 1.3
221 // QtCharts 1.3
222 qmlRegisterType<DeclarativeChart, 3>(uri, 1, 3, "ChartView");
222 qmlRegisterType<DeclarativeChart, 3>(uri, 1, 3, "ChartView");
223 qmlRegisterType<DeclarativePolarChart, 1>(uri, 1, 3, "PolarChartView");
223 qmlRegisterType<DeclarativePolarChart, 1>(uri, 1, 3, "PolarChartView");
224 qmlRegisterType<DeclarativeSplineSeries, 3>(uri, 1, 3, "SplineSeries");
224 qmlRegisterType<DeclarativeSplineSeries, 3>(uri, 1, 3, "SplineSeries");
225 qmlRegisterType<DeclarativeScatterSeries, 3>(uri, 1, 3, "ScatterSeries");
225 qmlRegisterType<DeclarativeScatterSeries, 3>(uri, 1, 3, "ScatterSeries");
226 qmlRegisterType<DeclarativeLineSeries, 3>(uri, 1, 3, "LineSeries");
226 qmlRegisterType<DeclarativeLineSeries, 3>(uri, 1, 3, "LineSeries");
227 qmlRegisterType<DeclarativeAreaSeries, 3>(uri, 1, 3, "AreaSeries");
227 qmlRegisterType<DeclarativeAreaSeries, 3>(uri, 1, 3, "AreaSeries");
228 qmlRegisterType<QLogValueAxis>(uri, 1, 3, "LogValueAxis");
228 qmlRegisterType<QLogValueAxis>(uri, 1, 3, "LogValueAxis");
229 qmlRegisterType<DeclarativeBoxPlotSeries>(uri, 1, 3, "BoxPlotSeries");
229 qmlRegisterType<DeclarativeBoxPlotSeries>(uri, 1, 3, "BoxPlotSeries");
230 qmlRegisterType<DeclarativeBoxSet>(uri, 1, 3, "BoxSet");
230 qmlRegisterType<DeclarativeBoxSet>(uri, 1, 3, "BoxSet");
231
231
232 // QtCharts 1.4
232 // QtCharts 1.4
233 qmlRegisterType<DeclarativeAreaSeries, 4>(uri, 1, 4, "AreaSeries");
233 qmlRegisterType<DeclarativeAreaSeries, 4>(uri, 1, 4, "AreaSeries");
234 qmlRegisterType<DeclarativeBarSet, 2>(uri, 1, 4, "BarSet");
234 qmlRegisterType<DeclarativeBarSet, 2>(uri, 1, 4, "BarSet");
235 qmlRegisterType<DeclarativeBoxPlotSeries, 1>(uri, 1, 4, "BoxPlotSeries");
235 qmlRegisterType<DeclarativeBoxPlotSeries, 1>(uri, 1, 4, "BoxPlotSeries");
236 qmlRegisterType<DeclarativeBoxSet, 1>(uri, 1, 4, "BoxSet");
236 qmlRegisterType<DeclarativeBoxSet, 1>(uri, 1, 4, "BoxSet");
237 qmlRegisterType<DeclarativePieSlice>(uri, 1, 4, "PieSlice");
237 qmlRegisterType<DeclarativePieSlice>(uri, 1, 4, "PieSlice");
238 qmlRegisterType<DeclarativeScatterSeries, 4>(uri, 1, 4, "ScatterSeries");
238 qmlRegisterType<DeclarativeScatterSeries, 4>(uri, 1, 4, "ScatterSeries");
239
239
240 // QtCharts 2.0
240 // QtCharts 2.0
241 qmlRegisterType<QVBoxPlotModelMapper>(uri, 2, 0, "VBoxPlotModelMapper");
241 qmlRegisterType<QVBoxPlotModelMapper>(uri, 2, 0, "VBoxPlotModelMapper");
242 qmlRegisterUncreatableType<QBoxPlotModelMapper>(uri, 2, 0, "BoxPlotModelMapper",
242 qmlRegisterUncreatableType<QBoxPlotModelMapper>(uri, 2, 0, "BoxPlotModelMapper",
243 QLatin1String("Trying to create uncreatable: BoxPlotModelMapper."));
243 QLatin1String("Trying to create uncreatable: BoxPlotModelMapper."));
244 qmlRegisterType<DeclarativeChart, 4>(uri, 2, 0, "ChartView");
244 qmlRegisterType<DeclarativeChart, 4>(uri, 2, 0, "ChartView");
245 qmlRegisterType<DeclarativeXYPoint>(uri, 2, 0, "XYPoint");
245 qmlRegisterType<DeclarativeXYPoint>(uri, 2, 0, "XYPoint");
246 qmlRegisterType<DeclarativeScatterSeries, 4>(uri, 2, 0, "ScatterSeries");
246 qmlRegisterType<DeclarativeScatterSeries, 4>(uri, 2, 0, "ScatterSeries");
247 qmlRegisterType<DeclarativeLineSeries, 3>(uri, 2, 0, "LineSeries");
247 qmlRegisterType<DeclarativeLineSeries, 3>(uri, 2, 0, "LineSeries");
248 qmlRegisterType<DeclarativeSplineSeries, 3>(uri, 2, 0, "SplineSeries");
248 qmlRegisterType<DeclarativeSplineSeries, 3>(uri, 2, 0, "SplineSeries");
249 qmlRegisterType<DeclarativeAreaSeries, 4>(uri, 2, 0, "AreaSeries");
249 qmlRegisterType<DeclarativeAreaSeries, 4>(uri, 2, 0, "AreaSeries");
250 qmlRegisterType<DeclarativeBarSeries, 2>(uri, 2, 0, "BarSeries");
250 qmlRegisterType<DeclarativeBarSeries, 2>(uri, 2, 0, "BarSeries");
251 qmlRegisterType<DeclarativeStackedBarSeries, 2>(uri, 2, 0, "StackedBarSeries");
251 qmlRegisterType<DeclarativeStackedBarSeries, 2>(uri, 2, 0, "StackedBarSeries");
252 qmlRegisterType<DeclarativePercentBarSeries, 2>(uri, 2, 0, "PercentBarSeries");
252 qmlRegisterType<DeclarativePercentBarSeries, 2>(uri, 2, 0, "PercentBarSeries");
253 qmlRegisterType<DeclarativePieSeries>(uri, 2, 0, "PieSeries");
253 qmlRegisterType<DeclarativePieSeries>(uri, 2, 0, "PieSeries");
254 qmlRegisterType<QPieSlice>(uri, 2, 0, "PieSlice");
254 qmlRegisterType<QPieSlice>(uri, 2, 0, "PieSlice");
255 qmlRegisterType<DeclarativeBarSet, 2>(uri, 2, 0, "BarSet");
255 qmlRegisterType<DeclarativeBarSet, 2>(uri, 2, 0, "BarSet");
256 qmlRegisterType<QHXYModelMapper>(uri, 2, 0, "HXYModelMapper");
256 qmlRegisterType<QHXYModelMapper>(uri, 2, 0, "HXYModelMapper");
257 qmlRegisterType<QVXYModelMapper>(uri, 2, 0, "VXYModelMapper");
257 qmlRegisterType<QVXYModelMapper>(uri, 2, 0, "VXYModelMapper");
258 qmlRegisterType<QHPieModelMapper>(uri, 2, 0, "HPieModelMapper");
258 qmlRegisterType<QHPieModelMapper>(uri, 2, 0, "HPieModelMapper");
259 qmlRegisterType<QVPieModelMapper>(uri, 2, 0, "VPieModelMapper");
259 qmlRegisterType<QVPieModelMapper>(uri, 2, 0, "VPieModelMapper");
260 qmlRegisterType<QHBarModelMapper>(uri, 2, 0, "HBarModelMapper");
260 qmlRegisterType<QHBarModelMapper>(uri, 2, 0, "HBarModelMapper");
261 qmlRegisterType<QVBarModelMapper>(uri, 2, 0, "VBarModelMapper");
261 qmlRegisterType<QVBarModelMapper>(uri, 2, 0, "VBarModelMapper");
262 qmlRegisterType<QValueAxis>(uri, 2, 0, "ValueAxis");
262 qmlRegisterType<QValueAxis>(uri, 2, 0, "ValueAxis");
263 #ifndef QT_ON_ARM
263 #ifndef QT_ON_ARM
264 qmlRegisterType<QDateTimeAxis>(uri, 2, 0, "DateTimeAxis");
264 qmlRegisterType<QDateTimeAxis>(uri, 2, 0, "DateTimeAxis");
265 #endif
265 #endif
266 qmlRegisterType<DeclarativeCategoryAxis>(uri, 2, 0, "CategoryAxis");
266 qmlRegisterType<DeclarativeCategoryAxis>(uri, 2, 0, "CategoryAxis");
267 qmlRegisterType<DeclarativeCategoryRange>(uri, 2, 0, "CategoryRange");
267 qmlRegisterType<DeclarativeCategoryRange>(uri, 2, 0, "CategoryRange");
268 qmlRegisterType<QBarCategoryAxis>(uri, 2, 0, "BarCategoryAxis");
268 qmlRegisterType<QBarCategoryAxis>(uri, 2, 0, "BarCategoryAxis");
269 qmlRegisterType<DeclarativePolarChart, 1>(uri, 2, 0, "PolarChartView");
269 qmlRegisterType<DeclarativePolarChart, 1>(uri, 2, 0, "PolarChartView");
270 qmlRegisterType<QLogValueAxis, 1>(uri, 2, 0, "LogValueAxis");
270 qmlRegisterType<QLogValueAxis, 1>(uri, 2, 0, "LogValueAxis");
271 qmlRegisterType<DeclarativeBoxPlotSeries, 1>(uri, 2, 0, "BoxPlotSeries");
271 qmlRegisterType<DeclarativeBoxPlotSeries, 1>(uri, 2, 0, "BoxPlotSeries");
272 qmlRegisterType<DeclarativeBoxSet, 1>(uri, 2, 0, "BoxSet");
272 qmlRegisterType<DeclarativeBoxSet, 1>(uri, 2, 0, "BoxSet");
273 qmlRegisterType<DeclarativeHorizontalBarSeries, 2>(uri, 2, 0, "HorizontalBarSeries");
273 qmlRegisterType<DeclarativeHorizontalBarSeries, 2>(uri, 2, 0, "HorizontalBarSeries");
274 qmlRegisterType<DeclarativeHorizontalStackedBarSeries, 2>(uri, 2, 0, "HorizontalStackedBarSeries");
274 qmlRegisterType<DeclarativeHorizontalStackedBarSeries, 2>(uri, 2, 0, "HorizontalStackedBarSeries");
275 qmlRegisterType<DeclarativeHorizontalPercentBarSeries, 2>(uri, 2, 0, "HorizontalPercentBarSeries");
275 qmlRegisterType<DeclarativeHorizontalPercentBarSeries, 2>(uri, 2, 0, "HorizontalPercentBarSeries");
276 qmlRegisterType<DeclarativePieSlice>(uri, 2, 0, "PieSlice");
276 qmlRegisterType<DeclarativePieSlice>(uri, 2, 0, "PieSlice");
277 qmlRegisterUncreatableType<QLegend>(uri, 2, 0, "Legend",
277 qmlRegisterUncreatableType<QLegend>(uri, 2, 0, "Legend",
278 QLatin1String("Trying to create uncreatable: Legend."));
278 QLatin1String("Trying to create uncreatable: Legend."));
279 qmlRegisterUncreatableType<QXYSeries>(uri, 2, 0, "XYSeries",
279 qmlRegisterUncreatableType<QXYSeries>(uri, 2, 0, "XYSeries",
280 QLatin1String("Trying to create uncreatable: XYSeries."));
280 QLatin1String("Trying to create uncreatable: XYSeries."));
281 qmlRegisterUncreatableType<QAbstractItemModel>(uri, 2, 0, "AbstractItemModel",
281 qmlRegisterUncreatableType<QAbstractItemModel>(uri, 2, 0, "AbstractItemModel",
282 QLatin1String("Trying to create uncreatable: AbstractItemModel."));
282 QLatin1String("Trying to create uncreatable: AbstractItemModel."));
283 qmlRegisterUncreatableType<QXYModelMapper>(uri, 2, 0, "XYModelMapper",
283 qmlRegisterUncreatableType<QXYModelMapper>(uri, 2, 0, "XYModelMapper",
284 QLatin1String("Trying to create uncreatable: XYModelMapper."));
284 QLatin1String("Trying to create uncreatable: XYModelMapper."));
285 qmlRegisterUncreatableType<QPieModelMapper>(uri, 2, 0, "PieModelMapper",
285 qmlRegisterUncreatableType<QPieModelMapper>(uri, 2, 0, "PieModelMapper",
286 QLatin1String("Trying to create uncreatable: PieModelMapper."));
286 QLatin1String("Trying to create uncreatable: PieModelMapper."));
287 qmlRegisterUncreatableType<QBarModelMapper>(uri, 2, 0, "BarModelMapper",
287 qmlRegisterUncreatableType<QBarModelMapper>(uri, 2, 0, "BarModelMapper",
288 QLatin1String("Trying to create uncreatable: BarModelMapper."));
288 QLatin1String("Trying to create uncreatable: BarModelMapper."));
289 qmlRegisterUncreatableType<QAbstractSeries>(uri, 2, 0, "AbstractSeries",
289 qmlRegisterUncreatableType<QAbstractSeries>(uri, 2, 0, "AbstractSeries",
290 QLatin1String("Trying to create uncreatable: AbstractSeries."));
290 QLatin1String("Trying to create uncreatable: AbstractSeries."));
291 qmlRegisterUncreatableType<QAbstractBarSeries>(uri, 2, 0, "AbstractBarSeries",
291 qmlRegisterUncreatableType<QAbstractBarSeries>(uri, 2, 0, "AbstractBarSeries",
292 QLatin1String("Trying to create uncreatable: AbstractBarSeries."));
292 QLatin1String("Trying to create uncreatable: AbstractBarSeries."));
293 qmlRegisterUncreatableType<QAbstractAxis>(uri, 2, 0, "AbstractAxis",
293 qmlRegisterUncreatableType<QAbstractAxis>(uri, 2, 0, "AbstractAxis",
294 QLatin1String("Trying to create uncreatable: AbstractAxis. Use specific types of axis instead."));
294 QLatin1String("Trying to create uncreatable: AbstractAxis. Use specific types of axis instead."));
295 qmlRegisterUncreatableType<QBarSet>(uri, 2, 0, "BarSetBase",
295 qmlRegisterUncreatableType<QBarSet>(uri, 2, 0, "BarSetBase",
296 QLatin1String("Trying to create uncreatable: BarsetBase."));
296 QLatin1String("Trying to create uncreatable: BarsetBase."));
297 qmlRegisterUncreatableType<QPieSeries>(uri, 2, 0, "QPieSeries",
297 qmlRegisterUncreatableType<QPieSeries>(uri, 2, 0, "QPieSeries",
298 QLatin1String("Trying to create uncreatable: QPieSeries. Use PieSeries instead."));
298 QLatin1String("Trying to create uncreatable: QPieSeries. Use PieSeries instead."));
299 qmlRegisterUncreatableType<DeclarativeAxes>(uri, 2, 0, "DeclarativeAxes",
299 qmlRegisterUncreatableType<DeclarativeAxes>(uri, 2, 0, "DeclarativeAxes",
300 QLatin1String("Trying to create uncreatable: DeclarativeAxes."));
300 QLatin1String("Trying to create uncreatable: DeclarativeAxes."));
301 qmlRegisterUncreatableType<DeclarativeMargins>(uri, 2, 0, "Margins",
301 qmlRegisterUncreatableType<DeclarativeMargins>(uri, 2, 0, "Margins",
302 QLatin1String("Trying to create uncreatable: Margins."));
302 QLatin1String("Trying to create uncreatable: Margins."));
303
303
304 // QtCharts 2.1
304 // QtCharts 2.1
305 qmlRegisterType<DeclarativeCategoryAxis, 1>(uri, 2, 1, "CategoryAxis");
305 qmlRegisterType<DeclarativeCategoryAxis, 1>(uri, 2, 1, "CategoryAxis");
306 qmlRegisterUncreatableType<QAbstractAxis>(uri, 2, 1, "AbstractAxis",
306 qmlRegisterUncreatableType<QAbstractAxis>(uri, 2, 1, "AbstractAxis",
307 QLatin1String("Trying to create uncreatable: AbstractAxis. Use specific types of axis instead."));
307 QLatin1String("Trying to create uncreatable: AbstractAxis. Use specific types of axis instead."));
308 qmlRegisterType<DeclarativeChart, 5>(uri, 2, 1, "ChartView");
308 }
309 }
309
310
310 };
311 };
311
312
312 QT_CHARTS_END_NAMESPACE
313 QT_CHARTS_END_NAMESPACE
313
314
314 #include "chartsqml2_plugin.moc"
315 #include "chartsqml2_plugin.moc"
315
316
316 QT_CHARTS_USE_NAMESPACE
317 QT_CHARTS_USE_NAMESPACE
@@ -1,1063 +1,1109
1 /****************************************************************************
1 /****************************************************************************
2 **
2 **
3 ** Copyright (C) 2015 The Qt Company Ltd
3 ** Copyright (C) 2015 The Qt Company Ltd
4 ** All rights reserved.
4 ** All rights reserved.
5 ** For any questions to The Qt Company, please use contact form at http://qt.io
5 ** For any questions to The Qt Company, please use contact form at http://qt.io
6 **
6 **
7 ** This file is part of the Qt Charts module.
7 ** This file is part of the Qt Charts module.
8 **
8 **
9 ** Licensees holding valid commercial license for Qt may use this file in
9 ** Licensees holding valid commercial license for Qt may use this file in
10 ** accordance with the Qt License Agreement provided with the Software
10 ** accordance with the Qt License Agreement provided with the Software
11 ** or, alternatively, in accordance with the terms contained in a written
11 ** or, alternatively, in accordance with the terms contained in a written
12 ** agreement between you and The Qt Company.
12 ** agreement between you and The Qt Company.
13 **
13 **
14 ** If you have questions regarding the use of this file, please use
14 ** If you have questions regarding the use of this file, please use
15 ** contact form at http://qt.io
15 ** contact form at http://qt.io
16 **
16 **
17 ****************************************************************************/
17 ****************************************************************************/
18
18
19 #include "declarativechart.h"
19 #include "declarativechart.h"
20 #include <QtGui/QPainter>
20 #include <QtGui/QPainter>
21 #include "declarativelineseries.h"
21 #include "declarativelineseries.h"
22 #include "declarativeareaseries.h"
22 #include "declarativeareaseries.h"
23 #include "declarativebarseries.h"
23 #include "declarativebarseries.h"
24 #include "declarativepieseries.h"
24 #include "declarativepieseries.h"
25 #include "declarativesplineseries.h"
25 #include "declarativesplineseries.h"
26 #include "declarativeboxplotseries.h"
26 #include "declarativeboxplotseries.h"
27 #include "declarativescatterseries.h"
27 #include "declarativescatterseries.h"
28 #include <QtCharts/QBarCategoryAxis>
28 #include <QtCharts/QBarCategoryAxis>
29 #include <QtCharts/QValueAxis>
29 #include <QtCharts/QValueAxis>
30 #include <QtCharts/QLogValueAxis>
30 #include <QtCharts/QLogValueAxis>
31 #include <QtCharts/QCategoryAxis>
31 #include <QtCharts/QCategoryAxis>
32 #include <private/qabstractseries_p.h>
32 #include <private/qabstractseries_p.h>
33 #include "declarativemargins.h"
33 #include "declarativemargins.h"
34 #include <private/chartdataset_p.h>
34 #include <private/chartdataset_p.h>
35 #include "declarativeaxes.h"
35 #include "declarativeaxes.h"
36 #include <private/qchart_p.h>
36 #include <private/qchart_p.h>
37 #include <QtCharts/QPolarChart>
37 #include <QtCharts/QPolarChart>
38
38
39 #ifndef QT_ON_ARM
39 #ifndef QT_ON_ARM
40 #include <QtCharts/QDateTimeAxis>
40 #include <QtCharts/QDateTimeAxis>
41 #endif
41 #endif
42
42
43 #include <QtWidgets/QGraphicsSceneMouseEvent>
43 #include <QtWidgets/QGraphicsSceneMouseEvent>
44 #include <QtWidgets/QGraphicsSceneHoverEvent>
44 #include <QtWidgets/QGraphicsSceneHoverEvent>
45 #include <QtWidgets/QApplication>
45 #include <QtWidgets/QApplication>
46 #include <QtCore/QTimer>
46 #include <QtCore/QTimer>
47 #include <QtCore/QThread>
47 #include <QtCore/QThread>
48
48
49 QT_CHARTS_BEGIN_NAMESPACE
49 QT_CHARTS_BEGIN_NAMESPACE
50
50
51 /*!
51 /*!
52 \qmltype ChartView
52 \qmltype ChartView
53 \instantiates DeclarativeChart
53 \instantiates DeclarativeChart
54 \inqmlmodule QtCharts
54 \inqmlmodule QtCharts
55
55
56 \brief Chart element.
56 \brief Chart element.
57
57
58 ChartView element is the parent that is responsible for showing different chart series types.
58 ChartView element is the parent that is responsible for showing different chart series types.
59
59
60 The following QML shows how to create a simple chart with one pie series:
60 The following QML shows how to create a simple chart with one pie series:
61 \snippet qmlpiechart/qml/qmlpiechart/main.qml 1
61 \snippet qmlpiechart/qml/qmlpiechart/main.qml 1
62 \snippet qmlpiechart/qml/qmlpiechart/main.qml 2
62 \snippet qmlpiechart/qml/qmlpiechart/main.qml 2
63 \snippet qmlpiechart/qml/qmlpiechart/main.qml 3
63 \snippet qmlpiechart/qml/qmlpiechart/main.qml 3
64
64
65 \beginfloatleft
65 \beginfloatleft
66 \image examples_qmlpiechart.png
66 \image examples_qmlpiechart.png
67 \endfloat
67 \endfloat
68 \clearfloat
68 \clearfloat
69 */
69 */
70
70
71 /*!
71 /*!
72 \qmlproperty Theme ChartView::theme
72 \qmlproperty Theme ChartView::theme
73 Theme defines the visual appearance of the chart, including for example colors, fonts, line
73 Theme defines the visual appearance of the chart, including for example colors, fonts, line
74 widths and chart background.
74 widths and chart background.
75 */
75 */
76
76
77 /*!
77 /*!
78 \qmlproperty Animation ChartView::animationOptions
78 \qmlproperty Animation ChartView::animationOptions
79 Animation configuration of the chart. One of ChartView.NoAnimation, ChartView.GridAxisAnimations,
79 Animation configuration of the chart. One of ChartView.NoAnimation, ChartView.GridAxisAnimations,
80 ChartView.SeriesAnimations or ChartView.AllAnimations.
80 ChartView.SeriesAnimations or ChartView.AllAnimations.
81 */
81 */
82
82
83 /*!
83 /*!
84 \qmlproperty Font ChartView::titleFont
84 \qmlproperty Font ChartView::titleFont
85 The title font of the chart.
85 The title font of the chart.
86
86
87 See the Qt documentation for more details of Font.
87 See the Qt documentation for more details of Font.
88 */
88 */
89
89
90 /*!
90 /*!
91 \qmlproperty string ChartView::title
91 \qmlproperty string ChartView::title
92 The title of the chart, shown on top of the chart.
92 The title of the chart, shown on top of the chart.
93 \sa ChartView::titleColor
93 \sa ChartView::titleColor
94 */
94 */
95
95
96 /*!
96 /*!
97 \qmlproperty color ChartView::titleColor
97 \qmlproperty color ChartView::titleColor
98 The color of the title text.
98 The color of the title text.
99 */
99 */
100
100
101 /*!
101 /*!
102 \qmlproperty Legend ChartView::legend
102 \qmlproperty Legend ChartView::legend
103 The legend of the chart. Legend lists all the series, pie slices and bar sets added on the chart.
103 The legend of the chart. Legend lists all the series, pie slices and bar sets added on the chart.
104 */
104 */
105
105
106 /*!
106 /*!
107 \qmlproperty int ChartView::count
107 \qmlproperty int ChartView::count
108 The count of series added to the chart.
108 The count of series added to the chart.
109 */
109 */
110
110
111 /*!
111 /*!
112 \qmlproperty color ChartView::backgroundColor
112 \qmlproperty color ChartView::backgroundColor
113 The color of the chart's background. By default background color is defined by chart theme.
113 The color of the chart's background. By default background color is defined by chart theme.
114 \sa ChartView::theme
114 \sa ChartView::theme
115 */
115 */
116
116
117 /*!
117 /*!
118 \qmlproperty real ChartView::backgroundRoundness
118 \qmlproperty real ChartView::backgroundRoundness
119 The diameter of the rounding circle at the corners of the chart background.
119 The diameter of the rounding circle at the corners of the chart background.
120 */
120 */
121
121
122 /*!
122 /*!
123 \qmlproperty color ChartView::plotAreaColor
123 \qmlproperty color ChartView::plotAreaColor
124 The color of the background of the chart's plot area. By default plot area background uses chart's
124 The color of the background of the chart's plot area. By default plot area background uses chart's
125 background color.
125 background color.
126 \sa ChartView::backgroundColor
126 \sa ChartView::backgroundColor
127 */
127 */
128
128
129 /*!
129 /*!
130 \qmlproperty list<AbstractAxis> ChartView::axes
130 \qmlproperty list<AbstractAxis> ChartView::axes
131 The axes of the ChartView.
131 The axes of the ChartView.
132 */
132 */
133
133
134 /*!
134 /*!
135 \qmlproperty bool ChartView::dropShadowEnabled
135 \qmlproperty bool ChartView::dropShadowEnabled
136 The chart's border drop shadow. Set to true to enable drop shadow.
136 The chart's border drop shadow. Set to true to enable drop shadow.
137 */
137 */
138
138
139 /*!
139 /*!
140 \qmlproperty rect ChartView::plotArea
140 \qmlproperty rect ChartView::plotArea
141 The area on the ChartView that is used for drawing series. This is the ChartView rect without the
141 The area on the ChartView that is used for drawing series. This is the ChartView rect without the
142 margins.
142 margins.
143 \sa ChartView::margins
143 \sa ChartView::margins
144 */
144 */
145
145
146 /*!
146 /*!
147 \qmlproperty Margins ChartView::margins
147 \qmlproperty Margins ChartView::margins
148 The minimum margins allowed between the outer bounds and the plotArea of the ChartView. Margins
148 The minimum margins allowed between the outer bounds and the plotArea of the ChartView. Margins
149 area of ChartView is used for drawing title, axes and legend.
149 area of ChartView is used for drawing title, axes and legend.
150 */
150 */
151
151
152 /*!
152 /*!
153 \qmlproperty bool ChartView::localizeNumbers
153 \qmlproperty bool ChartView::localizeNumbers
154 \since QtCharts 2.0
154 \since QtCharts 2.0
155 When \c{true}, all generated numbers appearing in various series and axis labels will be
155 When \c{true}, all generated numbers appearing in various series and axis labels will be
156 localized using the default QLocale of the application, which defaults to the system locale.
156 localized using the default QLocale of the application, which defaults to the system locale.
157 When \c{false}, the "C" locale is always used.
157 When \c{false}, the "C" locale is always used.
158 Defaults to \c{false}.
158 Defaults to \c{false}.
159
159
160 \sa locale
160 \sa locale
161 */
161 */
162
162
163 /*!
163 /*!
164 \qmlproperty locale ChartView::locale
164 \qmlproperty locale ChartView::locale
165 \since QtCharts 2.0
165 \since QtCharts 2.0
166 Sets the locale used to format various chart labels when localizeNumbers is \c{true}.
166 Sets the locale used to format various chart labels when localizeNumbers is \c{true}.
167 This also determines the locale used to format DateTimeAxis labels regardless of
167 This also determines the locale used to format DateTimeAxis labels regardless of
168 localizeNumbers property.
168 localizeNumbers property.
169 Defaults to application default locale at the time the chart is constructed.
169 Defaults to application default locale at the time the chart is constructed.
170
170
171 \sa localizeNumbers
171 \sa localizeNumbers
172 */
172 */
173
173
174 /*!
174 /*!
175 \qmlmethod AbstractSeries ChartView::series(int index)
175 \qmlmethod AbstractSeries ChartView::series(int index)
176 Returns the series with \a index on the chart. This allows you to loop through the series of a chart together with
176 Returns the series with \a index on the chart. This allows you to loop through the series of a chart together with
177 the count property of the chart.
177 the count property of the chart.
178 */
178 */
179
179
180 /*!
180 /*!
181 \qmlmethod AbstractSeries ChartView::series(string name)
181 \qmlmethod AbstractSeries ChartView::series(string name)
182 Returns the first series on the chart with \a name. If there is no series with that name, returns null.
182 Returns the first series on the chart with \a name. If there is no series with that name, returns null.
183 */
183 */
184
184
185 /*!
185 /*!
186 \qmlmethod AbstractSeries ChartView::createSeries(SeriesType type, string name, AbstractAxis axisX, AbstractAxis axisY)
186 \qmlmethod AbstractSeries ChartView::createSeries(SeriesType type, string name, AbstractAxis axisX, AbstractAxis axisY)
187 Creates a series object of \a type to the chart with name \a name, optional axis \a axisX and
187 Creates a series object of \a type to the chart with name \a name, optional axis \a axisX and
188 optional axis \a axisY. For example:
188 optional axis \a axisY. For example:
189 \code
189 \code
190 // lineSeries is a LineSeries object that has already been added to the ChartView; re-use it's axes
190 // lineSeries is a LineSeries object that has already been added to the ChartView; re-use it's axes
191 var myAxisX = chartView.axisX(lineSeries);
191 var myAxisX = chartView.axisX(lineSeries);
192 var myAxisY = chartView.axisY(lineSeries);
192 var myAxisY = chartView.axisY(lineSeries);
193 var scatter = chartView.createSeries(ChartView.SeriesTypeScatter, "scatter series", myAxisX, myAxisY);
193 var scatter = chartView.createSeries(ChartView.SeriesTypeScatter, "scatter series", myAxisX, myAxisY);
194 \endcode
194 \endcode
195 */
195 */
196
196
197 /*!
197 /*!
198 \qmlmethod ChartView::removeSeries(AbstractSeries series)
198 \qmlmethod ChartView::removeSeries(AbstractSeries series)
199 Removes the \a series from the chart. The series object is also destroyed.
199 Removes the \a series from the chart. The series object is also destroyed.
200 */
200 */
201
201
202 /*!
202 /*!
203 \qmlmethod ChartView::removeAllSeries()
203 \qmlmethod ChartView::removeAllSeries()
204 Removes all series from the chart. All the series objects are also destroyed.
204 Removes all series from the chart. All the series objects are also destroyed.
205 */
205 */
206
206
207 /*!
207 /*!
208 \qmlmethod Axis ChartView::axisX(AbstractSeries series)
208 \qmlmethod Axis ChartView::axisX(AbstractSeries series)
209 The x-axis of the series.
209 The x-axis of the series.
210 */
210 */
211
211
212 /*!
212 /*!
213 \qmlmethod ChartView::setAxisX(AbstractAxis axis, AbstractSeries series)
213 \qmlmethod ChartView::setAxisX(AbstractAxis axis, AbstractSeries series)
214 Set the x-axis of the series.
214 Set the x-axis of the series.
215 */
215 */
216
216
217 /*!
217 /*!
218 \qmlmethod Axis ChartView::axisY(AbstractSeries series)
218 \qmlmethod Axis ChartView::axisY(AbstractSeries series)
219 The y-axis of the series.
219 The y-axis of the series.
220 */
220 */
221
221
222 /*!
222 /*!
223 \qmlmethod ChartView::setAxisY(AbstractAxis axis, AbstractSeries series)
223 \qmlmethod ChartView::setAxisY(AbstractAxis axis, AbstractSeries series)
224 Set the y-axis of the series.
224 Set the y-axis of the series.
225 */
225 */
226
226
227 /*!
227 /*!
228 \qmlmethod ChartView::zoom(real factor)
228 \qmlmethod ChartView::zoom(real factor)
229 Zooms in by \a factor on the center of the chart.
229 Zooms in by \a factor on the center of the chart.
230
231 A factor over 1.0 zooms the view in and factor between 0.0 and 1.0 zooms out.
232 */
233
234 /*!
235 \qmlmethod ChartView::zoomIn()
236 Zooms in the view by a factor of two.
237 */
238
239 /*!
240 \qmlmethod ChartView::zoomIn(rect rectangle)
241 Zooms in the view to a maximum level at which \a rectangle is still fully visible.
242 \note This is not supported for polar charts.
243 */
244
245 /*!
246 \qmlmethod ChartView::zoomOut()
247 Zooms out the view by a factor of two.
248 */
249
250 /*!
251 \qmlmethod ChartView::zoomReset()
252 Resets the series domains to what they were before any zoom method was called.
253 Note that this will also reset any scrolls and explicit axis range settings done between
254 the first zoom operation and calling this method. If no zoom operation has been
255 done, this method does nothing.
230 */
256 */
231
257
232 /*!
258 /*!
233 \qmlmethod ChartView::scrollLeft(real pixels)
259 \qmlmethod ChartView::scrollLeft(real pixels)
234 Scrolls to left by \a pixels. This is a convenience function that suits for example for key navigation.
260 Scrolls to left by \a pixels. This is a convenience function that suits for example for key navigation.
235 */
261 */
236
262
237 /*!
263 /*!
238 \qmlmethod ChartView::scrollRight(real pixels)
264 \qmlmethod ChartView::scrollRight(real pixels)
239 Scrolls to right by \a pixels. This is a convenience function that suits for example for key navigation.
265 Scrolls to right by \a pixels. This is a convenience function that suits for example for key navigation.
240 */
266 */
241
267
242 /*!
268 /*!
243 \qmlmethod ChartView::scrollUp(real pixels)
269 \qmlmethod ChartView::scrollUp(real pixels)
244 Scrolls up by \a pixels. This is a convenience function that suits for example for key navigation.
270 Scrolls up by \a pixels. This is a convenience function that suits for example for key navigation.
245 */
271 */
246
272
247 /*!
273 /*!
248 \qmlmethod ChartView::scrollDown(real pixels)
274 \qmlmethod ChartView::scrollDown(real pixels)
249 Scrolls down by \a pixels. This is a convenience function that suits for example for key navigation.
275 Scrolls down by \a pixels. This is a convenience function that suits for example for key navigation.
250 */
276 */
251
277
252 /*!
278 /*!
253 \qmlmethod point ChartView::mapToValue(point position, AbstractSeries series)
279 \qmlmethod point ChartView::mapToValue(point position, AbstractSeries series)
254 Returns the value in the \a series domain that corresponds to the \a position relative to the
280 Returns the value in the \a series domain that corresponds to the \a position relative to the
255 chart.
281 chart.
256 */
282 */
257
283
258 /*!
284 /*!
259 \qmlmethod point ChartView::mapToPosition(point value, AbstractSeries series)
285 \qmlmethod point ChartView::mapToPosition(point value, AbstractSeries series)
260 Returns the position on the chart that corresponds to the \a value in the \a series domain.
286 Returns the position on the chart that corresponds to the \a value in the \a series domain.
261 */
287 */
262
288
263 /*!
289 /*!
264 \qmlsignal ChartView::seriesAdded(AbstractSeries series)
290 \qmlsignal ChartView::seriesAdded(AbstractSeries series)
265 The \a series has been added to the chart.
291 The \a series has been added to the chart.
266 */
292 */
267
293
268 /*!
294 /*!
269 \qmlsignal ChartView::seriesRemoved(AbstractSeries series)
295 \qmlsignal ChartView::seriesRemoved(AbstractSeries series)
270 The \a series has been removed from the chart. Please note that \a series is no longer a valid
296 The \a series has been removed from the chart. Please note that \a series is no longer a valid
271 object after the signal handler has completed.
297 object after the signal handler has completed.
272 */
298 */
273
299
274 DeclarativeChart::DeclarativeChart(QQuickItem *parent)
300 DeclarativeChart::DeclarativeChart(QQuickItem *parent)
275 : QQuickPaintedItem(parent)
301 : QQuickPaintedItem(parent)
276 {
302 {
277 initChart(QChart::ChartTypeCartesian);
303 initChart(QChart::ChartTypeCartesian);
278 }
304 }
279
305
280 DeclarativeChart::DeclarativeChart(QChart::ChartType type, QQuickItem *parent)
306 DeclarativeChart::DeclarativeChart(QChart::ChartType type, QQuickItem *parent)
281 : QQuickPaintedItem(parent)
307 : QQuickPaintedItem(parent)
282 {
308 {
283 initChart(type);
309 initChart(type);
284 }
310 }
285
311
286 void DeclarativeChart::initChart(QChart::ChartType type)
312 void DeclarativeChart::initChart(QChart::ChartType type)
287 {
313 {
288 m_currentSceneImage = 0;
314 m_currentSceneImage = 0;
289 m_guiThreadId = QThread::currentThreadId();
315 m_guiThreadId = QThread::currentThreadId();
290 m_paintThreadId = 0;
316 m_paintThreadId = 0;
291 m_updatePending = false;
317 m_updatePending = false;
292
318
293 if (type == QChart::ChartTypePolar)
319 if (type == QChart::ChartTypePolar)
294 m_chart = new QPolarChart();
320 m_chart = new QPolarChart();
295 else
321 else
296 m_chart = new QChart();
322 m_chart = new QChart();
297
323
298 m_scene = new QGraphicsScene(this);
324 m_scene = new QGraphicsScene(this);
299 m_scene->addItem(m_chart);
325 m_scene->addItem(m_chart);
300
326
301 setAntialiasing(QQuickItem::antialiasing());
327 setAntialiasing(QQuickItem::antialiasing());
302 connect(m_scene, SIGNAL(changed(QList<QRectF>)), this, SLOT(sceneChanged(QList<QRectF>)));
328 connect(m_scene, SIGNAL(changed(QList<QRectF>)), this, SLOT(sceneChanged(QList<QRectF>)));
303 connect(this, SIGNAL(antialiasingChanged(bool)), this, SLOT(handleAntialiasingChanged(bool)));
329 connect(this, SIGNAL(antialiasingChanged(bool)), this, SLOT(handleAntialiasingChanged(bool)));
304
330
305 setAcceptedMouseButtons(Qt::AllButtons);
331 setAcceptedMouseButtons(Qt::AllButtons);
306 setAcceptHoverEvents(true);
332 setAcceptHoverEvents(true);
307
333
308 m_margins = new DeclarativeMargins(this);
334 m_margins = new DeclarativeMargins(this);
309 m_margins->setTop(m_chart->margins().top());
335 m_margins->setTop(m_chart->margins().top());
310 m_margins->setLeft(m_chart->margins().left());
336 m_margins->setLeft(m_chart->margins().left());
311 m_margins->setRight(m_chart->margins().right());
337 m_margins->setRight(m_chart->margins().right());
312 m_margins->setBottom(m_chart->margins().bottom());
338 m_margins->setBottom(m_chart->margins().bottom());
313 connect(m_margins, SIGNAL(topChanged(int,int,int,int)),
339 connect(m_margins, SIGNAL(topChanged(int,int,int,int)),
314 this, SLOT(changeMargins(int,int,int,int)));
340 this, SLOT(changeMargins(int,int,int,int)));
315 connect(m_margins, SIGNAL(bottomChanged(int,int,int,int)),
341 connect(m_margins, SIGNAL(bottomChanged(int,int,int,int)),
316 this, SLOT(changeMargins(int,int,int,int)));
342 this, SLOT(changeMargins(int,int,int,int)));
317 connect(m_margins, SIGNAL(leftChanged(int,int,int,int)),
343 connect(m_margins, SIGNAL(leftChanged(int,int,int,int)),
318 this, SLOT(changeMargins(int,int,int,int)));
344 this, SLOT(changeMargins(int,int,int,int)));
319 connect(m_margins, SIGNAL(rightChanged(int,int,int,int)),
345 connect(m_margins, SIGNAL(rightChanged(int,int,int,int)),
320 this, SLOT(changeMargins(int,int,int,int)));
346 this, SLOT(changeMargins(int,int,int,int)));
321 connect(m_chart->d_ptr->m_dataset, SIGNAL(seriesAdded(QAbstractSeries*)), this, SLOT(handleSeriesAdded(QAbstractSeries*)));
347 connect(m_chart->d_ptr->m_dataset, SIGNAL(seriesAdded(QAbstractSeries*)), this, SLOT(handleSeriesAdded(QAbstractSeries*)));
322 connect(m_chart->d_ptr->m_dataset, SIGNAL(seriesRemoved(QAbstractSeries*)), this, SIGNAL(seriesRemoved(QAbstractSeries*)));
348 connect(m_chart->d_ptr->m_dataset, SIGNAL(seriesRemoved(QAbstractSeries*)), this, SIGNAL(seriesRemoved(QAbstractSeries*)));
323 connect(m_chart, &QChart::plotAreaChanged, this, &DeclarativeChart::plotAreaChanged);
349 connect(m_chart, &QChart::plotAreaChanged, this, &DeclarativeChart::plotAreaChanged);
324 }
350 }
325
351
326 void DeclarativeChart::handleSeriesAdded(QAbstractSeries *series)
352 void DeclarativeChart::handleSeriesAdded(QAbstractSeries *series)
327 {
353 {
328 emit seriesAdded(series);
354 emit seriesAdded(series);
329 }
355 }
330
356
331 void DeclarativeChart::changeMargins(int top, int bottom, int left, int right)
357 void DeclarativeChart::changeMargins(int top, int bottom, int left, int right)
332 {
358 {
333 m_chart->setMargins(QMargins(left, top, right, bottom));
359 m_chart->setMargins(QMargins(left, top, right, bottom));
334 emit marginsChanged();
360 emit marginsChanged();
335 }
361 }
336
362
337 DeclarativeChart::~DeclarativeChart()
363 DeclarativeChart::~DeclarativeChart()
338 {
364 {
339 delete m_chart;
365 delete m_chart;
340 m_sceneImageLock.lock();
366 m_sceneImageLock.lock();
341 delete m_currentSceneImage;
367 delete m_currentSceneImage;
342 m_currentSceneImage = 0;
368 m_currentSceneImage = 0;
343 m_sceneImageLock.unlock();
369 m_sceneImageLock.unlock();
344 }
370 }
345
371
346 void DeclarativeChart::childEvent(QChildEvent *event)
372 void DeclarativeChart::childEvent(QChildEvent *event)
347 {
373 {
348 if (event->type() == QEvent::ChildAdded) {
374 if (event->type() == QEvent::ChildAdded) {
349 if (qobject_cast<QAbstractSeries *>(event->child())) {
375 if (qobject_cast<QAbstractSeries *>(event->child())) {
350 m_chart->addSeries(qobject_cast<QAbstractSeries *>(event->child()));
376 m_chart->addSeries(qobject_cast<QAbstractSeries *>(event->child()));
351 }
377 }
352 }
378 }
353 }
379 }
354
380
355 void DeclarativeChart::componentComplete()
381 void DeclarativeChart::componentComplete()
356 {
382 {
357 foreach (QObject *child, children()) {
383 foreach (QObject *child, children()) {
358 if (qobject_cast<QAbstractSeries *>(child)) {
384 if (qobject_cast<QAbstractSeries *>(child)) {
359 // Add series to the chart
385 // Add series to the chart
360 QAbstractSeries *series = qobject_cast<QAbstractSeries *>(child);
386 QAbstractSeries *series = qobject_cast<QAbstractSeries *>(child);
361 m_chart->addSeries(series);
387 m_chart->addSeries(series);
362
388
363 // Connect to axis changed signals (unless this is a pie series)
389 // Connect to axis changed signals (unless this is a pie series)
364 if (!qobject_cast<DeclarativePieSeries *>(series)) {
390 if (!qobject_cast<DeclarativePieSeries *>(series)) {
365 connect(series, SIGNAL(axisXChanged(QAbstractAxis*)), this, SLOT(handleAxisXSet(QAbstractAxis*)));
391 connect(series, SIGNAL(axisXChanged(QAbstractAxis*)), this, SLOT(handleAxisXSet(QAbstractAxis*)));
366 connect(series, SIGNAL(axisXTopChanged(QAbstractAxis*)), this, SLOT(handleAxisXTopSet(QAbstractAxis*)));
392 connect(series, SIGNAL(axisXTopChanged(QAbstractAxis*)), this, SLOT(handleAxisXTopSet(QAbstractAxis*)));
367 connect(series, SIGNAL(axisYChanged(QAbstractAxis*)), this, SLOT(handleAxisYSet(QAbstractAxis*)));
393 connect(series, SIGNAL(axisYChanged(QAbstractAxis*)), this, SLOT(handleAxisYSet(QAbstractAxis*)));
368 connect(series, SIGNAL(axisYRightChanged(QAbstractAxis*)), this, SLOT(handleAxisYRightSet(QAbstractAxis*)));
394 connect(series, SIGNAL(axisYRightChanged(QAbstractAxis*)), this, SLOT(handleAxisYRightSet(QAbstractAxis*)));
369 }
395 }
370
396
371 initializeAxes(series);
397 initializeAxes(series);
372 }
398 }
373 }
399 }
374
400
375 QQuickItem::componentComplete();
401 QQuickItem::componentComplete();
376 }
402 }
377
403
378 void DeclarativeChart::seriesAxisAttachHelper(QAbstractSeries *series, QAbstractAxis *axis,
404 void DeclarativeChart::seriesAxisAttachHelper(QAbstractSeries *series, QAbstractAxis *axis,
379 Qt::Orientations orientation,
405 Qt::Orientations orientation,
380 Qt::Alignment alignment)
406 Qt::Alignment alignment)
381 {
407 {
382 if (!series->attachedAxes().contains(axis)) {
408 if (!series->attachedAxes().contains(axis)) {
383 // Remove & delete old axes that are not attached to any other series
409 // Remove & delete old axes that are not attached to any other series
384 foreach (QAbstractAxis* oldAxis, m_chart->axes(orientation, series)) {
410 foreach (QAbstractAxis* oldAxis, m_chart->axes(orientation, series)) {
385 bool otherAttachments = false;
411 bool otherAttachments = false;
386 if (oldAxis != axis) {
412 if (oldAxis != axis) {
387 foreach (QAbstractSeries *oldSeries, m_chart->series()) {
413 foreach (QAbstractSeries *oldSeries, m_chart->series()) {
388 if (oldSeries != series && oldSeries->attachedAxes().contains(oldAxis)) {
414 if (oldSeries != series && oldSeries->attachedAxes().contains(oldAxis)) {
389 otherAttachments = true;
415 otherAttachments = true;
390 break;
416 break;
391 }
417 }
392 }
418 }
393 if (!otherAttachments) {
419 if (!otherAttachments) {
394 m_chart->removeAxis(oldAxis);
420 m_chart->removeAxis(oldAxis);
395 delete oldAxis;
421 delete oldAxis;
396 }
422 }
397 }
423 }
398 }
424 }
399 if (!m_chart->axes(orientation).contains(axis))
425 if (!m_chart->axes(orientation).contains(axis))
400 m_chart->addAxis(axis, alignment);
426 m_chart->addAxis(axis, alignment);
401
427
402 series->attachAxis(axis);
428 series->attachAxis(axis);
403 }
429 }
404 }
430 }
405
431
406 void DeclarativeChart::handleAxisXSet(QAbstractAxis *axis)
432 void DeclarativeChart::handleAxisXSet(QAbstractAxis *axis)
407 {
433 {
408 QAbstractSeries *s = qobject_cast<QAbstractSeries *>(sender());
434 QAbstractSeries *s = qobject_cast<QAbstractSeries *>(sender());
409 if (axis && s) {
435 if (axis && s) {
410 seriesAxisAttachHelper(s, axis, Qt::Horizontal, Qt::AlignBottom);
436 seriesAxisAttachHelper(s, axis, Qt::Horizontal, Qt::AlignBottom);
411 } else {
437 } else {
412 qWarning() << "Trying to set axisX to null.";
438 qWarning() << "Trying to set axisX to null.";
413 }
439 }
414 }
440 }
415
441
416 void DeclarativeChart::handleAxisXTopSet(QAbstractAxis *axis)
442 void DeclarativeChart::handleAxisXTopSet(QAbstractAxis *axis)
417 {
443 {
418 QAbstractSeries *s = qobject_cast<QAbstractSeries *>(sender());
444 QAbstractSeries *s = qobject_cast<QAbstractSeries *>(sender());
419 if (axis && s) {
445 if (axis && s) {
420 seriesAxisAttachHelper(s, axis, Qt::Horizontal, Qt::AlignTop);
446 seriesAxisAttachHelper(s, axis, Qt::Horizontal, Qt::AlignTop);
421 } else {
447 } else {
422 qWarning() << "Trying to set axisXTop to null.";
448 qWarning() << "Trying to set axisXTop to null.";
423 }
449 }
424 }
450 }
425
451
426 void DeclarativeChart::handleAxisYSet(QAbstractAxis *axis)
452 void DeclarativeChart::handleAxisYSet(QAbstractAxis *axis)
427 {
453 {
428 QAbstractSeries *s = qobject_cast<QAbstractSeries *>(sender());
454 QAbstractSeries *s = qobject_cast<QAbstractSeries *>(sender());
429 if (axis && s) {
455 if (axis && s) {
430 seriesAxisAttachHelper(s, axis, Qt::Vertical, Qt::AlignLeft);
456 seriesAxisAttachHelper(s, axis, Qt::Vertical, Qt::AlignLeft);
431 } else {
457 } else {
432 qWarning() << "Trying to set axisY to null.";
458 qWarning() << "Trying to set axisY to null.";
433 }
459 }
434 }
460 }
435
461
436 void DeclarativeChart::handleAxisYRightSet(QAbstractAxis *axis)
462 void DeclarativeChart::handleAxisYRightSet(QAbstractAxis *axis)
437 {
463 {
438 QAbstractSeries *s = qobject_cast<QAbstractSeries *>(sender());
464 QAbstractSeries *s = qobject_cast<QAbstractSeries *>(sender());
439 if (axis && s) {
465 if (axis && s) {
440 seriesAxisAttachHelper(s, axis, Qt::Vertical, Qt::AlignRight);
466 seriesAxisAttachHelper(s, axis, Qt::Vertical, Qt::AlignRight);
441 } else {
467 } else {
442 qWarning() << "Trying to set axisYRight to null.";
468 qWarning() << "Trying to set axisYRight to null.";
443 }
469 }
444 }
470 }
445
471
446 void DeclarativeChart::geometryChanged(const QRectF &newGeometry, const QRectF &oldGeometry)
472 void DeclarativeChart::geometryChanged(const QRectF &newGeometry, const QRectF &oldGeometry)
447 {
473 {
448 if (newGeometry.isValid()) {
474 if (newGeometry.isValid()) {
449 if (newGeometry.width() > 0 && newGeometry.height() > 0) {
475 if (newGeometry.width() > 0 && newGeometry.height() > 0) {
450 m_chart->resize(newGeometry.width(), newGeometry.height());
476 m_chart->resize(newGeometry.width(), newGeometry.height());
451 }
477 }
452 }
478 }
453 QQuickItem::geometryChanged(newGeometry, oldGeometry);
479 QQuickItem::geometryChanged(newGeometry, oldGeometry);
454 }
480 }
455
481
456 void DeclarativeChart::sceneChanged(QList<QRectF> region)
482 void DeclarativeChart::sceneChanged(QList<QRectF> region)
457 {
483 {
458 Q_UNUSED(region);
484 Q_UNUSED(region);
459
485
460 if (m_guiThreadId == m_paintThreadId) {
486 if (m_guiThreadId == m_paintThreadId) {
461 // Rendering in gui thread, no need for shenannigans, just update
487 // Rendering in gui thread, no need for shenannigans, just update
462 update();
488 update();
463 } else {
489 } else {
464 // Multi-threaded rendering, need to ensure scene is actually rendered in gui thread
490 // Multi-threaded rendering, need to ensure scene is actually rendered in gui thread
465 if (!m_updatePending) {
491 if (!m_updatePending) {
466 m_updatePending = true;
492 m_updatePending = true;
467 // Do async render to avoid some unnecessary renders.
493 // Do async render to avoid some unnecessary renders.
468 QTimer::singleShot(0, this, SLOT(renderScene()));
494 QTimer::singleShot(0, this, SLOT(renderScene()));
469 }
495 }
470 }
496 }
471 }
497 }
472
498
473 void DeclarativeChart::renderScene()
499 void DeclarativeChart::renderScene()
474 {
500 {
475 m_updatePending = false;
501 m_updatePending = false;
476 m_sceneImageLock.lock();
502 m_sceneImageLock.lock();
477 delete m_currentSceneImage;
503 delete m_currentSceneImage;
478 m_currentSceneImage = new QImage(m_chart->size().toSize(), QImage::Format_ARGB32);
504 m_currentSceneImage = new QImage(m_chart->size().toSize(), QImage::Format_ARGB32);
479 m_currentSceneImage->fill(Qt::transparent);
505 m_currentSceneImage->fill(Qt::transparent);
480 QPainter painter(m_currentSceneImage);
506 QPainter painter(m_currentSceneImage);
481 if (antialiasing())
507 if (antialiasing())
482 painter.setRenderHints(QPainter::Antialiasing | QPainter::TextAntialiasing | QPainter::SmoothPixmapTransform);
508 painter.setRenderHints(QPainter::Antialiasing | QPainter::TextAntialiasing | QPainter::SmoothPixmapTransform);
483 QRect renderRect(QPoint(0, 0), m_chart->size().toSize());
509 QRect renderRect(QPoint(0, 0), m_chart->size().toSize());
484 m_scene->render(&painter, renderRect, renderRect);
510 m_scene->render(&painter, renderRect, renderRect);
485 m_sceneImageLock.unlock();
511 m_sceneImageLock.unlock();
486
512
487 update();
513 update();
488 }
514 }
489
515
490 void DeclarativeChart::paint(QPainter *painter)
516 void DeclarativeChart::paint(QPainter *painter)
491 {
517 {
492 if (!m_paintThreadId) {
518 if (!m_paintThreadId) {
493 m_paintThreadId = QThread::currentThreadId();
519 m_paintThreadId = QThread::currentThreadId();
494 if (m_guiThreadId == m_paintThreadId) {
520 if (m_guiThreadId == m_paintThreadId) {
495 // No need for scene image in single threaded rendering, so delete
521 // No need for scene image in single threaded rendering, so delete
496 // the one that got made by default before the rendering type was
522 // the one that got made by default before the rendering type was
497 // detected.
523 // detected.
498 delete m_currentSceneImage;
524 delete m_currentSceneImage;
499 m_currentSceneImage = 0;
525 m_currentSceneImage = 0;
500 }
526 }
501 }
527 }
502
528
503 if (m_guiThreadId == m_paintThreadId) {
529 if (m_guiThreadId == m_paintThreadId) {
504 QRectF renderRect(QPointF(0, 0), m_chart->size());
530 QRectF renderRect(QPointF(0, 0), m_chart->size());
505 m_scene->render(painter, renderRect, renderRect);
531 m_scene->render(painter, renderRect, renderRect);
506 } else {
532 } else {
507 m_sceneImageLock.lock();
533 m_sceneImageLock.lock();
508 if (m_currentSceneImage) {
534 if (m_currentSceneImage) {
509 QRect imageRect(QPoint(0, 0), m_currentSceneImage->size());
535 QRect imageRect(QPoint(0, 0), m_currentSceneImage->size());
510 QRect itemRect(QPoint(0, 0), QSize(width(), height()));
536 QRect itemRect(QPoint(0, 0), QSize(width(), height()));
511 painter->drawImage(itemRect, *m_currentSceneImage, imageRect);
537 painter->drawImage(itemRect, *m_currentSceneImage, imageRect);
512 }
538 }
513 m_sceneImageLock.unlock();
539 m_sceneImageLock.unlock();
514 }
540 }
515 }
541 }
516
542
517 void DeclarativeChart::mousePressEvent(QMouseEvent *event)
543 void DeclarativeChart::mousePressEvent(QMouseEvent *event)
518 {
544 {
519 m_mousePressScenePoint = event->pos();
545 m_mousePressScenePoint = event->pos();
520 m_mousePressScreenPoint = event->globalPos();
546 m_mousePressScreenPoint = event->globalPos();
521 m_lastMouseMoveScenePoint = m_mousePressScenePoint;
547 m_lastMouseMoveScenePoint = m_mousePressScenePoint;
522 m_lastMouseMoveScreenPoint = m_mousePressScreenPoint;
548 m_lastMouseMoveScreenPoint = m_mousePressScreenPoint;
523 m_mousePressButton = event->button();
549 m_mousePressButton = event->button();
524 m_mousePressButtons = event->buttons();
550 m_mousePressButtons = event->buttons();
525
551
526 QGraphicsSceneMouseEvent mouseEvent(QEvent::GraphicsSceneMousePress);
552 QGraphicsSceneMouseEvent mouseEvent(QEvent::GraphicsSceneMousePress);
527 mouseEvent.setWidget(0);
553 mouseEvent.setWidget(0);
528 mouseEvent.setButtonDownScenePos(m_mousePressButton, m_mousePressScenePoint);
554 mouseEvent.setButtonDownScenePos(m_mousePressButton, m_mousePressScenePoint);
529 mouseEvent.setButtonDownScreenPos(m_mousePressButton, m_mousePressScreenPoint);
555 mouseEvent.setButtonDownScreenPos(m_mousePressButton, m_mousePressScreenPoint);
530 mouseEvent.setScenePos(m_mousePressScenePoint);
556 mouseEvent.setScenePos(m_mousePressScenePoint);
531 mouseEvent.setScreenPos(m_mousePressScreenPoint);
557 mouseEvent.setScreenPos(m_mousePressScreenPoint);
532 mouseEvent.setLastScenePos(m_lastMouseMoveScenePoint);
558 mouseEvent.setLastScenePos(m_lastMouseMoveScenePoint);
533 mouseEvent.setLastScreenPos(m_lastMouseMoveScreenPoint);
559 mouseEvent.setLastScreenPos(m_lastMouseMoveScreenPoint);
534 mouseEvent.setButtons(m_mousePressButtons);
560 mouseEvent.setButtons(m_mousePressButtons);
535 mouseEvent.setButton(m_mousePressButton);
561 mouseEvent.setButton(m_mousePressButton);
536 mouseEvent.setModifiers(event->modifiers());
562 mouseEvent.setModifiers(event->modifiers());
537 mouseEvent.setAccepted(false);
563 mouseEvent.setAccepted(false);
538
564
539 QApplication::sendEvent(m_scene, &mouseEvent);
565 QApplication::sendEvent(m_scene, &mouseEvent);
540 }
566 }
541
567
542 void DeclarativeChart::mouseReleaseEvent(QMouseEvent *event)
568 void DeclarativeChart::mouseReleaseEvent(QMouseEvent *event)
543 {
569 {
544 QGraphicsSceneMouseEvent mouseEvent(QEvent::GraphicsSceneMouseRelease);
570 QGraphicsSceneMouseEvent mouseEvent(QEvent::GraphicsSceneMouseRelease);
545 mouseEvent.setWidget(0);
571 mouseEvent.setWidget(0);
546 mouseEvent.setButtonDownScenePos(m_mousePressButton, m_mousePressScenePoint);
572 mouseEvent.setButtonDownScenePos(m_mousePressButton, m_mousePressScenePoint);
547 mouseEvent.setButtonDownScreenPos(m_mousePressButton, m_mousePressScreenPoint);
573 mouseEvent.setButtonDownScreenPos(m_mousePressButton, m_mousePressScreenPoint);
548 mouseEvent.setScenePos(event->pos());
574 mouseEvent.setScenePos(event->pos());
549 mouseEvent.setScreenPos(event->globalPos());
575 mouseEvent.setScreenPos(event->globalPos());
550 mouseEvent.setLastScenePos(m_lastMouseMoveScenePoint);
576 mouseEvent.setLastScenePos(m_lastMouseMoveScenePoint);
551 mouseEvent.setLastScreenPos(m_lastMouseMoveScreenPoint);
577 mouseEvent.setLastScreenPos(m_lastMouseMoveScreenPoint);
552 mouseEvent.setButtons(event->buttons());
578 mouseEvent.setButtons(event->buttons());
553 mouseEvent.setButton(event->button());
579 mouseEvent.setButton(event->button());
554 mouseEvent.setModifiers(event->modifiers());
580 mouseEvent.setModifiers(event->modifiers());
555 mouseEvent.setAccepted(false);
581 mouseEvent.setAccepted(false);
556
582
557 QApplication::sendEvent(m_scene, &mouseEvent);
583 QApplication::sendEvent(m_scene, &mouseEvent);
558
584
559 m_mousePressButtons = event->buttons();
585 m_mousePressButtons = event->buttons();
560 m_mousePressButton = Qt::NoButton;
586 m_mousePressButton = Qt::NoButton;
561 }
587 }
562
588
563 void DeclarativeChart::hoverMoveEvent(QHoverEvent *event)
589 void DeclarativeChart::hoverMoveEvent(QHoverEvent *event)
564 {
590 {
565 // Convert hover move to mouse move, since we don't seem to get actual mouse move events.
591 // Convert hover move to mouse move, since we don't seem to get actual mouse move events.
566 // QGraphicsScene generates hover events from mouse move events, so we don't need
592 // QGraphicsScene generates hover events from mouse move events, so we don't need
567 // to pass hover events there.
593 // to pass hover events there.
568 QGraphicsSceneMouseEvent mouseEvent(QEvent::GraphicsSceneMouseMove);
594 QGraphicsSceneMouseEvent mouseEvent(QEvent::GraphicsSceneMouseMove);
569 mouseEvent.setWidget(0);
595 mouseEvent.setWidget(0);
570 mouseEvent.setButtonDownScenePos(m_mousePressButton, m_mousePressScenePoint);
596 mouseEvent.setButtonDownScenePos(m_mousePressButton, m_mousePressScenePoint);
571 mouseEvent.setButtonDownScreenPos(m_mousePressButton, m_mousePressScreenPoint);
597 mouseEvent.setButtonDownScreenPos(m_mousePressButton, m_mousePressScreenPoint);
572 mouseEvent.setScenePos(event->pos());
598 mouseEvent.setScenePos(event->pos());
573 // Hover events do not have global pos in them, and the screen position doesn't seem to
599 // Hover events do not have global pos in them, and the screen position doesn't seem to
574 // matter anyway in this use case, so just pass event pos instead of trying to
600 // matter anyway in this use case, so just pass event pos instead of trying to
575 // calculate the real screen position.
601 // calculate the real screen position.
576 mouseEvent.setScreenPos(event->pos());
602 mouseEvent.setScreenPos(event->pos());
577 mouseEvent.setLastScenePos(m_lastMouseMoveScenePoint);
603 mouseEvent.setLastScenePos(m_lastMouseMoveScenePoint);
578 mouseEvent.setLastScreenPos(m_lastMouseMoveScreenPoint);
604 mouseEvent.setLastScreenPos(m_lastMouseMoveScreenPoint);
579 mouseEvent.setButtons(m_mousePressButtons);
605 mouseEvent.setButtons(m_mousePressButtons);
580 mouseEvent.setButton(m_mousePressButton);
606 mouseEvent.setButton(m_mousePressButton);
581 mouseEvent.setModifiers(event->modifiers());
607 mouseEvent.setModifiers(event->modifiers());
582 m_lastMouseMoveScenePoint = mouseEvent.scenePos();
608 m_lastMouseMoveScenePoint = mouseEvent.scenePos();
583 m_lastMouseMoveScreenPoint = mouseEvent.screenPos();
609 m_lastMouseMoveScreenPoint = mouseEvent.screenPos();
584 mouseEvent.setAccepted(false);
610 mouseEvent.setAccepted(false);
585
611
586 QApplication::sendEvent(m_scene, &mouseEvent);
612 QApplication::sendEvent(m_scene, &mouseEvent);
587 }
613 }
588
614
589 void DeclarativeChart::mouseDoubleClickEvent(QMouseEvent *event)
615 void DeclarativeChart::mouseDoubleClickEvent(QMouseEvent *event)
590 {
616 {
591 m_mousePressScenePoint = event->pos();
617 m_mousePressScenePoint = event->pos();
592 m_mousePressScreenPoint = event->globalPos();
618 m_mousePressScreenPoint = event->globalPos();
593 m_lastMouseMoveScenePoint = m_mousePressScenePoint;
619 m_lastMouseMoveScenePoint = m_mousePressScenePoint;
594 m_lastMouseMoveScreenPoint = m_mousePressScreenPoint;
620 m_lastMouseMoveScreenPoint = m_mousePressScreenPoint;
595 m_mousePressButton = event->button();
621 m_mousePressButton = event->button();
596 m_mousePressButtons = event->buttons();
622 m_mousePressButtons = event->buttons();
597
623
598 QGraphicsSceneMouseEvent mouseEvent(QEvent::GraphicsSceneMouseDoubleClick);
624 QGraphicsSceneMouseEvent mouseEvent(QEvent::GraphicsSceneMouseDoubleClick);
599 mouseEvent.setWidget(0);
625 mouseEvent.setWidget(0);
600 mouseEvent.setButtonDownScenePos(m_mousePressButton, m_mousePressScenePoint);
626 mouseEvent.setButtonDownScenePos(m_mousePressButton, m_mousePressScenePoint);
601 mouseEvent.setButtonDownScreenPos(m_mousePressButton, m_mousePressScreenPoint);
627 mouseEvent.setButtonDownScreenPos(m_mousePressButton, m_mousePressScreenPoint);
602 mouseEvent.setScenePos(m_mousePressScenePoint);
628 mouseEvent.setScenePos(m_mousePressScenePoint);
603 mouseEvent.setScreenPos(m_mousePressScreenPoint);
629 mouseEvent.setScreenPos(m_mousePressScreenPoint);
604 mouseEvent.setLastScenePos(m_lastMouseMoveScenePoint);
630 mouseEvent.setLastScenePos(m_lastMouseMoveScenePoint);
605 mouseEvent.setLastScreenPos(m_lastMouseMoveScreenPoint);
631 mouseEvent.setLastScreenPos(m_lastMouseMoveScreenPoint);
606 mouseEvent.setButtons(m_mousePressButtons);
632 mouseEvent.setButtons(m_mousePressButtons);
607 mouseEvent.setButton(m_mousePressButton);
633 mouseEvent.setButton(m_mousePressButton);
608 mouseEvent.setModifiers(event->modifiers());
634 mouseEvent.setModifiers(event->modifiers());
609 mouseEvent.setAccepted(false);
635 mouseEvent.setAccepted(false);
610
636
611 QApplication::sendEvent(m_scene, &mouseEvent);
637 QApplication::sendEvent(m_scene, &mouseEvent);
612 }
638 }
613
639
614 void DeclarativeChart::handleAntialiasingChanged(bool enable)
640 void DeclarativeChart::handleAntialiasingChanged(bool enable)
615 {
641 {
616 setAntialiasing(enable);
642 setAntialiasing(enable);
617 }
643 }
618
644
619 void DeclarativeChart::setTheme(DeclarativeChart::Theme theme)
645 void DeclarativeChart::setTheme(DeclarativeChart::Theme theme)
620 {
646 {
621 QChart::ChartTheme chartTheme = (QChart::ChartTheme) theme;
647 QChart::ChartTheme chartTheme = (QChart::ChartTheme) theme;
622 if (chartTheme != m_chart->theme())
648 if (chartTheme != m_chart->theme())
623 m_chart->setTheme(chartTheme);
649 m_chart->setTheme(chartTheme);
624 }
650 }
625
651
626 DeclarativeChart::Theme DeclarativeChart::theme()
652 DeclarativeChart::Theme DeclarativeChart::theme()
627 {
653 {
628 return (DeclarativeChart::Theme) m_chart->theme();
654 return (DeclarativeChart::Theme) m_chart->theme();
629 }
655 }
630
656
631 void DeclarativeChart::setAnimationOptions(DeclarativeChart::Animation animations)
657 void DeclarativeChart::setAnimationOptions(DeclarativeChart::Animation animations)
632 {
658 {
633 QChart::AnimationOption animationOptions = (QChart::AnimationOption) animations;
659 QChart::AnimationOption animationOptions = (QChart::AnimationOption) animations;
634 if (animationOptions != m_chart->animationOptions())
660 if (animationOptions != m_chart->animationOptions())
635 m_chart->setAnimationOptions(animationOptions);
661 m_chart->setAnimationOptions(animationOptions);
636 }
662 }
637
663
638 DeclarativeChart::Animation DeclarativeChart::animationOptions()
664 DeclarativeChart::Animation DeclarativeChart::animationOptions()
639 {
665 {
640 if (m_chart->animationOptions().testFlag(QChart::AllAnimations))
666 if (m_chart->animationOptions().testFlag(QChart::AllAnimations))
641 return DeclarativeChart::AllAnimations;
667 return DeclarativeChart::AllAnimations;
642 else if (m_chart->animationOptions().testFlag(QChart::GridAxisAnimations))
668 else if (m_chart->animationOptions().testFlag(QChart::GridAxisAnimations))
643 return DeclarativeChart::GridAxisAnimations;
669 return DeclarativeChart::GridAxisAnimations;
644 else if (m_chart->animationOptions().testFlag(QChart::SeriesAnimations))
670 else if (m_chart->animationOptions().testFlag(QChart::SeriesAnimations))
645 return DeclarativeChart::SeriesAnimations;
671 return DeclarativeChart::SeriesAnimations;
646 else
672 else
647 return DeclarativeChart::NoAnimation;
673 return DeclarativeChart::NoAnimation;
648 }
674 }
649
675
650 void DeclarativeChart::setTitle(QString title)
676 void DeclarativeChart::setTitle(QString title)
651 {
677 {
652 if (title != m_chart->title())
678 if (title != m_chart->title())
653 m_chart->setTitle(title);
679 m_chart->setTitle(title);
654 }
680 }
655 QString DeclarativeChart::title()
681 QString DeclarativeChart::title()
656 {
682 {
657 return m_chart->title();
683 return m_chart->title();
658 }
684 }
659
685
660 QAbstractAxis *DeclarativeChart::axisX(QAbstractSeries *series)
686 QAbstractAxis *DeclarativeChart::axisX(QAbstractSeries *series)
661 {
687 {
662 QList<QAbstractAxis *> axes = m_chart->axes(Qt::Horizontal, series);
688 QList<QAbstractAxis *> axes = m_chart->axes(Qt::Horizontal, series);
663 if (axes.count())
689 if (axes.count())
664 return axes[0];
690 return axes[0];
665 return 0;
691 return 0;
666 }
692 }
667
693
668 QAbstractAxis *DeclarativeChart::axisY(QAbstractSeries *series)
694 QAbstractAxis *DeclarativeChart::axisY(QAbstractSeries *series)
669 {
695 {
670 QList<QAbstractAxis *> axes = m_chart->axes(Qt::Vertical, series);
696 QList<QAbstractAxis *> axes = m_chart->axes(Qt::Vertical, series);
671 if (axes.count())
697 if (axes.count())
672 return axes[0];
698 return axes[0];
673 return 0;
699 return 0;
674 }
700 }
675
701
676 QLegend *DeclarativeChart::legend()
702 QLegend *DeclarativeChart::legend()
677 {
703 {
678 return m_chart->legend();
704 return m_chart->legend();
679 }
705 }
680
706
681 void DeclarativeChart::setTitleColor(QColor color)
707 void DeclarativeChart::setTitleColor(QColor color)
682 {
708 {
683 QBrush b = m_chart->titleBrush();
709 QBrush b = m_chart->titleBrush();
684 if (color != b.color()) {
710 if (color != b.color()) {
685 b.setColor(color);
711 b.setColor(color);
686 m_chart->setTitleBrush(b);
712 m_chart->setTitleBrush(b);
687 emit titleColorChanged(color);
713 emit titleColorChanged(color);
688 }
714 }
689 }
715 }
690
716
691 QFont DeclarativeChart::titleFont() const
717 QFont DeclarativeChart::titleFont() const
692 {
718 {
693 return m_chart->titleFont();
719 return m_chart->titleFont();
694 }
720 }
695
721
696 void DeclarativeChart::setTitleFont(const QFont &font)
722 void DeclarativeChart::setTitleFont(const QFont &font)
697 {
723 {
698 m_chart->setTitleFont(font);
724 m_chart->setTitleFont(font);
699 }
725 }
700
726
701 QColor DeclarativeChart::titleColor()
727 QColor DeclarativeChart::titleColor()
702 {
728 {
703 return m_chart->titleBrush().color();
729 return m_chart->titleBrush().color();
704 }
730 }
705
731
706 void DeclarativeChart::setBackgroundColor(QColor color)
732 void DeclarativeChart::setBackgroundColor(QColor color)
707 {
733 {
708 QBrush b = m_chart->backgroundBrush();
734 QBrush b = m_chart->backgroundBrush();
709 if (b.style() != Qt::SolidPattern || color != b.color()) {
735 if (b.style() != Qt::SolidPattern || color != b.color()) {
710 b.setStyle(Qt::SolidPattern);
736 b.setStyle(Qt::SolidPattern);
711 b.setColor(color);
737 b.setColor(color);
712 m_chart->setBackgroundBrush(b);
738 m_chart->setBackgroundBrush(b);
713 emit backgroundColorChanged();
739 emit backgroundColorChanged();
714 }
740 }
715 }
741 }
716
742
717 QColor DeclarativeChart::backgroundColor()
743 QColor DeclarativeChart::backgroundColor()
718 {
744 {
719 return m_chart->backgroundBrush().color();
745 return m_chart->backgroundBrush().color();
720 }
746 }
721
747
722 void QtCharts::DeclarativeChart::setPlotAreaColor(QColor color)
748 void QtCharts::DeclarativeChart::setPlotAreaColor(QColor color)
723 {
749 {
724 QBrush b = m_chart->plotAreaBackgroundBrush();
750 QBrush b = m_chart->plotAreaBackgroundBrush();
725 if (b.style() != Qt::SolidPattern || color != b.color()) {
751 if (b.style() != Qt::SolidPattern || color != b.color()) {
726 b.setStyle(Qt::SolidPattern);
752 b.setStyle(Qt::SolidPattern);
727 b.setColor(color);
753 b.setColor(color);
728 m_chart->setPlotAreaBackgroundBrush(b);
754 m_chart->setPlotAreaBackgroundBrush(b);
729 m_chart->setPlotAreaBackgroundVisible(true);
755 m_chart->setPlotAreaBackgroundVisible(true);
730 emit plotAreaColorChanged();
756 emit plotAreaColorChanged();
731 }
757 }
732 }
758 }
733
759
734 QColor QtCharts::DeclarativeChart::plotAreaColor()
760 QColor QtCharts::DeclarativeChart::plotAreaColor()
735 {
761 {
736 return m_chart->plotAreaBackgroundBrush().color();
762 return m_chart->plotAreaBackgroundBrush().color();
737 }
763 }
738
764
739 void DeclarativeChart::setLocalizeNumbers(bool localize)
765 void DeclarativeChart::setLocalizeNumbers(bool localize)
740 {
766 {
741 if (m_chart->localizeNumbers() != localize) {
767 if (m_chart->localizeNumbers() != localize) {
742 m_chart->setLocalizeNumbers(localize);
768 m_chart->setLocalizeNumbers(localize);
743 emit localizeNumbersChanged();
769 emit localizeNumbersChanged();
744 }
770 }
745 }
771 }
746
772
747 bool DeclarativeChart::localizeNumbers() const
773 bool DeclarativeChart::localizeNumbers() const
748 {
774 {
749 return m_chart->localizeNumbers();
775 return m_chart->localizeNumbers();
750 }
776 }
751
777
752 void QtCharts::DeclarativeChart::setLocale(const QLocale &locale)
778 void QtCharts::DeclarativeChart::setLocale(const QLocale &locale)
753 {
779 {
754 if (m_chart->locale() != locale) {
780 if (m_chart->locale() != locale) {
755 m_chart->setLocale(locale);
781 m_chart->setLocale(locale);
756 emit localeChanged();
782 emit localeChanged();
757 }
783 }
758 }
784 }
759
785
760 QLocale QtCharts::DeclarativeChart::locale() const
786 QLocale QtCharts::DeclarativeChart::locale() const
761 {
787 {
762 return m_chart->locale();
788 return m_chart->locale();
763 }
789 }
764
790
765 int DeclarativeChart::count()
791 int DeclarativeChart::count()
766 {
792 {
767 return m_chart->series().count();
793 return m_chart->series().count();
768 }
794 }
769
795
770 void DeclarativeChart::setDropShadowEnabled(bool enabled)
796 void DeclarativeChart::setDropShadowEnabled(bool enabled)
771 {
797 {
772 if (enabled != m_chart->isDropShadowEnabled()) {
798 if (enabled != m_chart->isDropShadowEnabled()) {
773 m_chart->setDropShadowEnabled(enabled);
799 m_chart->setDropShadowEnabled(enabled);
774 dropShadowEnabledChanged(enabled);
800 dropShadowEnabledChanged(enabled);
775 }
801 }
776 }
802 }
777
803
778 bool DeclarativeChart::dropShadowEnabled()
804 bool DeclarativeChart::dropShadowEnabled()
779 {
805 {
780 return m_chart->isDropShadowEnabled();
806 return m_chart->isDropShadowEnabled();
781 }
807 }
782
808
783 qreal DeclarativeChart::backgroundRoundness() const
809 qreal DeclarativeChart::backgroundRoundness() const
784 {
810 {
785 return m_chart->backgroundRoundness();
811 return m_chart->backgroundRoundness();
786 }
812 }
787
813
788 void DeclarativeChart::setBackgroundRoundness(qreal diameter)
814 void DeclarativeChart::setBackgroundRoundness(qreal diameter)
789 {
815 {
790 if (m_chart->backgroundRoundness() != diameter) {
816 if (m_chart->backgroundRoundness() != diameter) {
791 m_chart->setBackgroundRoundness(diameter);
817 m_chart->setBackgroundRoundness(diameter);
792 emit backgroundRoundnessChanged(diameter);
818 emit backgroundRoundnessChanged(diameter);
793 }
819 }
794 }
820 }
795
821
796 void DeclarativeChart::zoom(qreal factor)
822 void DeclarativeChart::zoom(qreal factor)
797 {
823 {
798 m_chart->zoom(factor);
824 m_chart->zoom(factor);
799 }
825 }
800
826
827 void DeclarativeChart::zoomIn()
828 {
829 m_chart->zoomIn();
830 }
831
832 void DeclarativeChart::zoomIn(const QRectF &rectangle)
833 {
834 m_chart->zoomIn(rectangle);
835 }
836
837 void DeclarativeChart::zoomOut()
838 {
839 m_chart->zoomOut();
840 }
841
842 void DeclarativeChart::zoomReset()
843 {
844 m_chart->zoomReset();
845 }
846
801 void DeclarativeChart::scrollLeft(qreal pixels)
847 void DeclarativeChart::scrollLeft(qreal pixels)
802 {
848 {
803 m_chart->scroll(-pixels, 0);
849 m_chart->scroll(-pixels, 0);
804 }
850 }
805
851
806 void DeclarativeChart::scrollRight(qreal pixels)
852 void DeclarativeChart::scrollRight(qreal pixels)
807 {
853 {
808 m_chart->scroll(pixels, 0);
854 m_chart->scroll(pixels, 0);
809 }
855 }
810
856
811 void DeclarativeChart::scrollUp(qreal pixels)
857 void DeclarativeChart::scrollUp(qreal pixels)
812 {
858 {
813 m_chart->scroll(0, pixels);
859 m_chart->scroll(0, pixels);
814 }
860 }
815
861
816 void DeclarativeChart::scrollDown(qreal pixels)
862 void DeclarativeChart::scrollDown(qreal pixels)
817 {
863 {
818 m_chart->scroll(0, -pixels);
864 m_chart->scroll(0, -pixels);
819 }
865 }
820
866
821 QQmlListProperty<QAbstractAxis> DeclarativeChart::axes()
867 QQmlListProperty<QAbstractAxis> DeclarativeChart::axes()
822 {
868 {
823 return QQmlListProperty<QAbstractAxis>(this, 0,
869 return QQmlListProperty<QAbstractAxis>(this, 0,
824 &DeclarativeChart::axesAppendFunc,
870 &DeclarativeChart::axesAppendFunc,
825 &DeclarativeChart::axesCountFunc,
871 &DeclarativeChart::axesCountFunc,
826 &DeclarativeChart::axesAtFunc,
872 &DeclarativeChart::axesAtFunc,
827 &DeclarativeChart::axesClearFunc);
873 &DeclarativeChart::axesClearFunc);
828 }
874 }
829
875
830 void DeclarativeChart::axesAppendFunc(QQmlListProperty<QAbstractAxis> *list, QAbstractAxis *element)
876 void DeclarativeChart::axesAppendFunc(QQmlListProperty<QAbstractAxis> *list, QAbstractAxis *element)
831 {
877 {
832 // Empty implementation
878 // Empty implementation
833 Q_UNUSED(list);
879 Q_UNUSED(list);
834 Q_UNUSED(element);
880 Q_UNUSED(element);
835 }
881 }
836
882
837 int DeclarativeChart::axesCountFunc(QQmlListProperty<QAbstractAxis> *list)
883 int DeclarativeChart::axesCountFunc(QQmlListProperty<QAbstractAxis> *list)
838 {
884 {
839 if (qobject_cast<DeclarativeChart *>(list->object)) {
885 if (qobject_cast<DeclarativeChart *>(list->object)) {
840 DeclarativeChart *chart = qobject_cast<DeclarativeChart *>(list->object);
886 DeclarativeChart *chart = qobject_cast<DeclarativeChart *>(list->object);
841 return chart->m_chart->axes(Qt::Horizontal | Qt::Vertical).count();
887 return chart->m_chart->axes(Qt::Horizontal | Qt::Vertical).count();
842 }
888 }
843 return 0;
889 return 0;
844 }
890 }
845
891
846 QAbstractAxis *DeclarativeChart::axesAtFunc(QQmlListProperty<QAbstractAxis> *list, int index)
892 QAbstractAxis *DeclarativeChart::axesAtFunc(QQmlListProperty<QAbstractAxis> *list, int index)
847 {
893 {
848 if (qobject_cast<DeclarativeChart *>(list->object)) {
894 if (qobject_cast<DeclarativeChart *>(list->object)) {
849 DeclarativeChart *chart = qobject_cast<DeclarativeChart *>(list->object);
895 DeclarativeChart *chart = qobject_cast<DeclarativeChart *>(list->object);
850 QList<QAbstractAxis *> axes = chart->m_chart->axes(Qt::Horizontal | Qt::Vertical, chart->m_chart->series()[0]);
896 QList<QAbstractAxis *> axes = chart->m_chart->axes(Qt::Horizontal | Qt::Vertical, chart->m_chart->series()[0]);
851 return axes.at(index);
897 return axes.at(index);
852 }
898 }
853 return 0;
899 return 0;
854 }
900 }
855
901
856 void DeclarativeChart::axesClearFunc(QQmlListProperty<QAbstractAxis> *list)
902 void DeclarativeChart::axesClearFunc(QQmlListProperty<QAbstractAxis> *list)
857 {
903 {
858 // Empty implementation
904 // Empty implementation
859 Q_UNUSED(list);
905 Q_UNUSED(list);
860 }
906 }
861
907
862
908
863 QAbstractSeries *DeclarativeChart::series(int index)
909 QAbstractSeries *DeclarativeChart::series(int index)
864 {
910 {
865 if (index < m_chart->series().count()) {
911 if (index < m_chart->series().count()) {
866 return m_chart->series().at(index);
912 return m_chart->series().at(index);
867 }
913 }
868 return 0;
914 return 0;
869 }
915 }
870
916
871 QAbstractSeries *DeclarativeChart::series(QString seriesName)
917 QAbstractSeries *DeclarativeChart::series(QString seriesName)
872 {
918 {
873 foreach (QAbstractSeries *series, m_chart->series()) {
919 foreach (QAbstractSeries *series, m_chart->series()) {
874 if (series->name() == seriesName)
920 if (series->name() == seriesName)
875 return series;
921 return series;
876 }
922 }
877 return 0;
923 return 0;
878 }
924 }
879
925
880 QAbstractSeries *DeclarativeChart::createSeries(int type, QString name, QAbstractAxis *axisX, QAbstractAxis *axisY)
926 QAbstractSeries *DeclarativeChart::createSeries(int type, QString name, QAbstractAxis *axisX, QAbstractAxis *axisY)
881 {
927 {
882 QAbstractSeries *series = 0;
928 QAbstractSeries *series = 0;
883
929
884 switch (type) {
930 switch (type) {
885 case DeclarativeChart::SeriesTypeLine:
931 case DeclarativeChart::SeriesTypeLine:
886 series = new DeclarativeLineSeries();
932 series = new DeclarativeLineSeries();
887 break;
933 break;
888 case DeclarativeChart::SeriesTypeArea: {
934 case DeclarativeChart::SeriesTypeArea: {
889 DeclarativeAreaSeries *area = new DeclarativeAreaSeries();
935 DeclarativeAreaSeries *area = new DeclarativeAreaSeries();
890 DeclarativeLineSeries *line = new DeclarativeLineSeries();
936 DeclarativeLineSeries *line = new DeclarativeLineSeries();
891 line->setParent(area);
937 line->setParent(area);
892 area->setUpperSeries(line);
938 area->setUpperSeries(line);
893 series = area;
939 series = area;
894 break;
940 break;
895 }
941 }
896 case DeclarativeChart::SeriesTypeStackedBar:
942 case DeclarativeChart::SeriesTypeStackedBar:
897 series = new DeclarativeStackedBarSeries();
943 series = new DeclarativeStackedBarSeries();
898 break;
944 break;
899 case DeclarativeChart::SeriesTypePercentBar:
945 case DeclarativeChart::SeriesTypePercentBar:
900 series = new DeclarativePercentBarSeries();
946 series = new DeclarativePercentBarSeries();
901 break;
947 break;
902 case DeclarativeChart::SeriesTypeBar:
948 case DeclarativeChart::SeriesTypeBar:
903 series = new DeclarativeBarSeries();
949 series = new DeclarativeBarSeries();
904 break;
950 break;
905 case DeclarativeChart::SeriesTypeHorizontalBar:
951 case DeclarativeChart::SeriesTypeHorizontalBar:
906 series = new DeclarativeHorizontalBarSeries();
952 series = new DeclarativeHorizontalBarSeries();
907 break;
953 break;
908 case DeclarativeChart::SeriesTypeHorizontalPercentBar:
954 case DeclarativeChart::SeriesTypeHorizontalPercentBar:
909 series = new DeclarativeHorizontalPercentBarSeries();
955 series = new DeclarativeHorizontalPercentBarSeries();
910 break;
956 break;
911 case DeclarativeChart::SeriesTypeHorizontalStackedBar:
957 case DeclarativeChart::SeriesTypeHorizontalStackedBar:
912 series = new DeclarativeHorizontalStackedBarSeries();
958 series = new DeclarativeHorizontalStackedBarSeries();
913 break;
959 break;
914 case DeclarativeChart::SeriesTypeBoxPlot:
960 case DeclarativeChart::SeriesTypeBoxPlot:
915 series = new DeclarativeBoxPlotSeries();
961 series = new DeclarativeBoxPlotSeries();
916 break;
962 break;
917 case DeclarativeChart::SeriesTypePie:
963 case DeclarativeChart::SeriesTypePie:
918 series = new DeclarativePieSeries();
964 series = new DeclarativePieSeries();
919 break;
965 break;
920 case DeclarativeChart::SeriesTypeScatter:
966 case DeclarativeChart::SeriesTypeScatter:
921 series = new DeclarativeScatterSeries();
967 series = new DeclarativeScatterSeries();
922 break;
968 break;
923 case DeclarativeChart::SeriesTypeSpline:
969 case DeclarativeChart::SeriesTypeSpline:
924 series = new DeclarativeSplineSeries();
970 series = new DeclarativeSplineSeries();
925 break;
971 break;
926 default:
972 default:
927 qWarning() << "Illegal series type";
973 qWarning() << "Illegal series type";
928 }
974 }
929
975
930 if (series) {
976 if (series) {
931 // Connect to axis changed signals (unless this is a pie series)
977 // Connect to axis changed signals (unless this is a pie series)
932 if (!qobject_cast<DeclarativePieSeries *>(series)) {
978 if (!qobject_cast<DeclarativePieSeries *>(series)) {
933 connect(series, SIGNAL(axisXChanged(QAbstractAxis*)), this, SLOT(handleAxisXSet(QAbstractAxis*)));
979 connect(series, SIGNAL(axisXChanged(QAbstractAxis*)), this, SLOT(handleAxisXSet(QAbstractAxis*)));
934 connect(series, SIGNAL(axisXTopChanged(QAbstractAxis*)), this, SLOT(handleAxisXSet(QAbstractAxis*)));
980 connect(series, SIGNAL(axisXTopChanged(QAbstractAxis*)), this, SLOT(handleAxisXSet(QAbstractAxis*)));
935 connect(series, SIGNAL(axisYChanged(QAbstractAxis*)), this, SLOT(handleAxisYSet(QAbstractAxis*)));
981 connect(series, SIGNAL(axisYChanged(QAbstractAxis*)), this, SLOT(handleAxisYSet(QAbstractAxis*)));
936 connect(series, SIGNAL(axisYRightChanged(QAbstractAxis*)), this, SLOT(handleAxisYRightSet(QAbstractAxis*)));
982 connect(series, SIGNAL(axisYRightChanged(QAbstractAxis*)), this, SLOT(handleAxisYRightSet(QAbstractAxis*)));
937 }
983 }
938
984
939 series->setName(name);
985 series->setName(name);
940 m_chart->addSeries(series);
986 m_chart->addSeries(series);
941
987
942 if (!axisX || !axisY)
988 if (!axisX || !axisY)
943 initializeAxes(series);
989 initializeAxes(series);
944
990
945 if (axisX)
991 if (axisX)
946 setAxisX(axisX, series);
992 setAxisX(axisX, series);
947 if (axisY)
993 if (axisY)
948 setAxisY(axisY, series);
994 setAxisY(axisY, series);
949 }
995 }
950
996
951 return series;
997 return series;
952 }
998 }
953
999
954 void DeclarativeChart::removeSeries(QAbstractSeries *series)
1000 void DeclarativeChart::removeSeries(QAbstractSeries *series)
955 {
1001 {
956 if (series)
1002 if (series)
957 m_chart->removeSeries(series);
1003 m_chart->removeSeries(series);
958 else
1004 else
959 qWarning("removeSeries: cannot remove null");
1005 qWarning("removeSeries: cannot remove null");
960 }
1006 }
961
1007
962 void DeclarativeChart::setAxisX(QAbstractAxis *axis, QAbstractSeries *series)
1008 void DeclarativeChart::setAxisX(QAbstractAxis *axis, QAbstractSeries *series)
963 {
1009 {
964 if (axis && series)
1010 if (axis && series)
965 seriesAxisAttachHelper(series, axis, Qt::Horizontal, Qt::AlignBottom);
1011 seriesAxisAttachHelper(series, axis, Qt::Horizontal, Qt::AlignBottom);
966 }
1012 }
967
1013
968 void DeclarativeChart::setAxisY(QAbstractAxis *axis, QAbstractSeries *series)
1014 void DeclarativeChart::setAxisY(QAbstractAxis *axis, QAbstractSeries *series)
969 {
1015 {
970 if (axis && series)
1016 if (axis && series)
971 seriesAxisAttachHelper(series, axis, Qt::Vertical, Qt::AlignLeft);
1017 seriesAxisAttachHelper(series, axis, Qt::Vertical, Qt::AlignLeft);
972 }
1018 }
973
1019
974 QAbstractAxis *DeclarativeChart::defaultAxis(Qt::Orientation orientation, QAbstractSeries *series)
1020 QAbstractAxis *DeclarativeChart::defaultAxis(Qt::Orientation orientation, QAbstractSeries *series)
975 {
1021 {
976 if (!series) {
1022 if (!series) {
977 qWarning() << "No axis type defined for null series";
1023 qWarning() << "No axis type defined for null series";
978 return 0;
1024 return 0;
979 }
1025 }
980
1026
981 foreach (QAbstractAxis *existingAxis, m_chart->axes(orientation)) {
1027 foreach (QAbstractAxis *existingAxis, m_chart->axes(orientation)) {
982 if (existingAxis->type() == series->d_ptr->defaultAxisType(orientation))
1028 if (existingAxis->type() == series->d_ptr->defaultAxisType(orientation))
983 return existingAxis;
1029 return existingAxis;
984 }
1030 }
985
1031
986 switch (series->d_ptr->defaultAxisType(orientation)) {
1032 switch (series->d_ptr->defaultAxisType(orientation)) {
987 case QAbstractAxis::AxisTypeValue:
1033 case QAbstractAxis::AxisTypeValue:
988 return new QValueAxis(this);
1034 return new QValueAxis(this);
989 case QAbstractAxis::AxisTypeBarCategory:
1035 case QAbstractAxis::AxisTypeBarCategory:
990 return new QBarCategoryAxis(this);
1036 return new QBarCategoryAxis(this);
991 case QAbstractAxis::AxisTypeCategory:
1037 case QAbstractAxis::AxisTypeCategory:
992 return new QCategoryAxis(this);
1038 return new QCategoryAxis(this);
993 #ifndef QT_ON_ARM
1039 #ifndef QT_ON_ARM
994 case QAbstractAxis::AxisTypeDateTime:
1040 case QAbstractAxis::AxisTypeDateTime:
995 return new QDateTimeAxis(this);
1041 return new QDateTimeAxis(this);
996 #endif
1042 #endif
997 case QAbstractAxis::AxisTypeLogValue:
1043 case QAbstractAxis::AxisTypeLogValue:
998 return new QLogValueAxis(this);
1044 return new QLogValueAxis(this);
999 default:
1045 default:
1000 // assume AxisTypeNoAxis
1046 // assume AxisTypeNoAxis
1001 return 0;
1047 return 0;
1002 }
1048 }
1003 }
1049 }
1004
1050
1005 void DeclarativeChart::initializeAxes(QAbstractSeries *series)
1051 void DeclarativeChart::initializeAxes(QAbstractSeries *series)
1006 {
1052 {
1007 if (qobject_cast<DeclarativeLineSeries *>(series))
1053 if (qobject_cast<DeclarativeLineSeries *>(series))
1008 doInitializeAxes(series, qobject_cast<DeclarativeLineSeries *>(series)->m_axes);
1054 doInitializeAxes(series, qobject_cast<DeclarativeLineSeries *>(series)->m_axes);
1009 else if (qobject_cast<DeclarativeScatterSeries *>(series))
1055 else if (qobject_cast<DeclarativeScatterSeries *>(series))
1010 doInitializeAxes(series, qobject_cast<DeclarativeScatterSeries *>(series)->m_axes);
1056 doInitializeAxes(series, qobject_cast<DeclarativeScatterSeries *>(series)->m_axes);
1011 else if (qobject_cast<DeclarativeSplineSeries *>(series))
1057 else if (qobject_cast<DeclarativeSplineSeries *>(series))
1012 doInitializeAxes(series, qobject_cast<DeclarativeSplineSeries *>(series)->m_axes);
1058 doInitializeAxes(series, qobject_cast<DeclarativeSplineSeries *>(series)->m_axes);
1013 else if (qobject_cast<DeclarativeAreaSeries *>(series))
1059 else if (qobject_cast<DeclarativeAreaSeries *>(series))
1014 doInitializeAxes(series, qobject_cast<DeclarativeAreaSeries *>(series)->m_axes);
1060 doInitializeAxes(series, qobject_cast<DeclarativeAreaSeries *>(series)->m_axes);
1015 else if (qobject_cast<DeclarativeBarSeries *>(series))
1061 else if (qobject_cast<DeclarativeBarSeries *>(series))
1016 doInitializeAxes(series, qobject_cast<DeclarativeBarSeries *>(series)->m_axes);
1062 doInitializeAxes(series, qobject_cast<DeclarativeBarSeries *>(series)->m_axes);
1017 else if (qobject_cast<DeclarativeStackedBarSeries *>(series))
1063 else if (qobject_cast<DeclarativeStackedBarSeries *>(series))
1018 doInitializeAxes(series, qobject_cast<DeclarativeStackedBarSeries *>(series)->m_axes);
1064 doInitializeAxes(series, qobject_cast<DeclarativeStackedBarSeries *>(series)->m_axes);
1019 else if (qobject_cast<DeclarativePercentBarSeries *>(series))
1065 else if (qobject_cast<DeclarativePercentBarSeries *>(series))
1020 doInitializeAxes(series, qobject_cast<DeclarativePercentBarSeries *>(series)->m_axes);
1066 doInitializeAxes(series, qobject_cast<DeclarativePercentBarSeries *>(series)->m_axes);
1021 else if (qobject_cast<DeclarativeHorizontalBarSeries *>(series))
1067 else if (qobject_cast<DeclarativeHorizontalBarSeries *>(series))
1022 doInitializeAxes(series, qobject_cast<DeclarativeHorizontalBarSeries *>(series)->m_axes);
1068 doInitializeAxes(series, qobject_cast<DeclarativeHorizontalBarSeries *>(series)->m_axes);
1023 else if (qobject_cast<DeclarativeHorizontalStackedBarSeries *>(series))
1069 else if (qobject_cast<DeclarativeHorizontalStackedBarSeries *>(series))
1024 doInitializeAxes(series, qobject_cast<DeclarativeHorizontalStackedBarSeries *>(series)->m_axes);
1070 doInitializeAxes(series, qobject_cast<DeclarativeHorizontalStackedBarSeries *>(series)->m_axes);
1025 else if (qobject_cast<DeclarativeHorizontalPercentBarSeries *>(series))
1071 else if (qobject_cast<DeclarativeHorizontalPercentBarSeries *>(series))
1026 doInitializeAxes(series, qobject_cast<DeclarativeHorizontalPercentBarSeries *>(series)->m_axes);
1072 doInitializeAxes(series, qobject_cast<DeclarativeHorizontalPercentBarSeries *>(series)->m_axes);
1027 else if (qobject_cast<DeclarativeBoxPlotSeries *>(series))
1073 else if (qobject_cast<DeclarativeBoxPlotSeries *>(series))
1028 doInitializeAxes(series, qobject_cast<DeclarativeBoxPlotSeries *>(series)->m_axes);
1074 doInitializeAxes(series, qobject_cast<DeclarativeBoxPlotSeries *>(series)->m_axes);
1029 // else: do nothing
1075 // else: do nothing
1030 }
1076 }
1031
1077
1032 void DeclarativeChart::doInitializeAxes(QAbstractSeries *series, DeclarativeAxes *axes)
1078 void DeclarativeChart::doInitializeAxes(QAbstractSeries *series, DeclarativeAxes *axes)
1033 {
1079 {
1034 // Initialize axis X
1080 // Initialize axis X
1035 if (axes->axisX())
1081 if (axes->axisX())
1036 axes->emitAxisXChanged();
1082 axes->emitAxisXChanged();
1037 else if (axes->axisXTop())
1083 else if (axes->axisXTop())
1038 axes->emitAxisXTopChanged();
1084 axes->emitAxisXTopChanged();
1039 else
1085 else
1040 axes->setAxisX(defaultAxis(Qt::Horizontal, series));
1086 axes->setAxisX(defaultAxis(Qt::Horizontal, series));
1041
1087
1042 // Initialize axis Y
1088 // Initialize axis Y
1043 if (axes->axisY())
1089 if (axes->axisY())
1044 axes->emitAxisYChanged();
1090 axes->emitAxisYChanged();
1045 else if (axes->axisYRight())
1091 else if (axes->axisYRight())
1046 axes->emitAxisYRightChanged();
1092 axes->emitAxisYRightChanged();
1047 else
1093 else
1048 axes->setAxisY(defaultAxis(Qt::Vertical, series));
1094 axes->setAxisY(defaultAxis(Qt::Vertical, series));
1049 }
1095 }
1050
1096
1051 QPointF DeclarativeChart::mapToValue(const QPointF &position, QAbstractSeries *series)
1097 QPointF DeclarativeChart::mapToValue(const QPointF &position, QAbstractSeries *series)
1052 {
1098 {
1053 return m_chart->mapToValue(position, series);
1099 return m_chart->mapToValue(position, series);
1054 }
1100 }
1055
1101
1056 QPointF DeclarativeChart::mapToPosition(const QPointF &value, QAbstractSeries *series)
1102 QPointF DeclarativeChart::mapToPosition(const QPointF &value, QAbstractSeries *series)
1057 {
1103 {
1058 return m_chart->mapToPosition(value, series);
1104 return m_chart->mapToPosition(value, series);
1059 }
1105 }
1060
1106
1061 #include "moc_declarativechart.cpp"
1107 #include "moc_declarativechart.cpp"
1062
1108
1063 QT_CHARTS_END_NAMESPACE
1109 QT_CHARTS_END_NAMESPACE
@@ -1,225 +1,229
1 /****************************************************************************
1 /****************************************************************************
2 **
2 **
3 ** Copyright (C) 2015 The Qt Company Ltd
3 ** Copyright (C) 2015 The Qt Company Ltd
4 ** All rights reserved.
4 ** All rights reserved.
5 ** For any questions to The Qt Company, please use contact form at http://qt.io
5 ** For any questions to The Qt Company, please use contact form at http://qt.io
6 **
6 **
7 ** This file is part of the Qt Charts module.
7 ** This file is part of the Qt Charts module.
8 **
8 **
9 ** Licensees holding valid commercial license for Qt may use this file in
9 ** Licensees holding valid commercial license for Qt may use this file in
10 ** accordance with the Qt License Agreement provided with the Software
10 ** accordance with the Qt License Agreement provided with the Software
11 ** or, alternatively, in accordance with the terms contained in a written
11 ** or, alternatively, in accordance with the terms contained in a written
12 ** agreement between you and The Qt Company.
12 ** agreement between you and The Qt Company.
13 **
13 **
14 ** If you have questions regarding the use of this file, please use
14 ** If you have questions regarding the use of this file, please use
15 ** contact form at http://qt.io
15 ** contact form at http://qt.io
16 **
16 **
17 ****************************************************************************/
17 ****************************************************************************/
18
18
19 #ifndef DECLARATIVECHART_H
19 #ifndef DECLARATIVECHART_H
20 #define DECLARATIVECHART_H
20 #define DECLARATIVECHART_H
21
21
22 #include <QtCore/QtGlobal>
22 #include <QtCore/QtGlobal>
23 #include <QtQuick/QQuickItem>
23 #include <QtQuick/QQuickItem>
24 #include <QtQuick/QQuickPaintedItem>
24 #include <QtQuick/QQuickPaintedItem>
25 #include <QtWidgets/QGraphicsScene>
25 #include <QtWidgets/QGraphicsScene>
26 #include <QtCore/QMutex>
26 #include <QtCore/QMutex>
27
27
28 #include <QtCharts/QChart>
28 #include <QtCharts/QChart>
29 #include <QtCore/QLocale>
29 #include <QtCore/QLocale>
30
30
31 QT_CHARTS_BEGIN_NAMESPACE
31 QT_CHARTS_BEGIN_NAMESPACE
32
32
33 class DeclarativeMargins;
33 class DeclarativeMargins;
34 class Domain;
34 class Domain;
35 class DeclarativeAxes;
35 class DeclarativeAxes;
36
36
37 class DeclarativeChart : public QQuickPaintedItem
37 class DeclarativeChart : public QQuickPaintedItem
38 {
38 {
39 Q_OBJECT
39 Q_OBJECT
40 Q_PROPERTY(Theme theme READ theme WRITE setTheme)
40 Q_PROPERTY(Theme theme READ theme WRITE setTheme)
41 Q_PROPERTY(Animation animationOptions READ animationOptions WRITE setAnimationOptions)
41 Q_PROPERTY(Animation animationOptions READ animationOptions WRITE setAnimationOptions)
42 Q_PROPERTY(QString title READ title WRITE setTitle)
42 Q_PROPERTY(QString title READ title WRITE setTitle)
43 Q_PROPERTY(QFont titleFont READ titleFont WRITE setTitleFont)
43 Q_PROPERTY(QFont titleFont READ titleFont WRITE setTitleFont)
44 Q_PROPERTY(QColor titleColor READ titleColor WRITE setTitleColor NOTIFY titleColorChanged)
44 Q_PROPERTY(QColor titleColor READ titleColor WRITE setTitleColor NOTIFY titleColorChanged)
45 Q_PROPERTY(QLegend *legend READ legend CONSTANT)
45 Q_PROPERTY(QLegend *legend READ legend CONSTANT)
46 Q_PROPERTY(int count READ count)
46 Q_PROPERTY(int count READ count)
47 Q_PROPERTY(QColor backgroundColor READ backgroundColor WRITE setBackgroundColor NOTIFY backgroundColorChanged)
47 Q_PROPERTY(QColor backgroundColor READ backgroundColor WRITE setBackgroundColor NOTIFY backgroundColorChanged)
48 Q_PROPERTY(bool dropShadowEnabled READ dropShadowEnabled WRITE setDropShadowEnabled NOTIFY dropShadowEnabledChanged)
48 Q_PROPERTY(bool dropShadowEnabled READ dropShadowEnabled WRITE setDropShadowEnabled NOTIFY dropShadowEnabledChanged)
49 Q_PROPERTY(qreal backgroundRoundness READ backgroundRoundness WRITE setBackgroundRoundness NOTIFY backgroundRoundnessChanged REVISION 3)
49 Q_PROPERTY(qreal backgroundRoundness READ backgroundRoundness WRITE setBackgroundRoundness NOTIFY backgroundRoundnessChanged REVISION 3)
50 Q_PROPERTY(DeclarativeMargins *margins READ margins NOTIFY marginsChanged REVISION 2)
50 Q_PROPERTY(DeclarativeMargins *margins READ margins NOTIFY marginsChanged REVISION 2)
51 Q_PROPERTY(QRectF plotArea READ plotArea NOTIFY plotAreaChanged REVISION 1)
51 Q_PROPERTY(QRectF plotArea READ plotArea NOTIFY plotAreaChanged REVISION 1)
52 Q_PROPERTY(QColor plotAreaColor READ plotAreaColor WRITE setPlotAreaColor NOTIFY plotAreaColorChanged REVISION 3)
52 Q_PROPERTY(QColor plotAreaColor READ plotAreaColor WRITE setPlotAreaColor NOTIFY plotAreaColorChanged REVISION 3)
53 Q_PROPERTY(QQmlListProperty<QAbstractAxis> axes READ axes REVISION 2)
53 Q_PROPERTY(QQmlListProperty<QAbstractAxis> axes READ axes REVISION 2)
54 Q_PROPERTY(bool localizeNumbers READ localizeNumbers WRITE setLocalizeNumbers NOTIFY localizeNumbersChanged REVISION 4)
54 Q_PROPERTY(bool localizeNumbers READ localizeNumbers WRITE setLocalizeNumbers NOTIFY localizeNumbersChanged REVISION 4)
55 Q_PROPERTY(QLocale locale READ locale WRITE setLocale NOTIFY localeChanged REVISION 4)
55 Q_PROPERTY(QLocale locale READ locale WRITE setLocale NOTIFY localeChanged REVISION 4)
56 Q_ENUMS(Animation)
56 Q_ENUMS(Animation)
57 Q_ENUMS(Theme)
57 Q_ENUMS(Theme)
58 Q_ENUMS(SeriesType)
58 Q_ENUMS(SeriesType)
59
59
60 public:
60 public:
61 // duplicating enums from QChart to make the QML api namings 1-to-1 with the C++ api
61 // duplicating enums from QChart to make the QML api namings 1-to-1 with the C++ api
62 enum Theme {
62 enum Theme {
63 ChartThemeLight = 0,
63 ChartThemeLight = 0,
64 ChartThemeBlueCerulean,
64 ChartThemeBlueCerulean,
65 ChartThemeDark,
65 ChartThemeDark,
66 ChartThemeBrownSand,
66 ChartThemeBrownSand,
67 ChartThemeBlueNcs,
67 ChartThemeBlueNcs,
68 ChartThemeHighContrast,
68 ChartThemeHighContrast,
69 ChartThemeBlueIcy,
69 ChartThemeBlueIcy,
70 ChartThemeQt
70 ChartThemeQt
71 };
71 };
72
72
73 enum Animation {
73 enum Animation {
74 NoAnimation = 0x0,
74 NoAnimation = 0x0,
75 GridAxisAnimations = 0x1,
75 GridAxisAnimations = 0x1,
76 SeriesAnimations = 0x2,
76 SeriesAnimations = 0x2,
77 AllAnimations = 0x3
77 AllAnimations = 0x3
78 };
78 };
79
79
80 enum SeriesType {
80 enum SeriesType {
81 SeriesTypeLine,
81 SeriesTypeLine,
82 SeriesTypeArea,
82 SeriesTypeArea,
83 SeriesTypeBar,
83 SeriesTypeBar,
84 SeriesTypeStackedBar,
84 SeriesTypeStackedBar,
85 SeriesTypePercentBar,
85 SeriesTypePercentBar,
86 SeriesTypeBoxPlot,
86 SeriesTypeBoxPlot,
87 SeriesTypePie,
87 SeriesTypePie,
88 SeriesTypeScatter,
88 SeriesTypeScatter,
89 SeriesTypeSpline,
89 SeriesTypeSpline,
90 SeriesTypeHorizontalBar,
90 SeriesTypeHorizontalBar,
91 SeriesTypeHorizontalStackedBar,
91 SeriesTypeHorizontalStackedBar,
92 SeriesTypeHorizontalPercentBar
92 SeriesTypeHorizontalPercentBar
93 };
93 };
94
94
95 public:
95 public:
96 DeclarativeChart(QQuickItem *parent = 0);
96 DeclarativeChart(QQuickItem *parent = 0);
97 ~DeclarativeChart();
97 ~DeclarativeChart();
98
98
99 public: // From parent classes
99 public: // From parent classes
100 void childEvent(QChildEvent *event);
100 void childEvent(QChildEvent *event);
101 void componentComplete();
101 void componentComplete();
102 void geometryChanged(const QRectF &newGeometry, const QRectF &oldGeometry);
102 void geometryChanged(const QRectF &newGeometry, const QRectF &oldGeometry);
103 void paint(QPainter *painter);
103 void paint(QPainter *painter);
104 protected:
104 protected:
105 void mousePressEvent(QMouseEvent *event);
105 void mousePressEvent(QMouseEvent *event);
106 void mouseReleaseEvent(QMouseEvent *event);
106 void mouseReleaseEvent(QMouseEvent *event);
107 void hoverMoveEvent(QHoverEvent *event);
107 void hoverMoveEvent(QHoverEvent *event);
108 void mouseDoubleClickEvent(QMouseEvent *event);
108 void mouseDoubleClickEvent(QMouseEvent *event);
109 private Q_SLOTS:
109 private Q_SLOTS:
110 void handleAntialiasingChanged(bool enable);
110 void handleAntialiasingChanged(bool enable);
111 void sceneChanged(QList<QRectF> region);
111 void sceneChanged(QList<QRectF> region);
112 void renderScene();
112 void renderScene();
113
113
114 public:
114 public:
115 void setTheme(DeclarativeChart::Theme theme);
115 void setTheme(DeclarativeChart::Theme theme);
116 DeclarativeChart::Theme theme();
116 DeclarativeChart::Theme theme();
117 void setAnimationOptions(DeclarativeChart::Animation animations);
117 void setAnimationOptions(DeclarativeChart::Animation animations);
118 DeclarativeChart::Animation animationOptions();
118 DeclarativeChart::Animation animationOptions();
119 void setTitle(QString title);
119 void setTitle(QString title);
120 QString title();
120 QString title();
121 QLegend *legend();
121 QLegend *legend();
122 QFont titleFont() const;
122 QFont titleFont() const;
123 void setTitleFont(const QFont &font);
123 void setTitleFont(const QFont &font);
124 void setTitleColor(QColor color);
124 void setTitleColor(QColor color);
125 QColor titleColor();
125 QColor titleColor();
126 void setBackgroundColor(QColor color);
126 void setBackgroundColor(QColor color);
127 QColor backgroundColor();
127 QColor backgroundColor();
128 void setPlotAreaColor(QColor color);
128 void setPlotAreaColor(QColor color);
129 QColor plotAreaColor();
129 QColor plotAreaColor();
130 void setLocalizeNumbers(bool localize);
130 void setLocalizeNumbers(bool localize);
131 bool localizeNumbers() const;
131 bool localizeNumbers() const;
132 void setLocale(const QLocale &locale);
132 void setLocale(const QLocale &locale);
133 QLocale locale() const;
133 QLocale locale() const;
134
134
135 int count();
135 int count();
136 void setDropShadowEnabled(bool enabled);
136 void setDropShadowEnabled(bool enabled);
137 bool dropShadowEnabled();
137 bool dropShadowEnabled();
138 qreal backgroundRoundness() const;
138 qreal backgroundRoundness() const;
139 void setBackgroundRoundness(qreal diameter);
139 void setBackgroundRoundness(qreal diameter);
140
140
141 // Margins & plotArea
141 // Margins & plotArea
142 DeclarativeMargins *margins() { return m_margins; }
142 DeclarativeMargins *margins() { return m_margins; }
143 QRectF plotArea() { return m_chart->plotArea(); }
143 QRectF plotArea() { return m_chart->plotArea(); }
144
144
145 // Axis handling
145 // Axis handling
146 QAbstractAxis *defaultAxis(Qt::Orientation orientation, QAbstractSeries *series);
146 QAbstractAxis *defaultAxis(Qt::Orientation orientation, QAbstractSeries *series);
147 void initializeAxes(QAbstractSeries *series);
147 void initializeAxes(QAbstractSeries *series);
148 void doInitializeAxes(QAbstractSeries *series, DeclarativeAxes *axes);
148 void doInitializeAxes(QAbstractSeries *series, DeclarativeAxes *axes);
149 QQmlListProperty<QAbstractAxis> axes();
149 QQmlListProperty<QAbstractAxis> axes();
150 static void axesAppendFunc(QQmlListProperty<QAbstractAxis> *list, QAbstractAxis *element);
150 static void axesAppendFunc(QQmlListProperty<QAbstractAxis> *list, QAbstractAxis *element);
151 static int axesCountFunc(QQmlListProperty<QAbstractAxis> *list);
151 static int axesCountFunc(QQmlListProperty<QAbstractAxis> *list);
152 static QAbstractAxis *axesAtFunc(QQmlListProperty<QAbstractAxis> *list, int index);
152 static QAbstractAxis *axesAtFunc(QQmlListProperty<QAbstractAxis> *list, int index);
153 static void axesClearFunc(QQmlListProperty<QAbstractAxis> *list);
153 static void axesClearFunc(QQmlListProperty<QAbstractAxis> *list);
154
154
155 public:
155 public:
156 Q_INVOKABLE QAbstractSeries *series(int index);
156 Q_INVOKABLE QAbstractSeries *series(int index);
157 Q_INVOKABLE QAbstractSeries *series(QString seriesName);
157 Q_INVOKABLE QAbstractSeries *series(QString seriesName);
158 Q_INVOKABLE QAbstractSeries *createSeries(int type, QString name = "", QAbstractAxis *axisX = 0, QAbstractAxis *axisY = 0);
158 Q_INVOKABLE QAbstractSeries *createSeries(int type, QString name = "", QAbstractAxis *axisX = 0, QAbstractAxis *axisY = 0);
159 Q_INVOKABLE void removeSeries(QAbstractSeries *series);
159 Q_INVOKABLE void removeSeries(QAbstractSeries *series);
160 Q_INVOKABLE void removeAllSeries() { m_chart->removeAllSeries(); }
160 Q_INVOKABLE void removeAllSeries() { m_chart->removeAllSeries(); }
161 Q_INVOKABLE void setAxisX(QAbstractAxis *axis, QAbstractSeries *series = 0);
161 Q_INVOKABLE void setAxisX(QAbstractAxis *axis, QAbstractSeries *series = 0);
162 Q_INVOKABLE void setAxisY(QAbstractAxis *axis, QAbstractSeries *series = 0);
162 Q_INVOKABLE void setAxisY(QAbstractAxis *axis, QAbstractSeries *series = 0);
163 Q_INVOKABLE QAbstractAxis *axisX(QAbstractSeries *series = 0);
163 Q_INVOKABLE QAbstractAxis *axisX(QAbstractSeries *series = 0);
164 Q_INVOKABLE QAbstractAxis *axisY(QAbstractSeries *series = 0);
164 Q_INVOKABLE QAbstractAxis *axisY(QAbstractSeries *series = 0);
165 Q_INVOKABLE void zoom(qreal factor);
165 Q_INVOKABLE void zoom(qreal factor);
166 Q_REVISION(5) Q_INVOKABLE void zoomIn();
167 Q_REVISION(5) Q_INVOKABLE void zoomIn(const QRectF &rectangle);
168 Q_REVISION(5) Q_INVOKABLE void zoomOut();
169 Q_REVISION(5) Q_INVOKABLE void zoomReset();
166 Q_INVOKABLE void scrollLeft(qreal pixels);
170 Q_INVOKABLE void scrollLeft(qreal pixels);
167 Q_INVOKABLE void scrollRight(qreal pixels);
171 Q_INVOKABLE void scrollRight(qreal pixels);
168 Q_INVOKABLE void scrollUp(qreal pixels);
172 Q_INVOKABLE void scrollUp(qreal pixels);
169 Q_INVOKABLE void scrollDown(qreal pixels);
173 Q_INVOKABLE void scrollDown(qreal pixels);
170 Q_REVISION(5) Q_INVOKABLE QPointF mapToValue(const QPointF &position,
174 Q_REVISION(5) Q_INVOKABLE QPointF mapToValue(const QPointF &position,
171 QAbstractSeries *series = 0);
175 QAbstractSeries *series = 0);
172 Q_REVISION(5) Q_INVOKABLE QPointF mapToPosition(const QPointF &value,
176 Q_REVISION(5) Q_INVOKABLE QPointF mapToPosition(const QPointF &value,
173 QAbstractSeries *series = 0);
177 QAbstractSeries *series = 0);
174
178
175
179
176 Q_SIGNALS:
180 Q_SIGNALS:
177 void axisLabelsChanged();
181 void axisLabelsChanged();
178 void titleColorChanged(QColor color);
182 void titleColorChanged(QColor color);
179 void backgroundColorChanged();
183 void backgroundColorChanged();
180 void dropShadowEnabledChanged(bool enabled);
184 void dropShadowEnabledChanged(bool enabled);
181 Q_REVISION(2) void marginsChanged();
185 Q_REVISION(2) void marginsChanged();
182 void plotAreaChanged(QRectF plotArea);
186 void plotAreaChanged(QRectF plotArea);
183 void seriesAdded(QAbstractSeries *series);
187 void seriesAdded(QAbstractSeries *series);
184 void seriesRemoved(QAbstractSeries *series);
188 void seriesRemoved(QAbstractSeries *series);
185 Q_REVISION(3) void plotAreaColorChanged();
189 Q_REVISION(3) void plotAreaColorChanged();
186 Q_REVISION(3) void backgroundRoundnessChanged(qreal diameter);
190 Q_REVISION(3) void backgroundRoundnessChanged(qreal diameter);
187 Q_REVISION(4) void localizeNumbersChanged();
191 Q_REVISION(4) void localizeNumbersChanged();
188 Q_REVISION(4) void localeChanged();
192 Q_REVISION(4) void localeChanged();
189
193
190 private Q_SLOTS:
194 private Q_SLOTS:
191 void changeMargins(int top, int bottom, int left, int right);
195 void changeMargins(int top, int bottom, int left, int right);
192 void handleAxisXSet(QAbstractAxis *axis);
196 void handleAxisXSet(QAbstractAxis *axis);
193 void handleAxisYSet(QAbstractAxis *axis);
197 void handleAxisYSet(QAbstractAxis *axis);
194 void handleAxisXTopSet(QAbstractAxis *axis);
198 void handleAxisXTopSet(QAbstractAxis *axis);
195 void handleAxisYRightSet(QAbstractAxis *axis);
199 void handleAxisYRightSet(QAbstractAxis *axis);
196 void handleSeriesAdded(QAbstractSeries *series);
200 void handleSeriesAdded(QAbstractSeries *series);
197
201
198 protected:
202 protected:
199 explicit DeclarativeChart(QChart::ChartType type, QQuickItem *parent);
203 explicit DeclarativeChart(QChart::ChartType type, QQuickItem *parent);
200
204
201 private:
205 private:
202 void initChart(QChart::ChartType type);
206 void initChart(QChart::ChartType type);
203 void seriesAxisAttachHelper(QAbstractSeries *series, QAbstractAxis *axis,
207 void seriesAxisAttachHelper(QAbstractSeries *series, QAbstractAxis *axis,
204 Qt::Orientations orientation, Qt::Alignment alignment);
208 Qt::Orientations orientation, Qt::Alignment alignment);
205 // Extending QChart with DeclarativeChart is not possible because QObject does not support
209 // Extending QChart with DeclarativeChart is not possible because QObject does not support
206 // multi inheritance, so we now have a QChart as a member instead
210 // multi inheritance, so we now have a QChart as a member instead
207 QChart *m_chart;
211 QChart *m_chart;
208 QGraphicsScene *m_scene;
212 QGraphicsScene *m_scene;
209 QPointF m_mousePressScenePoint;
213 QPointF m_mousePressScenePoint;
210 QPoint m_mousePressScreenPoint;
214 QPoint m_mousePressScreenPoint;
211 QPointF m_lastMouseMoveScenePoint;
215 QPointF m_lastMouseMoveScenePoint;
212 QPoint m_lastMouseMoveScreenPoint;
216 QPoint m_lastMouseMoveScreenPoint;
213 Qt::MouseButton m_mousePressButton;
217 Qt::MouseButton m_mousePressButton;
214 Qt::MouseButtons m_mousePressButtons;
218 Qt::MouseButtons m_mousePressButtons;
215 QMutex m_sceneImageLock;
219 QMutex m_sceneImageLock;
216 QImage *m_currentSceneImage;
220 QImage *m_currentSceneImage;
217 bool m_updatePending;
221 bool m_updatePending;
218 Qt::HANDLE m_paintThreadId;
222 Qt::HANDLE m_paintThreadId;
219 Qt::HANDLE m_guiThreadId;
223 Qt::HANDLE m_guiThreadId;
220 DeclarativeMargins *m_margins;
224 DeclarativeMargins *m_margins;
221 };
225 };
222
226
223 QT_CHARTS_END_NAMESPACE
227 QT_CHARTS_END_NAMESPACE
224
228
225 #endif // DECLARATIVECHART_H
229 #endif // DECLARATIVECHART_H
@@ -1,2884 +1,2893
1 import QtQuick.tooling 1.2
1 import QtQuick.tooling 1.2
2
2
3 // This file describes the plugin-supplied types contained in the library.
3 // This file describes the plugin-supplied types contained in the library.
4 // It is used for QML tooling purposes only.
4 // It is used for QML tooling purposes only.
5 //
5 //
6 // This file was auto-generated by:
6 // This file was auto-generated by:
7 // 'qmlplugindump -nonrelocatable QtCharts 2.0'
7 // 'qmlplugindump -nonrelocatable QtCharts 2.0'
8
8
9 Module {
9 Module {
10 dependencies: []
10 dependencies: []
11 Component {
11 Component {
12 name: "QAbstractItemModel"
12 name: "QAbstractItemModel"
13 prototype: "QObject"
13 prototype: "QObject"
14 exports: [
14 exports: [
15 "QtCharts/AbstractItemModel 1.0",
15 "QtCharts/AbstractItemModel 1.0",
16 "QtCharts/AbstractItemModel 2.0"
16 "QtCharts/AbstractItemModel 2.0"
17 ]
17 ]
18 isCreatable: false
18 isCreatable: false
19 exportMetaObjectRevisions: [0, 0]
19 exportMetaObjectRevisions: [0, 0]
20 Enum {
20 Enum {
21 name: "LayoutChangeHint"
21 name: "LayoutChangeHint"
22 values: {
22 values: {
23 "NoLayoutChangeHint": 0,
23 "NoLayoutChangeHint": 0,
24 "VerticalSortHint": 1,
24 "VerticalSortHint": 1,
25 "HorizontalSortHint": 2
25 "HorizontalSortHint": 2
26 }
26 }
27 }
27 }
28 Signal {
28 Signal {
29 name: "dataChanged"
29 name: "dataChanged"
30 Parameter { name: "topLeft"; type: "QModelIndex" }
30 Parameter { name: "topLeft"; type: "QModelIndex" }
31 Parameter { name: "bottomRight"; type: "QModelIndex" }
31 Parameter { name: "bottomRight"; type: "QModelIndex" }
32 Parameter { name: "roles"; type: "QVector<int>" }
32 Parameter { name: "roles"; type: "QVector<int>" }
33 }
33 }
34 Signal {
34 Signal {
35 name: "dataChanged"
35 name: "dataChanged"
36 Parameter { name: "topLeft"; type: "QModelIndex" }
36 Parameter { name: "topLeft"; type: "QModelIndex" }
37 Parameter { name: "bottomRight"; type: "QModelIndex" }
37 Parameter { name: "bottomRight"; type: "QModelIndex" }
38 }
38 }
39 Signal {
39 Signal {
40 name: "headerDataChanged"
40 name: "headerDataChanged"
41 Parameter { name: "orientation"; type: "Qt::Orientation" }
41 Parameter { name: "orientation"; type: "Qt::Orientation" }
42 Parameter { name: "first"; type: "int" }
42 Parameter { name: "first"; type: "int" }
43 Parameter { name: "last"; type: "int" }
43 Parameter { name: "last"; type: "int" }
44 }
44 }
45 Signal {
45 Signal {
46 name: "layoutChanged"
46 name: "layoutChanged"
47 Parameter { name: "parents"; type: "QList<QPersistentModelIndex>" }
47 Parameter { name: "parents"; type: "QList<QPersistentModelIndex>" }
48 Parameter { name: "hint"; type: "QAbstractItemModel::LayoutChangeHint" }
48 Parameter { name: "hint"; type: "QAbstractItemModel::LayoutChangeHint" }
49 }
49 }
50 Signal {
50 Signal {
51 name: "layoutChanged"
51 name: "layoutChanged"
52 Parameter { name: "parents"; type: "QList<QPersistentModelIndex>" }
52 Parameter { name: "parents"; type: "QList<QPersistentModelIndex>" }
53 }
53 }
54 Signal { name: "layoutChanged" }
54 Signal { name: "layoutChanged" }
55 Signal {
55 Signal {
56 name: "layoutAboutToBeChanged"
56 name: "layoutAboutToBeChanged"
57 Parameter { name: "parents"; type: "QList<QPersistentModelIndex>" }
57 Parameter { name: "parents"; type: "QList<QPersistentModelIndex>" }
58 Parameter { name: "hint"; type: "QAbstractItemModel::LayoutChangeHint" }
58 Parameter { name: "hint"; type: "QAbstractItemModel::LayoutChangeHint" }
59 }
59 }
60 Signal {
60 Signal {
61 name: "layoutAboutToBeChanged"
61 name: "layoutAboutToBeChanged"
62 Parameter { name: "parents"; type: "QList<QPersistentModelIndex>" }
62 Parameter { name: "parents"; type: "QList<QPersistentModelIndex>" }
63 }
63 }
64 Signal { name: "layoutAboutToBeChanged" }
64 Signal { name: "layoutAboutToBeChanged" }
65 Signal {
65 Signal {
66 name: "rowsAboutToBeInserted"
66 name: "rowsAboutToBeInserted"
67 Parameter { name: "parent"; type: "QModelIndex" }
67 Parameter { name: "parent"; type: "QModelIndex" }
68 Parameter { name: "first"; type: "int" }
68 Parameter { name: "first"; type: "int" }
69 Parameter { name: "last"; type: "int" }
69 Parameter { name: "last"; type: "int" }
70 }
70 }
71 Signal {
71 Signal {
72 name: "rowsInserted"
72 name: "rowsInserted"
73 Parameter { name: "parent"; type: "QModelIndex" }
73 Parameter { name: "parent"; type: "QModelIndex" }
74 Parameter { name: "first"; type: "int" }
74 Parameter { name: "first"; type: "int" }
75 Parameter { name: "last"; type: "int" }
75 Parameter { name: "last"; type: "int" }
76 }
76 }
77 Signal {
77 Signal {
78 name: "rowsAboutToBeRemoved"
78 name: "rowsAboutToBeRemoved"
79 Parameter { name: "parent"; type: "QModelIndex" }
79 Parameter { name: "parent"; type: "QModelIndex" }
80 Parameter { name: "first"; type: "int" }
80 Parameter { name: "first"; type: "int" }
81 Parameter { name: "last"; type: "int" }
81 Parameter { name: "last"; type: "int" }
82 }
82 }
83 Signal {
83 Signal {
84 name: "rowsRemoved"
84 name: "rowsRemoved"
85 Parameter { name: "parent"; type: "QModelIndex" }
85 Parameter { name: "parent"; type: "QModelIndex" }
86 Parameter { name: "first"; type: "int" }
86 Parameter { name: "first"; type: "int" }
87 Parameter { name: "last"; type: "int" }
87 Parameter { name: "last"; type: "int" }
88 }
88 }
89 Signal {
89 Signal {
90 name: "columnsAboutToBeInserted"
90 name: "columnsAboutToBeInserted"
91 Parameter { name: "parent"; type: "QModelIndex" }
91 Parameter { name: "parent"; type: "QModelIndex" }
92 Parameter { name: "first"; type: "int" }
92 Parameter { name: "first"; type: "int" }
93 Parameter { name: "last"; type: "int" }
93 Parameter { name: "last"; type: "int" }
94 }
94 }
95 Signal {
95 Signal {
96 name: "columnsInserted"
96 name: "columnsInserted"
97 Parameter { name: "parent"; type: "QModelIndex" }
97 Parameter { name: "parent"; type: "QModelIndex" }
98 Parameter { name: "first"; type: "int" }
98 Parameter { name: "first"; type: "int" }
99 Parameter { name: "last"; type: "int" }
99 Parameter { name: "last"; type: "int" }
100 }
100 }
101 Signal {
101 Signal {
102 name: "columnsAboutToBeRemoved"
102 name: "columnsAboutToBeRemoved"
103 Parameter { name: "parent"; type: "QModelIndex" }
103 Parameter { name: "parent"; type: "QModelIndex" }
104 Parameter { name: "first"; type: "int" }
104 Parameter { name: "first"; type: "int" }
105 Parameter { name: "last"; type: "int" }
105 Parameter { name: "last"; type: "int" }
106 }
106 }
107 Signal {
107 Signal {
108 name: "columnsRemoved"
108 name: "columnsRemoved"
109 Parameter { name: "parent"; type: "QModelIndex" }
109 Parameter { name: "parent"; type: "QModelIndex" }
110 Parameter { name: "first"; type: "int" }
110 Parameter { name: "first"; type: "int" }
111 Parameter { name: "last"; type: "int" }
111 Parameter { name: "last"; type: "int" }
112 }
112 }
113 Signal { name: "modelAboutToBeReset" }
113 Signal { name: "modelAboutToBeReset" }
114 Signal { name: "modelReset" }
114 Signal { name: "modelReset" }
115 Signal {
115 Signal {
116 name: "rowsAboutToBeMoved"
116 name: "rowsAboutToBeMoved"
117 Parameter { name: "sourceParent"; type: "QModelIndex" }
117 Parameter { name: "sourceParent"; type: "QModelIndex" }
118 Parameter { name: "sourceStart"; type: "int" }
118 Parameter { name: "sourceStart"; type: "int" }
119 Parameter { name: "sourceEnd"; type: "int" }
119 Parameter { name: "sourceEnd"; type: "int" }
120 Parameter { name: "destinationParent"; type: "QModelIndex" }
120 Parameter { name: "destinationParent"; type: "QModelIndex" }
121 Parameter { name: "destinationRow"; type: "int" }
121 Parameter { name: "destinationRow"; type: "int" }
122 }
122 }
123 Signal {
123 Signal {
124 name: "rowsMoved"
124 name: "rowsMoved"
125 Parameter { name: "parent"; type: "QModelIndex" }
125 Parameter { name: "parent"; type: "QModelIndex" }
126 Parameter { name: "start"; type: "int" }
126 Parameter { name: "start"; type: "int" }
127 Parameter { name: "end"; type: "int" }
127 Parameter { name: "end"; type: "int" }
128 Parameter { name: "destination"; type: "QModelIndex" }
128 Parameter { name: "destination"; type: "QModelIndex" }
129 Parameter { name: "row"; type: "int" }
129 Parameter { name: "row"; type: "int" }
130 }
130 }
131 Signal {
131 Signal {
132 name: "columnsAboutToBeMoved"
132 name: "columnsAboutToBeMoved"
133 Parameter { name: "sourceParent"; type: "QModelIndex" }
133 Parameter { name: "sourceParent"; type: "QModelIndex" }
134 Parameter { name: "sourceStart"; type: "int" }
134 Parameter { name: "sourceStart"; type: "int" }
135 Parameter { name: "sourceEnd"; type: "int" }
135 Parameter { name: "sourceEnd"; type: "int" }
136 Parameter { name: "destinationParent"; type: "QModelIndex" }
136 Parameter { name: "destinationParent"; type: "QModelIndex" }
137 Parameter { name: "destinationColumn"; type: "int" }
137 Parameter { name: "destinationColumn"; type: "int" }
138 }
138 }
139 Signal {
139 Signal {
140 name: "columnsMoved"
140 name: "columnsMoved"
141 Parameter { name: "parent"; type: "QModelIndex" }
141 Parameter { name: "parent"; type: "QModelIndex" }
142 Parameter { name: "start"; type: "int" }
142 Parameter { name: "start"; type: "int" }
143 Parameter { name: "end"; type: "int" }
143 Parameter { name: "end"; type: "int" }
144 Parameter { name: "destination"; type: "QModelIndex" }
144 Parameter { name: "destination"; type: "QModelIndex" }
145 Parameter { name: "column"; type: "int" }
145 Parameter { name: "column"; type: "int" }
146 }
146 }
147 Method { name: "submit"; type: "bool" }
147 Method { name: "submit"; type: "bool" }
148 Method { name: "revert" }
148 Method { name: "revert" }
149 Method {
149 Method {
150 name: "hasIndex"
150 name: "hasIndex"
151 type: "bool"
151 type: "bool"
152 Parameter { name: "row"; type: "int" }
152 Parameter { name: "row"; type: "int" }
153 Parameter { name: "column"; type: "int" }
153 Parameter { name: "column"; type: "int" }
154 Parameter { name: "parent"; type: "QModelIndex" }
154 Parameter { name: "parent"; type: "QModelIndex" }
155 }
155 }
156 Method {
156 Method {
157 name: "hasIndex"
157 name: "hasIndex"
158 type: "bool"
158 type: "bool"
159 Parameter { name: "row"; type: "int" }
159 Parameter { name: "row"; type: "int" }
160 Parameter { name: "column"; type: "int" }
160 Parameter { name: "column"; type: "int" }
161 }
161 }
162 Method {
162 Method {
163 name: "index"
163 name: "index"
164 type: "QModelIndex"
164 type: "QModelIndex"
165 Parameter { name: "row"; type: "int" }
165 Parameter { name: "row"; type: "int" }
166 Parameter { name: "column"; type: "int" }
166 Parameter { name: "column"; type: "int" }
167 Parameter { name: "parent"; type: "QModelIndex" }
167 Parameter { name: "parent"; type: "QModelIndex" }
168 }
168 }
169 Method {
169 Method {
170 name: "index"
170 name: "index"
171 type: "QModelIndex"
171 type: "QModelIndex"
172 Parameter { name: "row"; type: "int" }
172 Parameter { name: "row"; type: "int" }
173 Parameter { name: "column"; type: "int" }
173 Parameter { name: "column"; type: "int" }
174 }
174 }
175 Method {
175 Method {
176 name: "parent"
176 name: "parent"
177 type: "QModelIndex"
177 type: "QModelIndex"
178 Parameter { name: "child"; type: "QModelIndex" }
178 Parameter { name: "child"; type: "QModelIndex" }
179 }
179 }
180 Method {
180 Method {
181 name: "sibling"
181 name: "sibling"
182 type: "QModelIndex"
182 type: "QModelIndex"
183 Parameter { name: "row"; type: "int" }
183 Parameter { name: "row"; type: "int" }
184 Parameter { name: "column"; type: "int" }
184 Parameter { name: "column"; type: "int" }
185 Parameter { name: "idx"; type: "QModelIndex" }
185 Parameter { name: "idx"; type: "QModelIndex" }
186 }
186 }
187 Method {
187 Method {
188 name: "rowCount"
188 name: "rowCount"
189 type: "int"
189 type: "int"
190 Parameter { name: "parent"; type: "QModelIndex" }
190 Parameter { name: "parent"; type: "QModelIndex" }
191 }
191 }
192 Method { name: "rowCount"; type: "int" }
192 Method { name: "rowCount"; type: "int" }
193 Method {
193 Method {
194 name: "columnCount"
194 name: "columnCount"
195 type: "int"
195 type: "int"
196 Parameter { name: "parent"; type: "QModelIndex" }
196 Parameter { name: "parent"; type: "QModelIndex" }
197 }
197 }
198 Method { name: "columnCount"; type: "int" }
198 Method { name: "columnCount"; type: "int" }
199 Method {
199 Method {
200 name: "hasChildren"
200 name: "hasChildren"
201 type: "bool"
201 type: "bool"
202 Parameter { name: "parent"; type: "QModelIndex" }
202 Parameter { name: "parent"; type: "QModelIndex" }
203 }
203 }
204 Method { name: "hasChildren"; type: "bool" }
204 Method { name: "hasChildren"; type: "bool" }
205 Method {
205 Method {
206 name: "data"
206 name: "data"
207 type: "QVariant"
207 type: "QVariant"
208 Parameter { name: "index"; type: "QModelIndex" }
208 Parameter { name: "index"; type: "QModelIndex" }
209 Parameter { name: "role"; type: "int" }
209 Parameter { name: "role"; type: "int" }
210 }
210 }
211 Method {
211 Method {
212 name: "data"
212 name: "data"
213 type: "QVariant"
213 type: "QVariant"
214 Parameter { name: "index"; type: "QModelIndex" }
214 Parameter { name: "index"; type: "QModelIndex" }
215 }
215 }
216 Method {
216 Method {
217 name: "setData"
217 name: "setData"
218 type: "bool"
218 type: "bool"
219 Parameter { name: "index"; type: "QModelIndex" }
219 Parameter { name: "index"; type: "QModelIndex" }
220 Parameter { name: "value"; type: "QVariant" }
220 Parameter { name: "value"; type: "QVariant" }
221 Parameter { name: "role"; type: "int" }
221 Parameter { name: "role"; type: "int" }
222 }
222 }
223 Method {
223 Method {
224 name: "setData"
224 name: "setData"
225 type: "bool"
225 type: "bool"
226 Parameter { name: "index"; type: "QModelIndex" }
226 Parameter { name: "index"; type: "QModelIndex" }
227 Parameter { name: "value"; type: "QVariant" }
227 Parameter { name: "value"; type: "QVariant" }
228 }
228 }
229 Method {
229 Method {
230 name: "headerData"
230 name: "headerData"
231 type: "QVariant"
231 type: "QVariant"
232 Parameter { name: "section"; type: "int" }
232 Parameter { name: "section"; type: "int" }
233 Parameter { name: "orientation"; type: "Qt::Orientation" }
233 Parameter { name: "orientation"; type: "Qt::Orientation" }
234 Parameter { name: "role"; type: "int" }
234 Parameter { name: "role"; type: "int" }
235 }
235 }
236 Method {
236 Method {
237 name: "headerData"
237 name: "headerData"
238 type: "QVariant"
238 type: "QVariant"
239 Parameter { name: "section"; type: "int" }
239 Parameter { name: "section"; type: "int" }
240 Parameter { name: "orientation"; type: "Qt::Orientation" }
240 Parameter { name: "orientation"; type: "Qt::Orientation" }
241 }
241 }
242 Method {
242 Method {
243 name: "fetchMore"
243 name: "fetchMore"
244 Parameter { name: "parent"; type: "QModelIndex" }
244 Parameter { name: "parent"; type: "QModelIndex" }
245 }
245 }
246 Method {
246 Method {
247 name: "canFetchMore"
247 name: "canFetchMore"
248 type: "bool"
248 type: "bool"
249 Parameter { name: "parent"; type: "QModelIndex" }
249 Parameter { name: "parent"; type: "QModelIndex" }
250 }
250 }
251 Method {
251 Method {
252 name: "flags"
252 name: "flags"
253 type: "Qt::ItemFlags"
253 type: "Qt::ItemFlags"
254 Parameter { name: "index"; type: "QModelIndex" }
254 Parameter { name: "index"; type: "QModelIndex" }
255 }
255 }
256 Method {
256 Method {
257 name: "match"
257 name: "match"
258 type: "QModelIndexList"
258 type: "QModelIndexList"
259 Parameter { name: "start"; type: "QModelIndex" }
259 Parameter { name: "start"; type: "QModelIndex" }
260 Parameter { name: "role"; type: "int" }
260 Parameter { name: "role"; type: "int" }
261 Parameter { name: "value"; type: "QVariant" }
261 Parameter { name: "value"; type: "QVariant" }
262 Parameter { name: "hits"; type: "int" }
262 Parameter { name: "hits"; type: "int" }
263 Parameter { name: "flags"; type: "Qt::MatchFlags" }
263 Parameter { name: "flags"; type: "Qt::MatchFlags" }
264 }
264 }
265 Method {
265 Method {
266 name: "match"
266 name: "match"
267 type: "QModelIndexList"
267 type: "QModelIndexList"
268 Parameter { name: "start"; type: "QModelIndex" }
268 Parameter { name: "start"; type: "QModelIndex" }
269 Parameter { name: "role"; type: "int" }
269 Parameter { name: "role"; type: "int" }
270 Parameter { name: "value"; type: "QVariant" }
270 Parameter { name: "value"; type: "QVariant" }
271 Parameter { name: "hits"; type: "int" }
271 Parameter { name: "hits"; type: "int" }
272 }
272 }
273 Method {
273 Method {
274 name: "match"
274 name: "match"
275 type: "QModelIndexList"
275 type: "QModelIndexList"
276 Parameter { name: "start"; type: "QModelIndex" }
276 Parameter { name: "start"; type: "QModelIndex" }
277 Parameter { name: "role"; type: "int" }
277 Parameter { name: "role"; type: "int" }
278 Parameter { name: "value"; type: "QVariant" }
278 Parameter { name: "value"; type: "QVariant" }
279 }
279 }
280 }
280 }
281 Component {
281 Component {
282 name: "QGraphicsObject"
282 name: "QGraphicsObject"
283 defaultProperty: "children"
283 defaultProperty: "children"
284 prototype: "QObject"
284 prototype: "QObject"
285 Property { name: "parent"; type: "QGraphicsObject"; isPointer: true }
285 Property { name: "parent"; type: "QGraphicsObject"; isPointer: true }
286 Property { name: "opacity"; type: "double" }
286 Property { name: "opacity"; type: "double" }
287 Property { name: "enabled"; type: "bool" }
287 Property { name: "enabled"; type: "bool" }
288 Property { name: "visible"; type: "bool" }
288 Property { name: "visible"; type: "bool" }
289 Property { name: "pos"; type: "QPointF" }
289 Property { name: "pos"; type: "QPointF" }
290 Property { name: "x"; type: "double" }
290 Property { name: "x"; type: "double" }
291 Property { name: "y"; type: "double" }
291 Property { name: "y"; type: "double" }
292 Property { name: "z"; type: "double" }
292 Property { name: "z"; type: "double" }
293 Property { name: "rotation"; type: "double" }
293 Property { name: "rotation"; type: "double" }
294 Property { name: "scale"; type: "double" }
294 Property { name: "scale"; type: "double" }
295 Property { name: "transformOriginPoint"; type: "QPointF" }
295 Property { name: "transformOriginPoint"; type: "QPointF" }
296 Property { name: "effect"; type: "QGraphicsEffect"; isPointer: true }
296 Property { name: "effect"; type: "QGraphicsEffect"; isPointer: true }
297 Property {
297 Property {
298 name: "children"
298 name: "children"
299 type: "QDeclarativeListProperty<QGraphicsObject>"
299 type: "QDeclarativeListProperty<QGraphicsObject>"
300 isReadonly: true
300 isReadonly: true
301 }
301 }
302 Property { name: "width"; type: "double" }
302 Property { name: "width"; type: "double" }
303 Property { name: "height"; type: "double" }
303 Property { name: "height"; type: "double" }
304 }
304 }
305 Component {
305 Component {
306 name: "QGraphicsWidget"
306 name: "QGraphicsWidget"
307 defaultProperty: "children"
307 defaultProperty: "children"
308 prototype: "QGraphicsObject"
308 prototype: "QGraphicsObject"
309 Property { name: "palette"; type: "QPalette" }
309 Property { name: "palette"; type: "QPalette" }
310 Property { name: "font"; type: "QFont" }
310 Property { name: "font"; type: "QFont" }
311 Property { name: "layoutDirection"; type: "Qt::LayoutDirection" }
311 Property { name: "layoutDirection"; type: "Qt::LayoutDirection" }
312 Property { name: "size"; type: "QSizeF" }
312 Property { name: "size"; type: "QSizeF" }
313 Property { name: "minimumSize"; type: "QSizeF" }
313 Property { name: "minimumSize"; type: "QSizeF" }
314 Property { name: "preferredSize"; type: "QSizeF" }
314 Property { name: "preferredSize"; type: "QSizeF" }
315 Property { name: "maximumSize"; type: "QSizeF" }
315 Property { name: "maximumSize"; type: "QSizeF" }
316 Property { name: "sizePolicy"; type: "QSizePolicy" }
316 Property { name: "sizePolicy"; type: "QSizePolicy" }
317 Property { name: "focusPolicy"; type: "Qt::FocusPolicy" }
317 Property { name: "focusPolicy"; type: "Qt::FocusPolicy" }
318 Property { name: "windowFlags"; type: "Qt::WindowFlags" }
318 Property { name: "windowFlags"; type: "Qt::WindowFlags" }
319 Property { name: "windowTitle"; type: "string" }
319 Property { name: "windowTitle"; type: "string" }
320 Property { name: "geometry"; type: "QRectF" }
320 Property { name: "geometry"; type: "QRectF" }
321 Property { name: "autoFillBackground"; type: "bool" }
321 Property { name: "autoFillBackground"; type: "bool" }
322 Property { name: "layout"; type: "QGraphicsLayout"; isPointer: true }
322 Property { name: "layout"; type: "QGraphicsLayout"; isPointer: true }
323 Method { name: "close"; type: "bool" }
323 Method { name: "close"; type: "bool" }
324 }
324 }
325 Component {
325 Component {
326 name: "QQuickItem"
326 name: "QQuickItem"
327 defaultProperty: "data"
327 defaultProperty: "data"
328 prototype: "QObject"
328 prototype: "QObject"
329 Enum {
329 Enum {
330 name: "TransformOrigin"
330 name: "TransformOrigin"
331 values: {
331 values: {
332 "TopLeft": 0,
332 "TopLeft": 0,
333 "Top": 1,
333 "Top": 1,
334 "TopRight": 2,
334 "TopRight": 2,
335 "Left": 3,
335 "Left": 3,
336 "Center": 4,
336 "Center": 4,
337 "Right": 5,
337 "Right": 5,
338 "BottomLeft": 6,
338 "BottomLeft": 6,
339 "Bottom": 7,
339 "Bottom": 7,
340 "BottomRight": 8
340 "BottomRight": 8
341 }
341 }
342 }
342 }
343 Property { name: "parent"; type: "QQuickItem"; isPointer: true }
343 Property { name: "parent"; type: "QQuickItem"; isPointer: true }
344 Property { name: "data"; type: "QObject"; isList: true; isReadonly: true }
344 Property { name: "data"; type: "QObject"; isList: true; isReadonly: true }
345 Property { name: "resources"; type: "QObject"; isList: true; isReadonly: true }
345 Property { name: "resources"; type: "QObject"; isList: true; isReadonly: true }
346 Property { name: "children"; type: "QQuickItem"; isList: true; isReadonly: true }
346 Property { name: "children"; type: "QQuickItem"; isList: true; isReadonly: true }
347 Property { name: "x"; type: "double" }
347 Property { name: "x"; type: "double" }
348 Property { name: "y"; type: "double" }
348 Property { name: "y"; type: "double" }
349 Property { name: "z"; type: "double" }
349 Property { name: "z"; type: "double" }
350 Property { name: "width"; type: "double" }
350 Property { name: "width"; type: "double" }
351 Property { name: "height"; type: "double" }
351 Property { name: "height"; type: "double" }
352 Property { name: "opacity"; type: "double" }
352 Property { name: "opacity"; type: "double" }
353 Property { name: "enabled"; type: "bool" }
353 Property { name: "enabled"; type: "bool" }
354 Property { name: "visible"; type: "bool" }
354 Property { name: "visible"; type: "bool" }
355 Property { name: "visibleChildren"; type: "QQuickItem"; isList: true; isReadonly: true }
355 Property { name: "visibleChildren"; type: "QQuickItem"; isList: true; isReadonly: true }
356 Property { name: "states"; type: "QQuickState"; isList: true; isReadonly: true }
356 Property { name: "states"; type: "QQuickState"; isList: true; isReadonly: true }
357 Property { name: "transitions"; type: "QQuickTransition"; isList: true; isReadonly: true }
357 Property { name: "transitions"; type: "QQuickTransition"; isList: true; isReadonly: true }
358 Property { name: "state"; type: "string" }
358 Property { name: "state"; type: "string" }
359 Property { name: "childrenRect"; type: "QRectF"; isReadonly: true }
359 Property { name: "childrenRect"; type: "QRectF"; isReadonly: true }
360 Property { name: "anchors"; type: "QQuickAnchors"; isReadonly: true; isPointer: true }
360 Property { name: "anchors"; type: "QQuickAnchors"; isReadonly: true; isPointer: true }
361 Property { name: "left"; type: "QQuickAnchorLine"; isReadonly: true }
361 Property { name: "left"; type: "QQuickAnchorLine"; isReadonly: true }
362 Property { name: "right"; type: "QQuickAnchorLine"; isReadonly: true }
362 Property { name: "right"; type: "QQuickAnchorLine"; isReadonly: true }
363 Property { name: "horizontalCenter"; type: "QQuickAnchorLine"; isReadonly: true }
363 Property { name: "horizontalCenter"; type: "QQuickAnchorLine"; isReadonly: true }
364 Property { name: "top"; type: "QQuickAnchorLine"; isReadonly: true }
364 Property { name: "top"; type: "QQuickAnchorLine"; isReadonly: true }
365 Property { name: "bottom"; type: "QQuickAnchorLine"; isReadonly: true }
365 Property { name: "bottom"; type: "QQuickAnchorLine"; isReadonly: true }
366 Property { name: "verticalCenter"; type: "QQuickAnchorLine"; isReadonly: true }
366 Property { name: "verticalCenter"; type: "QQuickAnchorLine"; isReadonly: true }
367 Property { name: "baseline"; type: "QQuickAnchorLine"; isReadonly: true }
367 Property { name: "baseline"; type: "QQuickAnchorLine"; isReadonly: true }
368 Property { name: "baselineOffset"; type: "double" }
368 Property { name: "baselineOffset"; type: "double" }
369 Property { name: "clip"; type: "bool" }
369 Property { name: "clip"; type: "bool" }
370 Property { name: "focus"; type: "bool" }
370 Property { name: "focus"; type: "bool" }
371 Property { name: "activeFocus"; type: "bool"; isReadonly: true }
371 Property { name: "activeFocus"; type: "bool"; isReadonly: true }
372 Property { name: "activeFocusOnTab"; revision: 1; type: "bool" }
372 Property { name: "activeFocusOnTab"; revision: 1; type: "bool" }
373 Property { name: "rotation"; type: "double" }
373 Property { name: "rotation"; type: "double" }
374 Property { name: "scale"; type: "double" }
374 Property { name: "scale"; type: "double" }
375 Property { name: "transformOrigin"; type: "TransformOrigin" }
375 Property { name: "transformOrigin"; type: "TransformOrigin" }
376 Property { name: "transformOriginPoint"; type: "QPointF"; isReadonly: true }
376 Property { name: "transformOriginPoint"; type: "QPointF"; isReadonly: true }
377 Property { name: "transform"; type: "QQuickTransform"; isList: true; isReadonly: true }
377 Property { name: "transform"; type: "QQuickTransform"; isList: true; isReadonly: true }
378 Property { name: "smooth"; type: "bool" }
378 Property { name: "smooth"; type: "bool" }
379 Property { name: "antialiasing"; type: "bool" }
379 Property { name: "antialiasing"; type: "bool" }
380 Property { name: "implicitWidth"; type: "double" }
380 Property { name: "implicitWidth"; type: "double" }
381 Property { name: "implicitHeight"; type: "double" }
381 Property { name: "implicitHeight"; type: "double" }
382 Property { name: "layer"; type: "QQuickItemLayer"; isReadonly: true; isPointer: true }
382 Property { name: "layer"; type: "QQuickItemLayer"; isReadonly: true; isPointer: true }
383 Signal {
383 Signal {
384 name: "childrenRectChanged"
384 name: "childrenRectChanged"
385 Parameter { type: "QRectF" }
385 Parameter { type: "QRectF" }
386 }
386 }
387 Signal {
387 Signal {
388 name: "baselineOffsetChanged"
388 name: "baselineOffsetChanged"
389 Parameter { type: "double" }
389 Parameter { type: "double" }
390 }
390 }
391 Signal {
391 Signal {
392 name: "stateChanged"
392 name: "stateChanged"
393 Parameter { type: "string" }
393 Parameter { type: "string" }
394 }
394 }
395 Signal {
395 Signal {
396 name: "focusChanged"
396 name: "focusChanged"
397 Parameter { type: "bool" }
397 Parameter { type: "bool" }
398 }
398 }
399 Signal {
399 Signal {
400 name: "activeFocusChanged"
400 name: "activeFocusChanged"
401 Parameter { type: "bool" }
401 Parameter { type: "bool" }
402 }
402 }
403 Signal {
403 Signal {
404 name: "activeFocusOnTabChanged"
404 name: "activeFocusOnTabChanged"
405 revision: 1
405 revision: 1
406 Parameter { type: "bool" }
406 Parameter { type: "bool" }
407 }
407 }
408 Signal {
408 Signal {
409 name: "parentChanged"
409 name: "parentChanged"
410 Parameter { type: "QQuickItem"; isPointer: true }
410 Parameter { type: "QQuickItem"; isPointer: true }
411 }
411 }
412 Signal {
412 Signal {
413 name: "transformOriginChanged"
413 name: "transformOriginChanged"
414 Parameter { type: "TransformOrigin" }
414 Parameter { type: "TransformOrigin" }
415 }
415 }
416 Signal {
416 Signal {
417 name: "smoothChanged"
417 name: "smoothChanged"
418 Parameter { type: "bool" }
418 Parameter { type: "bool" }
419 }
419 }
420 Signal {
420 Signal {
421 name: "antialiasingChanged"
421 name: "antialiasingChanged"
422 Parameter { type: "bool" }
422 Parameter { type: "bool" }
423 }
423 }
424 Signal {
424 Signal {
425 name: "clipChanged"
425 name: "clipChanged"
426 Parameter { type: "bool" }
426 Parameter { type: "bool" }
427 }
427 }
428 Signal {
428 Signal {
429 name: "windowChanged"
429 name: "windowChanged"
430 revision: 1
430 revision: 1
431 Parameter { name: "window"; type: "QQuickWindow"; isPointer: true }
431 Parameter { name: "window"; type: "QQuickWindow"; isPointer: true }
432 }
432 }
433 Method { name: "update" }
433 Method { name: "update" }
434 Method {
434 Method {
435 name: "grabToImage"
435 name: "grabToImage"
436 revision: 2
436 revision: 2
437 type: "bool"
437 type: "bool"
438 Parameter { name: "callback"; type: "QJSValue" }
438 Parameter { name: "callback"; type: "QJSValue" }
439 Parameter { name: "targetSize"; type: "QSize" }
439 Parameter { name: "targetSize"; type: "QSize" }
440 }
440 }
441 Method {
441 Method {
442 name: "grabToImage"
442 name: "grabToImage"
443 revision: 2
443 revision: 2
444 type: "bool"
444 type: "bool"
445 Parameter { name: "callback"; type: "QJSValue" }
445 Parameter { name: "callback"; type: "QJSValue" }
446 }
446 }
447 Method {
447 Method {
448 name: "contains"
448 name: "contains"
449 type: "bool"
449 type: "bool"
450 Parameter { name: "point"; type: "QPointF" }
450 Parameter { name: "point"; type: "QPointF" }
451 }
451 }
452 Method {
452 Method {
453 name: "mapFromItem"
453 name: "mapFromItem"
454 Parameter { type: "QQmlV4Function"; isPointer: true }
454 Parameter { type: "QQmlV4Function"; isPointer: true }
455 }
455 }
456 Method {
456 Method {
457 name: "mapToItem"
457 name: "mapToItem"
458 Parameter { type: "QQmlV4Function"; isPointer: true }
458 Parameter { type: "QQmlV4Function"; isPointer: true }
459 }
459 }
460 Method { name: "forceActiveFocus" }
460 Method { name: "forceActiveFocus" }
461 Method {
461 Method {
462 name: "forceActiveFocus"
462 name: "forceActiveFocus"
463 Parameter { name: "reason"; type: "Qt::FocusReason" }
463 Parameter { name: "reason"; type: "Qt::FocusReason" }
464 }
464 }
465 Method {
465 Method {
466 name: "nextItemInFocusChain"
466 name: "nextItemInFocusChain"
467 revision: 1
467 revision: 1
468 type: "QQuickItem*"
468 type: "QQuickItem*"
469 Parameter { name: "forward"; type: "bool" }
469 Parameter { name: "forward"; type: "bool" }
470 }
470 }
471 Method { name: "nextItemInFocusChain"; revision: 1; type: "QQuickItem*" }
471 Method { name: "nextItemInFocusChain"; revision: 1; type: "QQuickItem*" }
472 Method {
472 Method {
473 name: "childAt"
473 name: "childAt"
474 type: "QQuickItem*"
474 type: "QQuickItem*"
475 Parameter { name: "x"; type: "double" }
475 Parameter { name: "x"; type: "double" }
476 Parameter { name: "y"; type: "double" }
476 Parameter { name: "y"; type: "double" }
477 }
477 }
478 }
478 }
479 Component {
479 Component {
480 name: "QQuickPaintedItem"
480 name: "QQuickPaintedItem"
481 defaultProperty: "data"
481 defaultProperty: "data"
482 prototype: "QQuickItem"
482 prototype: "QQuickItem"
483 Enum {
483 Enum {
484 name: "RenderTarget"
484 name: "RenderTarget"
485 values: {
485 values: {
486 "Image": 0,
486 "Image": 0,
487 "FramebufferObject": 1,
487 "FramebufferObject": 1,
488 "InvertedYFramebufferObject": 2
488 "InvertedYFramebufferObject": 2
489 }
489 }
490 }
490 }
491 Property { name: "contentsSize"; type: "QSize" }
491 Property { name: "contentsSize"; type: "QSize" }
492 Property { name: "fillColor"; type: "QColor" }
492 Property { name: "fillColor"; type: "QColor" }
493 Property { name: "contentsScale"; type: "double" }
493 Property { name: "contentsScale"; type: "double" }
494 Property { name: "renderTarget"; type: "RenderTarget" }
494 Property { name: "renderTarget"; type: "RenderTarget" }
495 }
495 }
496 Component {
496 Component {
497 name: "QtCharts::DeclarativeAreaSeries"
497 name: "QtCharts::DeclarativeAreaSeries"
498 prototype: "QtCharts::QAreaSeries"
498 prototype: "QtCharts::QAreaSeries"
499 exports: [
499 exports: [
500 "QtCharts/AreaSeries 1.0",
500 "QtCharts/AreaSeries 1.0",
501 "QtCharts/AreaSeries 1.1",
501 "QtCharts/AreaSeries 1.1",
502 "QtCharts/AreaSeries 1.2",
502 "QtCharts/AreaSeries 1.2",
503 "QtCharts/AreaSeries 1.3",
503 "QtCharts/AreaSeries 1.3",
504 "QtCharts/AreaSeries 1.4",
504 "QtCharts/AreaSeries 1.4",
505 "QtCharts/AreaSeries 2.0"
505 "QtCharts/AreaSeries 2.0"
506 ]
506 ]
507 exportMetaObjectRevisions: [0, 1, 2, 3, 4, 4]
507 exportMetaObjectRevisions: [0, 1, 2, 3, 4, 4]
508 Property { name: "upperSeries"; type: "DeclarativeLineSeries"; isPointer: true }
508 Property { name: "upperSeries"; type: "DeclarativeLineSeries"; isPointer: true }
509 Property { name: "lowerSeries"; type: "DeclarativeLineSeries"; isPointer: true }
509 Property { name: "lowerSeries"; type: "DeclarativeLineSeries"; isPointer: true }
510 Property { name: "axisX"; revision: 1; type: "QAbstractAxis"; isPointer: true }
510 Property { name: "axisX"; revision: 1; type: "QAbstractAxis"; isPointer: true }
511 Property { name: "axisY"; revision: 1; type: "QAbstractAxis"; isPointer: true }
511 Property { name: "axisY"; revision: 1; type: "QAbstractAxis"; isPointer: true }
512 Property { name: "axisXTop"; revision: 2; type: "QAbstractAxis"; isPointer: true }
512 Property { name: "axisXTop"; revision: 2; type: "QAbstractAxis"; isPointer: true }
513 Property { name: "axisYRight"; revision: 2; type: "QAbstractAxis"; isPointer: true }
513 Property { name: "axisYRight"; revision: 2; type: "QAbstractAxis"; isPointer: true }
514 Property { name: "axisAngular"; revision: 3; type: "QAbstractAxis"; isPointer: true }
514 Property { name: "axisAngular"; revision: 3; type: "QAbstractAxis"; isPointer: true }
515 Property { name: "axisRadial"; revision: 3; type: "QAbstractAxis"; isPointer: true }
515 Property { name: "axisRadial"; revision: 3; type: "QAbstractAxis"; isPointer: true }
516 Property { name: "borderWidth"; revision: 1; type: "double" }
516 Property { name: "borderWidth"; revision: 1; type: "double" }
517 Property { name: "brushFilename"; revision: 4; type: "string" }
517 Property { name: "brushFilename"; revision: 4; type: "string" }
518 Property { name: "brush"; revision: 4; type: "QBrush" }
518 Property { name: "brush"; revision: 4; type: "QBrush" }
519 Signal {
519 Signal {
520 name: "axisXChanged"
520 name: "axisXChanged"
521 revision: 1
521 revision: 1
522 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
522 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
523 }
523 }
524 Signal {
524 Signal {
525 name: "axisYChanged"
525 name: "axisYChanged"
526 revision: 1
526 revision: 1
527 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
527 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
528 }
528 }
529 Signal {
529 Signal {
530 name: "borderWidthChanged"
530 name: "borderWidthChanged"
531 revision: 1
531 revision: 1
532 Parameter { name: "width"; type: "double" }
532 Parameter { name: "width"; type: "double" }
533 }
533 }
534 Signal {
534 Signal {
535 name: "axisXTopChanged"
535 name: "axisXTopChanged"
536 revision: 2
536 revision: 2
537 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
537 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
538 }
538 }
539 Signal {
539 Signal {
540 name: "axisYRightChanged"
540 name: "axisYRightChanged"
541 revision: 2
541 revision: 2
542 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
542 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
543 }
543 }
544 Signal {
544 Signal {
545 name: "axisAngularChanged"
545 name: "axisAngularChanged"
546 revision: 3
546 revision: 3
547 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
547 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
548 }
548 }
549 Signal {
549 Signal {
550 name: "axisRadialChanged"
550 name: "axisRadialChanged"
551 revision: 3
551 revision: 3
552 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
552 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
553 }
553 }
554 Signal { name: "brushChanged"; revision: 4 }
554 Signal { name: "brushChanged"; revision: 4 }
555 Signal {
555 Signal {
556 name: "brushFilenameChanged"
556 name: "brushFilenameChanged"
557 revision: 4
557 revision: 4
558 Parameter { name: "brushFilename"; type: "string" }
558 Parameter { name: "brushFilename"; type: "string" }
559 }
559 }
560 }
560 }
561 Component {
561 Component {
562 name: "QtCharts::DeclarativeAxes"
562 name: "QtCharts::DeclarativeAxes"
563 prototype: "QObject"
563 prototype: "QObject"
564 exports: [
564 exports: [
565 "QtCharts/DeclarativeAxes 1.0",
565 "QtCharts/DeclarativeAxes 1.0",
566 "QtCharts/DeclarativeAxes 2.0"
566 "QtCharts/DeclarativeAxes 2.0"
567 ]
567 ]
568 isCreatable: false
568 isCreatable: false
569 exportMetaObjectRevisions: [0, 0]
569 exportMetaObjectRevisions: [0, 0]
570 Property { name: "axisX"; type: "QAbstractAxis"; isPointer: true }
570 Property { name: "axisX"; type: "QAbstractAxis"; isPointer: true }
571 Property { name: "axisY"; type: "QAbstractAxis"; isPointer: true }
571 Property { name: "axisY"; type: "QAbstractAxis"; isPointer: true }
572 Property { name: "axisXTop"; type: "QAbstractAxis"; isPointer: true }
572 Property { name: "axisXTop"; type: "QAbstractAxis"; isPointer: true }
573 Property { name: "axisYRight"; type: "QAbstractAxis"; isPointer: true }
573 Property { name: "axisYRight"; type: "QAbstractAxis"; isPointer: true }
574 Signal {
574 Signal {
575 name: "axisXChanged"
575 name: "axisXChanged"
576 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
576 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
577 }
577 }
578 Signal {
578 Signal {
579 name: "axisYChanged"
579 name: "axisYChanged"
580 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
580 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
581 }
581 }
582 Signal {
582 Signal {
583 name: "axisXTopChanged"
583 name: "axisXTopChanged"
584 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
584 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
585 }
585 }
586 Signal {
586 Signal {
587 name: "axisYRightChanged"
587 name: "axisYRightChanged"
588 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
588 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
589 }
589 }
590 }
590 }
591 Component {
591 Component {
592 name: "QtCharts::DeclarativeBarSeries"
592 name: "QtCharts::DeclarativeBarSeries"
593 defaultProperty: "seriesChildren"
593 defaultProperty: "seriesChildren"
594 prototype: "QtCharts::QBarSeries"
594 prototype: "QtCharts::QBarSeries"
595 exports: [
595 exports: [
596 "QtCharts/BarSeries 1.0",
596 "QtCharts/BarSeries 1.0",
597 "QtCharts/BarSeries 1.1",
597 "QtCharts/BarSeries 1.1",
598 "QtCharts/BarSeries 1.2",
598 "QtCharts/BarSeries 1.2",
599 "QtCharts/BarSeries 2.0"
599 "QtCharts/BarSeries 2.0"
600 ]
600 ]
601 exportMetaObjectRevisions: [0, 1, 2, 2]
601 exportMetaObjectRevisions: [0, 1, 2, 2]
602 Property { name: "axisX"; revision: 1; type: "QAbstractAxis"; isPointer: true }
602 Property { name: "axisX"; revision: 1; type: "QAbstractAxis"; isPointer: true }
603 Property { name: "axisY"; revision: 1; type: "QAbstractAxis"; isPointer: true }
603 Property { name: "axisY"; revision: 1; type: "QAbstractAxis"; isPointer: true }
604 Property { name: "axisXTop"; revision: 2; type: "QAbstractAxis"; isPointer: true }
604 Property { name: "axisXTop"; revision: 2; type: "QAbstractAxis"; isPointer: true }
605 Property { name: "axisYRight"; revision: 2; type: "QAbstractAxis"; isPointer: true }
605 Property { name: "axisYRight"; revision: 2; type: "QAbstractAxis"; isPointer: true }
606 Property { name: "seriesChildren"; type: "QObject"; isList: true; isReadonly: true }
606 Property { name: "seriesChildren"; type: "QObject"; isList: true; isReadonly: true }
607 Signal {
607 Signal {
608 name: "axisXChanged"
608 name: "axisXChanged"
609 revision: 1
609 revision: 1
610 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
610 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
611 }
611 }
612 Signal {
612 Signal {
613 name: "axisYChanged"
613 name: "axisYChanged"
614 revision: 1
614 revision: 1
615 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
615 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
616 }
616 }
617 Signal {
617 Signal {
618 name: "axisXTopChanged"
618 name: "axisXTopChanged"
619 revision: 2
619 revision: 2
620 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
620 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
621 }
621 }
622 Signal {
622 Signal {
623 name: "axisYRightChanged"
623 name: "axisYRightChanged"
624 revision: 2
624 revision: 2
625 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
625 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
626 }
626 }
627 Method {
627 Method {
628 name: "appendSeriesChildren"
628 name: "appendSeriesChildren"
629 Parameter { name: "list"; type: "QObject"; isList: true; isPointer: true }
629 Parameter { name: "list"; type: "QObject"; isList: true; isPointer: true }
630 Parameter { name: "element"; type: "QObject"; isPointer: true }
630 Parameter { name: "element"; type: "QObject"; isPointer: true }
631 }
631 }
632 Method {
632 Method {
633 name: "at"
633 name: "at"
634 type: "DeclarativeBarSet*"
634 type: "DeclarativeBarSet*"
635 Parameter { name: "index"; type: "int" }
635 Parameter { name: "index"; type: "int" }
636 }
636 }
637 Method {
637 Method {
638 name: "append"
638 name: "append"
639 type: "DeclarativeBarSet*"
639 type: "DeclarativeBarSet*"
640 Parameter { name: "label"; type: "string" }
640 Parameter { name: "label"; type: "string" }
641 Parameter { name: "values"; type: "QVariantList" }
641 Parameter { name: "values"; type: "QVariantList" }
642 }
642 }
643 Method {
643 Method {
644 name: "insert"
644 name: "insert"
645 type: "DeclarativeBarSet*"
645 type: "DeclarativeBarSet*"
646 Parameter { name: "index"; type: "int" }
646 Parameter { name: "index"; type: "int" }
647 Parameter { name: "label"; type: "string" }
647 Parameter { name: "label"; type: "string" }
648 Parameter { name: "values"; type: "QVariantList" }
648 Parameter { name: "values"; type: "QVariantList" }
649 }
649 }
650 Method {
650 Method {
651 name: "remove"
651 name: "remove"
652 type: "bool"
652 type: "bool"
653 Parameter { name: "barset"; type: "QBarSet"; isPointer: true }
653 Parameter { name: "barset"; type: "QBarSet"; isPointer: true }
654 }
654 }
655 Method { name: "clear" }
655 Method { name: "clear" }
656 }
656 }
657 Component {
657 Component {
658 name: "QtCharts::DeclarativeBarSet"
658 name: "QtCharts::DeclarativeBarSet"
659 prototype: "QtCharts::QBarSet"
659 prototype: "QtCharts::QBarSet"
660 exports: [
660 exports: [
661 "QtCharts/BarSet 1.0",
661 "QtCharts/BarSet 1.0",
662 "QtCharts/BarSet 1.1",
662 "QtCharts/BarSet 1.1",
663 "QtCharts/BarSet 1.4",
663 "QtCharts/BarSet 1.4",
664 "QtCharts/BarSet 2.0"
664 "QtCharts/BarSet 2.0"
665 ]
665 ]
666 exportMetaObjectRevisions: [0, 0, 2, 2]
666 exportMetaObjectRevisions: [0, 0, 2, 2]
667 Property { name: "values"; type: "QVariantList" }
667 Property { name: "values"; type: "QVariantList" }
668 Property { name: "borderWidth"; revision: 1; type: "double" }
668 Property { name: "borderWidth"; revision: 1; type: "double" }
669 Property { name: "count"; type: "int"; isReadonly: true }
669 Property { name: "count"; type: "int"; isReadonly: true }
670 Property { name: "brushFilename"; revision: 2; type: "string" }
670 Property { name: "brushFilename"; revision: 2; type: "string" }
671 Signal {
671 Signal {
672 name: "countChanged"
672 name: "countChanged"
673 Parameter { name: "count"; type: "int" }
673 Parameter { name: "count"; type: "int" }
674 }
674 }
675 Signal {
675 Signal {
676 name: "borderWidthChanged"
676 name: "borderWidthChanged"
677 revision: 1
677 revision: 1
678 Parameter { name: "width"; type: "double" }
678 Parameter { name: "width"; type: "double" }
679 }
679 }
680 Signal {
680 Signal {
681 name: "brushFilenameChanged"
681 name: "brushFilenameChanged"
682 revision: 2
682 revision: 2
683 Parameter { name: "brushFilename"; type: "string" }
683 Parameter { name: "brushFilename"; type: "string" }
684 }
684 }
685 Method {
685 Method {
686 name: "append"
686 name: "append"
687 Parameter { name: "value"; type: "double" }
687 Parameter { name: "value"; type: "double" }
688 }
688 }
689 Method {
689 Method {
690 name: "remove"
690 name: "remove"
691 Parameter { name: "index"; type: "int" }
691 Parameter { name: "index"; type: "int" }
692 Parameter { name: "count"; type: "int" }
692 Parameter { name: "count"; type: "int" }
693 }
693 }
694 Method {
694 Method {
695 name: "remove"
695 name: "remove"
696 Parameter { name: "index"; type: "int" }
696 Parameter { name: "index"; type: "int" }
697 }
697 }
698 Method {
698 Method {
699 name: "replace"
699 name: "replace"
700 Parameter { name: "index"; type: "int" }
700 Parameter { name: "index"; type: "int" }
701 Parameter { name: "value"; type: "double" }
701 Parameter { name: "value"; type: "double" }
702 }
702 }
703 Method {
703 Method {
704 name: "at"
704 name: "at"
705 type: "double"
705 type: "double"
706 Parameter { name: "index"; type: "int" }
706 Parameter { name: "index"; type: "int" }
707 }
707 }
708 }
708 }
709 Component {
709 Component {
710 name: "QtCharts::DeclarativeBoxPlotSeries"
710 name: "QtCharts::DeclarativeBoxPlotSeries"
711 defaultProperty: "seriesChildren"
711 defaultProperty: "seriesChildren"
712 prototype: "QtCharts::QBoxPlotSeries"
712 prototype: "QtCharts::QBoxPlotSeries"
713 exports: [
713 exports: [
714 "QtCharts/BoxPlotSeries 1.3",
714 "QtCharts/BoxPlotSeries 1.3",
715 "QtCharts/BoxPlotSeries 1.4",
715 "QtCharts/BoxPlotSeries 1.4",
716 "QtCharts/BoxPlotSeries 2.0"
716 "QtCharts/BoxPlotSeries 2.0"
717 ]
717 ]
718 exportMetaObjectRevisions: [0, 1, 1]
718 exportMetaObjectRevisions: [0, 1, 1]
719 Property { name: "axisX"; type: "QAbstractAxis"; isPointer: true }
719 Property { name: "axisX"; type: "QAbstractAxis"; isPointer: true }
720 Property { name: "axisY"; type: "QAbstractAxis"; isPointer: true }
720 Property { name: "axisY"; type: "QAbstractAxis"; isPointer: true }
721 Property { name: "axisXTop"; type: "QAbstractAxis"; isPointer: true }
721 Property { name: "axisXTop"; type: "QAbstractAxis"; isPointer: true }
722 Property { name: "axisYRight"; type: "QAbstractAxis"; isPointer: true }
722 Property { name: "axisYRight"; type: "QAbstractAxis"; isPointer: true }
723 Property { name: "seriesChildren"; type: "QObject"; isList: true; isReadonly: true }
723 Property { name: "seriesChildren"; type: "QObject"; isList: true; isReadonly: true }
724 Property { name: "brushFilename"; revision: 1; type: "string" }
724 Property { name: "brushFilename"; revision: 1; type: "string" }
725 Signal {
725 Signal {
726 name: "axisXChanged"
726 name: "axisXChanged"
727 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
727 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
728 }
728 }
729 Signal {
729 Signal {
730 name: "axisYChanged"
730 name: "axisYChanged"
731 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
731 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
732 }
732 }
733 Signal {
733 Signal {
734 name: "axisXTopChanged"
734 name: "axisXTopChanged"
735 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
735 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
736 }
736 }
737 Signal {
737 Signal {
738 name: "axisYRightChanged"
738 name: "axisYRightChanged"
739 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
739 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
740 }
740 }
741 Signal {
741 Signal {
742 name: "clicked"
742 name: "clicked"
743 Parameter { name: "boxset"; type: "DeclarativeBoxSet"; isPointer: true }
743 Parameter { name: "boxset"; type: "DeclarativeBoxSet"; isPointer: true }
744 }
744 }
745 Signal {
745 Signal {
746 name: "hovered"
746 name: "hovered"
747 Parameter { name: "status"; type: "bool" }
747 Parameter { name: "status"; type: "bool" }
748 Parameter { name: "boxset"; type: "DeclarativeBoxSet"; isPointer: true }
748 Parameter { name: "boxset"; type: "DeclarativeBoxSet"; isPointer: true }
749 }
749 }
750 Signal {
750 Signal {
751 name: "pressed"
751 name: "pressed"
752 Parameter { name: "boxset"; type: "DeclarativeBoxSet"; isPointer: true }
752 Parameter { name: "boxset"; type: "DeclarativeBoxSet"; isPointer: true }
753 }
753 }
754 Signal {
754 Signal {
755 name: "released"
755 name: "released"
756 Parameter { name: "boxset"; type: "DeclarativeBoxSet"; isPointer: true }
756 Parameter { name: "boxset"; type: "DeclarativeBoxSet"; isPointer: true }
757 }
757 }
758 Signal {
758 Signal {
759 name: "doubleClicked"
759 name: "doubleClicked"
760 Parameter { name: "boxset"; type: "DeclarativeBoxSet"; isPointer: true }
760 Parameter { name: "boxset"; type: "DeclarativeBoxSet"; isPointer: true }
761 }
761 }
762 Signal {
762 Signal {
763 name: "brushFilenameChanged"
763 name: "brushFilenameChanged"
764 revision: 1
764 revision: 1
765 Parameter { name: "brushFilename"; type: "string" }
765 Parameter { name: "brushFilename"; type: "string" }
766 }
766 }
767 Method {
767 Method {
768 name: "appendSeriesChildren"
768 name: "appendSeriesChildren"
769 Parameter { name: "list"; type: "QObject"; isList: true; isPointer: true }
769 Parameter { name: "list"; type: "QObject"; isList: true; isPointer: true }
770 Parameter { name: "element"; type: "QObject"; isPointer: true }
770 Parameter { name: "element"; type: "QObject"; isPointer: true }
771 }
771 }
772 Method {
772 Method {
773 name: "onHovered"
773 name: "onHovered"
774 Parameter { name: "status"; type: "bool" }
774 Parameter { name: "status"; type: "bool" }
775 Parameter { name: "boxset"; type: "QBoxSet"; isPointer: true }
775 Parameter { name: "boxset"; type: "QBoxSet"; isPointer: true }
776 }
776 }
777 Method {
777 Method {
778 name: "onClicked"
778 name: "onClicked"
779 Parameter { name: "boxset"; type: "QBoxSet"; isPointer: true }
779 Parameter { name: "boxset"; type: "QBoxSet"; isPointer: true }
780 }
780 }
781 Method {
781 Method {
782 name: "onPressed"
782 name: "onPressed"
783 Parameter { name: "boxset"; type: "QBoxSet"; isPointer: true }
783 Parameter { name: "boxset"; type: "QBoxSet"; isPointer: true }
784 }
784 }
785 Method {
785 Method {
786 name: "onReleased"
786 name: "onReleased"
787 Parameter { name: "boxset"; type: "QBoxSet"; isPointer: true }
787 Parameter { name: "boxset"; type: "QBoxSet"; isPointer: true }
788 }
788 }
789 Method {
789 Method {
790 name: "onDoubleClicked"
790 name: "onDoubleClicked"
791 Parameter { name: "boxset"; type: "QBoxSet"; isPointer: true }
791 Parameter { name: "boxset"; type: "QBoxSet"; isPointer: true }
792 }
792 }
793 Method {
793 Method {
794 name: "at"
794 name: "at"
795 type: "DeclarativeBoxSet*"
795 type: "DeclarativeBoxSet*"
796 Parameter { name: "index"; type: "int" }
796 Parameter { name: "index"; type: "int" }
797 }
797 }
798 Method {
798 Method {
799 name: "append"
799 name: "append"
800 type: "DeclarativeBoxSet*"
800 type: "DeclarativeBoxSet*"
801 Parameter { name: "label"; type: "string" }
801 Parameter { name: "label"; type: "string" }
802 Parameter { name: "values"; type: "QVariantList" }
802 Parameter { name: "values"; type: "QVariantList" }
803 }
803 }
804 Method {
804 Method {
805 name: "append"
805 name: "append"
806 Parameter { name: "box"; type: "DeclarativeBoxSet"; isPointer: true }
806 Parameter { name: "box"; type: "DeclarativeBoxSet"; isPointer: true }
807 }
807 }
808 Method {
808 Method {
809 name: "insert"
809 name: "insert"
810 type: "DeclarativeBoxSet*"
810 type: "DeclarativeBoxSet*"
811 Parameter { name: "index"; type: "int" }
811 Parameter { name: "index"; type: "int" }
812 Parameter { name: "label"; type: "string" }
812 Parameter { name: "label"; type: "string" }
813 Parameter { name: "values"; type: "QVariantList" }
813 Parameter { name: "values"; type: "QVariantList" }
814 }
814 }
815 Method {
815 Method {
816 name: "remove"
816 name: "remove"
817 type: "bool"
817 type: "bool"
818 Parameter { name: "box"; type: "DeclarativeBoxSet"; isPointer: true }
818 Parameter { name: "box"; type: "DeclarativeBoxSet"; isPointer: true }
819 }
819 }
820 Method { name: "clear" }
820 Method { name: "clear" }
821 }
821 }
822 Component {
822 Component {
823 name: "QtCharts::DeclarativeBoxSet"
823 name: "QtCharts::DeclarativeBoxSet"
824 prototype: "QtCharts::QBoxSet"
824 prototype: "QtCharts::QBoxSet"
825 exports: [
825 exports: [
826 "QtCharts/BoxSet 1.3",
826 "QtCharts/BoxSet 1.3",
827 "QtCharts/BoxSet 1.4",
827 "QtCharts/BoxSet 1.4",
828 "QtCharts/BoxSet 2.0"
828 "QtCharts/BoxSet 2.0"
829 ]
829 ]
830 exportMetaObjectRevisions: [0, 1, 1]
830 exportMetaObjectRevisions: [0, 1, 1]
831 Enum {
831 Enum {
832 name: "ValuePositions"
832 name: "ValuePositions"
833 values: {
833 values: {
834 "LowerExtreme": 0,
834 "LowerExtreme": 0,
835 "LowerQuartile": 1,
835 "LowerQuartile": 1,
836 "Median": 2,
836 "Median": 2,
837 "UpperQuartile": 3,
837 "UpperQuartile": 3,
838 "UpperExtreme": 4
838 "UpperExtreme": 4
839 }
839 }
840 }
840 }
841 Property { name: "values"; type: "QVariantList" }
841 Property { name: "values"; type: "QVariantList" }
842 Property { name: "label"; type: "string" }
842 Property { name: "label"; type: "string" }
843 Property { name: "count"; type: "int"; isReadonly: true }
843 Property { name: "count"; type: "int"; isReadonly: true }
844 Property { name: "brushFilename"; revision: 1; type: "string" }
844 Property { name: "brushFilename"; revision: 1; type: "string" }
845 Signal { name: "changedValues" }
845 Signal { name: "changedValues" }
846 Signal {
846 Signal {
847 name: "changedValue"
847 name: "changedValue"
848 Parameter { name: "index"; type: "int" }
848 Parameter { name: "index"; type: "int" }
849 }
849 }
850 Signal {
850 Signal {
851 name: "brushFilenameChanged"
851 name: "brushFilenameChanged"
852 revision: 1
852 revision: 1
853 Parameter { name: "brushFilename"; type: "string" }
853 Parameter { name: "brushFilename"; type: "string" }
854 }
854 }
855 Method {
855 Method {
856 name: "append"
856 name: "append"
857 Parameter { name: "value"; type: "double" }
857 Parameter { name: "value"; type: "double" }
858 }
858 }
859 Method { name: "clear" }
859 Method { name: "clear" }
860 Method {
860 Method {
861 name: "at"
861 name: "at"
862 type: "double"
862 type: "double"
863 Parameter { name: "index"; type: "int" }
863 Parameter { name: "index"; type: "int" }
864 }
864 }
865 Method {
865 Method {
866 name: "setValue"
866 name: "setValue"
867 Parameter { name: "index"; type: "int" }
867 Parameter { name: "index"; type: "int" }
868 Parameter { name: "value"; type: "double" }
868 Parameter { name: "value"; type: "double" }
869 }
869 }
870 }
870 }
871 Component {
871 Component {
872 name: "QtCharts::DeclarativeCategoryAxis"
872 name: "QtCharts::DeclarativeCategoryAxis"
873 defaultProperty: "axisChildren"
873 defaultProperty: "axisChildren"
874 prototype: "QtCharts::QCategoryAxis"
874 prototype: "QtCharts::QCategoryAxis"
875 exports: [
875 exports: [
876 "QtCharts/CategoryAxis 1.1",
876 "QtCharts/CategoryAxis 1.1",
877 "QtCharts/CategoryAxis 2.0",
877 "QtCharts/CategoryAxis 2.0",
878 "QtCharts/CategoryAxis 2.1"
878 "QtCharts/CategoryAxis 2.1"
879 ]
879 ]
880 exportMetaObjectRevisions: [0, 0, 1]
880 exportMetaObjectRevisions: [0, 0, 1]
881 Enum {
881 Enum {
882 name: "AxisLabelsPosition"
882 name: "AxisLabelsPosition"
883 values: {
883 values: {
884 "AxisLabelsPositionCenter": 0,
884 "AxisLabelsPositionCenter": 0,
885 "AxisLabelsPositionOnValue": 1
885 "AxisLabelsPositionOnValue": 1
886 }
886 }
887 }
887 }
888 Property { name: "axisChildren"; type: "QObject"; isList: true; isReadonly: true }
888 Property { name: "axisChildren"; type: "QObject"; isList: true; isReadonly: true }
889 Property { name: "labelsPosition"; revision: 1; type: "AxisLabelsPosition" }
889 Property { name: "labelsPosition"; revision: 1; type: "AxisLabelsPosition" }
890 Signal {
890 Signal {
891 name: "labelsPositionChanged"
891 name: "labelsPositionChanged"
892 revision: 1
892 revision: 1
893 Parameter { name: "position"; type: "AxisLabelsPosition" }
893 Parameter { name: "position"; type: "AxisLabelsPosition" }
894 }
894 }
895 Method {
895 Method {
896 name: "append"
896 name: "append"
897 Parameter { name: "label"; type: "string" }
897 Parameter { name: "label"; type: "string" }
898 Parameter { name: "categoryEndValue"; type: "double" }
898 Parameter { name: "categoryEndValue"; type: "double" }
899 }
899 }
900 Method {
900 Method {
901 name: "remove"
901 name: "remove"
902 Parameter { name: "label"; type: "string" }
902 Parameter { name: "label"; type: "string" }
903 }
903 }
904 Method {
904 Method {
905 name: "replace"
905 name: "replace"
906 Parameter { name: "oldLabel"; type: "string" }
906 Parameter { name: "oldLabel"; type: "string" }
907 Parameter { name: "newLabel"; type: "string" }
907 Parameter { name: "newLabel"; type: "string" }
908 }
908 }
909 Method {
909 Method {
910 name: "appendAxisChildren"
910 name: "appendAxisChildren"
911 Parameter { name: "list"; type: "QObject"; isList: true; isPointer: true }
911 Parameter { name: "list"; type: "QObject"; isList: true; isPointer: true }
912 Parameter { name: "element"; type: "QObject"; isPointer: true }
912 Parameter { name: "element"; type: "QObject"; isPointer: true }
913 }
913 }
914 }
914 }
915 Component {
915 Component {
916 name: "QtCharts::DeclarativeCategoryRange"
916 name: "QtCharts::DeclarativeCategoryRange"
917 prototype: "QObject"
917 prototype: "QObject"
918 exports: ["QtCharts/CategoryRange 1.1", "QtCharts/CategoryRange 2.0"]
918 exports: ["QtCharts/CategoryRange 1.1", "QtCharts/CategoryRange 2.0"]
919 exportMetaObjectRevisions: [0, 0]
919 exportMetaObjectRevisions: [0, 0]
920 Property { name: "endValue"; type: "double" }
920 Property { name: "endValue"; type: "double" }
921 Property { name: "label"; type: "string" }
921 Property { name: "label"; type: "string" }
922 }
922 }
923 Component {
923 Component {
924 name: "QtCharts::DeclarativeChart"
924 name: "QtCharts::DeclarativeChart"
925 defaultProperty: "data"
925 defaultProperty: "data"
926 prototype: "QQuickPaintedItem"
926 prototype: "QQuickPaintedItem"
927 exports: [
927 exports: [
928 "QtCharts/ChartView 1.0",
928 "QtCharts/ChartView 1.0",
929 "QtCharts/ChartView 1.1",
929 "QtCharts/ChartView 1.1",
930 "QtCharts/ChartView 1.2",
930 "QtCharts/ChartView 1.2",
931 "QtCharts/ChartView 1.3",
931 "QtCharts/ChartView 1.3",
932 "QtCharts/ChartView 2.0"
932 "QtCharts/ChartView 2.0",
933 "QtCharts/ChartView 2.1"
933 ]
934 ]
934 exportMetaObjectRevisions: [0, 1, 2, 3, 4]
935 exportMetaObjectRevisions: [0, 1, 2, 3, 4, 5]
935 Enum {
936 Enum {
936 name: "Theme"
937 name: "Theme"
937 values: {
938 values: {
938 "ChartThemeLight": 0,
939 "ChartThemeLight": 0,
939 "ChartThemeBlueCerulean": 1,
940 "ChartThemeBlueCerulean": 1,
940 "ChartThemeDark": 2,
941 "ChartThemeDark": 2,
941 "ChartThemeBrownSand": 3,
942 "ChartThemeBrownSand": 3,
942 "ChartThemeBlueNcs": 4,
943 "ChartThemeBlueNcs": 4,
943 "ChartThemeHighContrast": 5,
944 "ChartThemeHighContrast": 5,
944 "ChartThemeBlueIcy": 6,
945 "ChartThemeBlueIcy": 6,
945 "ChartThemeQt": 7
946 "ChartThemeQt": 7
946 }
947 }
947 }
948 }
948 Enum {
949 Enum {
949 name: "Animation"
950 name: "Animation"
950 values: {
951 values: {
951 "NoAnimation": 0,
952 "NoAnimation": 0,
952 "GridAxisAnimations": 1,
953 "GridAxisAnimations": 1,
953 "SeriesAnimations": 2,
954 "SeriesAnimations": 2,
954 "AllAnimations": 3
955 "AllAnimations": 3
955 }
956 }
956 }
957 }
957 Enum {
958 Enum {
958 name: "SeriesType"
959 name: "SeriesType"
959 values: {
960 values: {
960 "SeriesTypeLine": 0,
961 "SeriesTypeLine": 0,
961 "SeriesTypeArea": 1,
962 "SeriesTypeArea": 1,
962 "SeriesTypeBar": 2,
963 "SeriesTypeBar": 2,
963 "SeriesTypeStackedBar": 3,
964 "SeriesTypeStackedBar": 3,
964 "SeriesTypePercentBar": 4,
965 "SeriesTypePercentBar": 4,
965 "SeriesTypeBoxPlot": 5,
966 "SeriesTypeBoxPlot": 5,
966 "SeriesTypePie": 6,
967 "SeriesTypePie": 6,
967 "SeriesTypeScatter": 7,
968 "SeriesTypeScatter": 7,
968 "SeriesTypeSpline": 8,
969 "SeriesTypeSpline": 8,
969 "SeriesTypeHorizontalBar": 9,
970 "SeriesTypeHorizontalBar": 9,
970 "SeriesTypeHorizontalStackedBar": 10,
971 "SeriesTypeHorizontalStackedBar": 10,
971 "SeriesTypeHorizontalPercentBar": 11
972 "SeriesTypeHorizontalPercentBar": 11
972 }
973 }
973 }
974 }
974 Property { name: "theme"; type: "Theme" }
975 Property { name: "theme"; type: "Theme" }
975 Property { name: "animationOptions"; type: "Animation" }
976 Property { name: "animationOptions"; type: "Animation" }
976 Property { name: "title"; type: "string" }
977 Property { name: "title"; type: "string" }
977 Property { name: "titleFont"; type: "QFont" }
978 Property { name: "titleFont"; type: "QFont" }
978 Property { name: "titleColor"; type: "QColor" }
979 Property { name: "titleColor"; type: "QColor" }
979 Property { name: "legend"; type: "QLegend"; isReadonly: true; isPointer: true }
980 Property { name: "legend"; type: "QLegend"; isReadonly: true; isPointer: true }
980 Property { name: "count"; type: "int"; isReadonly: true }
981 Property { name: "count"; type: "int"; isReadonly: true }
981 Property { name: "backgroundColor"; type: "QColor" }
982 Property { name: "backgroundColor"; type: "QColor" }
982 Property { name: "dropShadowEnabled"; type: "bool" }
983 Property { name: "dropShadowEnabled"; type: "bool" }
983 Property { name: "backgroundRoundness"; revision: 3; type: "double" }
984 Property { name: "backgroundRoundness"; revision: 3; type: "double" }
984 Property {
985 Property {
985 name: "margins"
986 name: "margins"
986 revision: 2
987 revision: 2
987 type: "DeclarativeMargins"
988 type: "DeclarativeMargins"
988 isReadonly: true
989 isReadonly: true
989 isPointer: true
990 isPointer: true
990 }
991 }
991 Property { name: "plotArea"; revision: 1; type: "QRectF"; isReadonly: true }
992 Property { name: "plotArea"; revision: 1; type: "QRectF"; isReadonly: true }
992 Property { name: "plotAreaColor"; revision: 3; type: "QColor" }
993 Property { name: "plotAreaColor"; revision: 3; type: "QColor" }
993 Property { name: "axes"; revision: 2; type: "QAbstractAxis"; isList: true; isReadonly: true }
994 Property { name: "axes"; revision: 2; type: "QAbstractAxis"; isList: true; isReadonly: true }
994 Property { name: "localizeNumbers"; revision: 4; type: "bool" }
995 Property { name: "localizeNumbers"; revision: 4; type: "bool" }
995 Property { name: "locale"; revision: 4; type: "QLocale" }
996 Property { name: "locale"; revision: 4; type: "QLocale" }
996 Signal { name: "axisLabelsChanged" }
997 Signal { name: "axisLabelsChanged" }
997 Signal {
998 Signal {
998 name: "titleColorChanged"
999 name: "titleColorChanged"
999 Parameter { name: "color"; type: "QColor" }
1000 Parameter { name: "color"; type: "QColor" }
1000 }
1001 }
1001 Signal {
1002 Signal {
1002 name: "dropShadowEnabledChanged"
1003 name: "dropShadowEnabledChanged"
1003 Parameter { name: "enabled"; type: "bool" }
1004 Parameter { name: "enabled"; type: "bool" }
1004 }
1005 }
1005 Signal { name: "marginsChanged"; revision: 2 }
1006 Signal { name: "marginsChanged"; revision: 2 }
1006 Signal {
1007 Signal {
1007 name: "plotAreaChanged"
1008 name: "plotAreaChanged"
1008 Parameter { name: "plotArea"; type: "QRectF" }
1009 Parameter { name: "plotArea"; type: "QRectF" }
1009 }
1010 }
1010 Signal {
1011 Signal {
1011 name: "seriesAdded"
1012 name: "seriesAdded"
1012 Parameter { name: "series"; type: "QAbstractSeries"; isPointer: true }
1013 Parameter { name: "series"; type: "QAbstractSeries"; isPointer: true }
1013 }
1014 }
1014 Signal {
1015 Signal {
1015 name: "seriesRemoved"
1016 name: "seriesRemoved"
1016 Parameter { name: "series"; type: "QAbstractSeries"; isPointer: true }
1017 Parameter { name: "series"; type: "QAbstractSeries"; isPointer: true }
1017 }
1018 }
1018 Signal { name: "plotAreaColorChanged"; revision: 3 }
1019 Signal { name: "plotAreaColorChanged"; revision: 3 }
1019 Signal {
1020 Signal {
1020 name: "backgroundRoundnessChanged"
1021 name: "backgroundRoundnessChanged"
1021 revision: 3
1022 revision: 3
1022 Parameter { name: "diameter"; type: "double" }
1023 Parameter { name: "diameter"; type: "double" }
1023 }
1024 }
1024 Signal { name: "localizeNumbersChanged"; revision: 4 }
1025 Signal { name: "localizeNumbersChanged"; revision: 4 }
1025 Signal { name: "localeChanged"; revision: 4 }
1026 Signal { name: "localeChanged"; revision: 4 }
1026 Method {
1027 Method {
1027 name: "series"
1028 name: "series"
1028 type: "QAbstractSeries*"
1029 type: "QAbstractSeries*"
1029 Parameter { name: "index"; type: "int" }
1030 Parameter { name: "index"; type: "int" }
1030 }
1031 }
1031 Method {
1032 Method {
1032 name: "series"
1033 name: "series"
1033 type: "QAbstractSeries*"
1034 type: "QAbstractSeries*"
1034 Parameter { name: "seriesName"; type: "string" }
1035 Parameter { name: "seriesName"; type: "string" }
1035 }
1036 }
1036 Method {
1037 Method {
1037 name: "createSeries"
1038 name: "createSeries"
1038 type: "QAbstractSeries*"
1039 type: "QAbstractSeries*"
1039 Parameter { name: "type"; type: "int" }
1040 Parameter { name: "type"; type: "int" }
1040 Parameter { name: "name"; type: "string" }
1041 Parameter { name: "name"; type: "string" }
1041 Parameter { name: "axisX"; type: "QAbstractAxis"; isPointer: true }
1042 Parameter { name: "axisX"; type: "QAbstractAxis"; isPointer: true }
1042 Parameter { name: "axisY"; type: "QAbstractAxis"; isPointer: true }
1043 Parameter { name: "axisY"; type: "QAbstractAxis"; isPointer: true }
1043 }
1044 }
1044 Method {
1045 Method {
1045 name: "createSeries"
1046 name: "createSeries"
1046 type: "QAbstractSeries*"
1047 type: "QAbstractSeries*"
1047 Parameter { name: "type"; type: "int" }
1048 Parameter { name: "type"; type: "int" }
1048 Parameter { name: "name"; type: "string" }
1049 Parameter { name: "name"; type: "string" }
1049 Parameter { name: "axisX"; type: "QAbstractAxis"; isPointer: true }
1050 Parameter { name: "axisX"; type: "QAbstractAxis"; isPointer: true }
1050 }
1051 }
1051 Method {
1052 Method {
1052 name: "createSeries"
1053 name: "createSeries"
1053 type: "QAbstractSeries*"
1054 type: "QAbstractSeries*"
1054 Parameter { name: "type"; type: "int" }
1055 Parameter { name: "type"; type: "int" }
1055 Parameter { name: "name"; type: "string" }
1056 Parameter { name: "name"; type: "string" }
1056 }
1057 }
1057 Method {
1058 Method {
1058 name: "createSeries"
1059 name: "createSeries"
1059 type: "QAbstractSeries*"
1060 type: "QAbstractSeries*"
1060 Parameter { name: "type"; type: "int" }
1061 Parameter { name: "type"; type: "int" }
1061 }
1062 }
1062 Method {
1063 Method {
1063 name: "removeSeries"
1064 name: "removeSeries"
1064 Parameter { name: "series"; type: "QAbstractSeries"; isPointer: true }
1065 Parameter { name: "series"; type: "QAbstractSeries"; isPointer: true }
1065 }
1066 }
1066 Method { name: "removeAllSeries" }
1067 Method { name: "removeAllSeries" }
1067 Method {
1068 Method {
1068 name: "setAxisX"
1069 name: "setAxisX"
1069 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
1070 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
1070 Parameter { name: "series"; type: "QAbstractSeries"; isPointer: true }
1071 Parameter { name: "series"; type: "QAbstractSeries"; isPointer: true }
1071 }
1072 }
1072 Method {
1073 Method {
1073 name: "setAxisX"
1074 name: "setAxisX"
1074 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
1075 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
1075 }
1076 }
1076 Method {
1077 Method {
1077 name: "setAxisY"
1078 name: "setAxisY"
1078 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
1079 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
1079 Parameter { name: "series"; type: "QAbstractSeries"; isPointer: true }
1080 Parameter { name: "series"; type: "QAbstractSeries"; isPointer: true }
1080 }
1081 }
1081 Method {
1082 Method {
1082 name: "setAxisY"
1083 name: "setAxisY"
1083 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
1084 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
1084 }
1085 }
1085 Method {
1086 Method {
1086 name: "axisX"
1087 name: "axisX"
1087 type: "QAbstractAxis*"
1088 type: "QAbstractAxis*"
1088 Parameter { name: "series"; type: "QAbstractSeries"; isPointer: true }
1089 Parameter { name: "series"; type: "QAbstractSeries"; isPointer: true }
1089 }
1090 }
1090 Method { name: "axisX"; type: "QAbstractAxis*" }
1091 Method { name: "axisX"; type: "QAbstractAxis*" }
1091 Method {
1092 Method {
1092 name: "axisY"
1093 name: "axisY"
1093 type: "QAbstractAxis*"
1094 type: "QAbstractAxis*"
1094 Parameter { name: "series"; type: "QAbstractSeries"; isPointer: true }
1095 Parameter { name: "series"; type: "QAbstractSeries"; isPointer: true }
1095 }
1096 }
1096 Method { name: "axisY"; type: "QAbstractAxis*" }
1097 Method { name: "axisY"; type: "QAbstractAxis*" }
1097 Method {
1098 Method {
1098 name: "zoom"
1099 name: "zoom"
1099 Parameter { name: "factor"; type: "double" }
1100 Parameter { name: "factor"; type: "double" }
1100 }
1101 }
1102 Method { name: "zoomIn"; revision: 5 }
1103 Method {
1104 name: "zoomIn"
1105 revision: 5
1106 Parameter { name: "rectangle"; type: "QRectF" }
1107 }
1108 Method { name: "zoomOut"; revision: 5 }
1109 Method { name: "zoomReset"; revision: 5 }
1101 Method {
1110 Method {
1102 name: "scrollLeft"
1111 name: "scrollLeft"
1103 Parameter { name: "pixels"; type: "double" }
1112 Parameter { name: "pixels"; type: "double" }
1104 }
1113 }
1105 Method {
1114 Method {
1106 name: "scrollRight"
1115 name: "scrollRight"
1107 Parameter { name: "pixels"; type: "double" }
1116 Parameter { name: "pixels"; type: "double" }
1108 }
1117 }
1109 Method {
1118 Method {
1110 name: "scrollUp"
1119 name: "scrollUp"
1111 Parameter { name: "pixels"; type: "double" }
1120 Parameter { name: "pixels"; type: "double" }
1112 }
1121 }
1113 Method {
1122 Method {
1114 name: "scrollDown"
1123 name: "scrollDown"
1115 Parameter { name: "pixels"; type: "double" }
1124 Parameter { name: "pixels"; type: "double" }
1116 }
1125 }
1117 Method {
1126 Method {
1118 name: "mapToValue"
1127 name: "mapToValue"
1119 revision: 5
1128 revision: 5
1120 type: "QPointF"
1129 type: "QPointF"
1121 Parameter { name: "position"; type: "QPointF" }
1130 Parameter { name: "position"; type: "QPointF" }
1122 Parameter { name: "series"; type: "QAbstractSeries"; isPointer: true }
1131 Parameter { name: "series"; type: "QAbstractSeries"; isPointer: true }
1123 }
1132 }
1124 Method {
1133 Method {
1125 name: "mapToValue"
1134 name: "mapToValue"
1126 revision: 5
1135 revision: 5
1127 type: "QPointF"
1136 type: "QPointF"
1128 Parameter { name: "position"; type: "QPointF" }
1137 Parameter { name: "position"; type: "QPointF" }
1129 }
1138 }
1130 Method {
1139 Method {
1131 name: "mapToPosition"
1140 name: "mapToPosition"
1132 revision: 5
1141 revision: 5
1133 type: "QPointF"
1142 type: "QPointF"
1134 Parameter { name: "value"; type: "QPointF" }
1143 Parameter { name: "value"; type: "QPointF" }
1135 Parameter { name: "series"; type: "QAbstractSeries"; isPointer: true }
1144 Parameter { name: "series"; type: "QAbstractSeries"; isPointer: true }
1136 }
1145 }
1137 Method {
1146 Method {
1138 name: "mapToPosition"
1147 name: "mapToPosition"
1139 revision: 5
1148 revision: 5
1140 type: "QPointF"
1149 type: "QPointF"
1141 Parameter { name: "value"; type: "QPointF" }
1150 Parameter { name: "value"; type: "QPointF" }
1142 }
1151 }
1143 }
1152 }
1144 Component {
1153 Component {
1145 name: "QtCharts::DeclarativeHorizontalBarSeries"
1154 name: "QtCharts::DeclarativeHorizontalBarSeries"
1146 defaultProperty: "seriesChildren"
1155 defaultProperty: "seriesChildren"
1147 prototype: "QtCharts::QHorizontalBarSeries"
1156 prototype: "QtCharts::QHorizontalBarSeries"
1148 exports: [
1157 exports: [
1149 "QtCharts/HorizontalBarSeries 1.1",
1158 "QtCharts/HorizontalBarSeries 1.1",
1150 "QtCharts/HorizontalBarSeries 1.2",
1159 "QtCharts/HorizontalBarSeries 1.2",
1151 "QtCharts/HorizontalBarSeries 2.0"
1160 "QtCharts/HorizontalBarSeries 2.0"
1152 ]
1161 ]
1153 exportMetaObjectRevisions: [1, 2, 2]
1162 exportMetaObjectRevisions: [1, 2, 2]
1154 Property { name: "axisX"; revision: 1; type: "QAbstractAxis"; isPointer: true }
1163 Property { name: "axisX"; revision: 1; type: "QAbstractAxis"; isPointer: true }
1155 Property { name: "axisY"; revision: 1; type: "QAbstractAxis"; isPointer: true }
1164 Property { name: "axisY"; revision: 1; type: "QAbstractAxis"; isPointer: true }
1156 Property { name: "axisXTop"; revision: 2; type: "QAbstractAxis"; isPointer: true }
1165 Property { name: "axisXTop"; revision: 2; type: "QAbstractAxis"; isPointer: true }
1157 Property { name: "axisYRight"; revision: 2; type: "QAbstractAxis"; isPointer: true }
1166 Property { name: "axisYRight"; revision: 2; type: "QAbstractAxis"; isPointer: true }
1158 Property { name: "seriesChildren"; type: "QObject"; isList: true; isReadonly: true }
1167 Property { name: "seriesChildren"; type: "QObject"; isList: true; isReadonly: true }
1159 Signal {
1168 Signal {
1160 name: "axisXChanged"
1169 name: "axisXChanged"
1161 revision: 1
1170 revision: 1
1162 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
1171 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
1163 }
1172 }
1164 Signal {
1173 Signal {
1165 name: "axisYChanged"
1174 name: "axisYChanged"
1166 revision: 1
1175 revision: 1
1167 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
1176 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
1168 }
1177 }
1169 Signal {
1178 Signal {
1170 name: "axisXTopChanged"
1179 name: "axisXTopChanged"
1171 revision: 2
1180 revision: 2
1172 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
1181 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
1173 }
1182 }
1174 Signal {
1183 Signal {
1175 name: "axisYRightChanged"
1184 name: "axisYRightChanged"
1176 revision: 2
1185 revision: 2
1177 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
1186 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
1178 }
1187 }
1179 Method {
1188 Method {
1180 name: "appendSeriesChildren"
1189 name: "appendSeriesChildren"
1181 Parameter { name: "list"; type: "QObject"; isList: true; isPointer: true }
1190 Parameter { name: "list"; type: "QObject"; isList: true; isPointer: true }
1182 Parameter { name: "element"; type: "QObject"; isPointer: true }
1191 Parameter { name: "element"; type: "QObject"; isPointer: true }
1183 }
1192 }
1184 Method {
1193 Method {
1185 name: "at"
1194 name: "at"
1186 type: "DeclarativeBarSet*"
1195 type: "DeclarativeBarSet*"
1187 Parameter { name: "index"; type: "int" }
1196 Parameter { name: "index"; type: "int" }
1188 }
1197 }
1189 Method {
1198 Method {
1190 name: "append"
1199 name: "append"
1191 type: "DeclarativeBarSet*"
1200 type: "DeclarativeBarSet*"
1192 Parameter { name: "label"; type: "string" }
1201 Parameter { name: "label"; type: "string" }
1193 Parameter { name: "values"; type: "QVariantList" }
1202 Parameter { name: "values"; type: "QVariantList" }
1194 }
1203 }
1195 Method {
1204 Method {
1196 name: "insert"
1205 name: "insert"
1197 type: "DeclarativeBarSet*"
1206 type: "DeclarativeBarSet*"
1198 Parameter { name: "index"; type: "int" }
1207 Parameter { name: "index"; type: "int" }
1199 Parameter { name: "label"; type: "string" }
1208 Parameter { name: "label"; type: "string" }
1200 Parameter { name: "values"; type: "QVariantList" }
1209 Parameter { name: "values"; type: "QVariantList" }
1201 }
1210 }
1202 Method {
1211 Method {
1203 name: "remove"
1212 name: "remove"
1204 type: "bool"
1213 type: "bool"
1205 Parameter { name: "barset"; type: "QBarSet"; isPointer: true }
1214 Parameter { name: "barset"; type: "QBarSet"; isPointer: true }
1206 }
1215 }
1207 Method { name: "clear" }
1216 Method { name: "clear" }
1208 }
1217 }
1209 Component {
1218 Component {
1210 name: "QtCharts::DeclarativeHorizontalPercentBarSeries"
1219 name: "QtCharts::DeclarativeHorizontalPercentBarSeries"
1211 defaultProperty: "seriesChildren"
1220 defaultProperty: "seriesChildren"
1212 prototype: "QtCharts::QHorizontalPercentBarSeries"
1221 prototype: "QtCharts::QHorizontalPercentBarSeries"
1213 exports: [
1222 exports: [
1214 "QtCharts/HorizontalPercentBarSeries 1.1",
1223 "QtCharts/HorizontalPercentBarSeries 1.1",
1215 "QtCharts/HorizontalPercentBarSeries 1.2",
1224 "QtCharts/HorizontalPercentBarSeries 1.2",
1216 "QtCharts/HorizontalPercentBarSeries 2.0"
1225 "QtCharts/HorizontalPercentBarSeries 2.0"
1217 ]
1226 ]
1218 exportMetaObjectRevisions: [1, 2, 2]
1227 exportMetaObjectRevisions: [1, 2, 2]
1219 Property { name: "axisX"; revision: 1; type: "QAbstractAxis"; isPointer: true }
1228 Property { name: "axisX"; revision: 1; type: "QAbstractAxis"; isPointer: true }
1220 Property { name: "axisY"; revision: 1; type: "QAbstractAxis"; isPointer: true }
1229 Property { name: "axisY"; revision: 1; type: "QAbstractAxis"; isPointer: true }
1221 Property { name: "axisXTop"; revision: 2; type: "QAbstractAxis"; isPointer: true }
1230 Property { name: "axisXTop"; revision: 2; type: "QAbstractAxis"; isPointer: true }
1222 Property { name: "axisYRight"; revision: 2; type: "QAbstractAxis"; isPointer: true }
1231 Property { name: "axisYRight"; revision: 2; type: "QAbstractAxis"; isPointer: true }
1223 Property { name: "seriesChildren"; type: "QObject"; isList: true; isReadonly: true }
1232 Property { name: "seriesChildren"; type: "QObject"; isList: true; isReadonly: true }
1224 Signal {
1233 Signal {
1225 name: "axisXChanged"
1234 name: "axisXChanged"
1226 revision: 1
1235 revision: 1
1227 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
1236 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
1228 }
1237 }
1229 Signal {
1238 Signal {
1230 name: "axisYChanged"
1239 name: "axisYChanged"
1231 revision: 1
1240 revision: 1
1232 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
1241 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
1233 }
1242 }
1234 Signal {
1243 Signal {
1235 name: "axisXTopChanged"
1244 name: "axisXTopChanged"
1236 revision: 2
1245 revision: 2
1237 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
1246 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
1238 }
1247 }
1239 Signal {
1248 Signal {
1240 name: "axisYRightChanged"
1249 name: "axisYRightChanged"
1241 revision: 2
1250 revision: 2
1242 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
1251 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
1243 }
1252 }
1244 Method {
1253 Method {
1245 name: "appendSeriesChildren"
1254 name: "appendSeriesChildren"
1246 Parameter { name: "list"; type: "QObject"; isList: true; isPointer: true }
1255 Parameter { name: "list"; type: "QObject"; isList: true; isPointer: true }
1247 Parameter { name: "element"; type: "QObject"; isPointer: true }
1256 Parameter { name: "element"; type: "QObject"; isPointer: true }
1248 }
1257 }
1249 Method {
1258 Method {
1250 name: "at"
1259 name: "at"
1251 type: "DeclarativeBarSet*"
1260 type: "DeclarativeBarSet*"
1252 Parameter { name: "index"; type: "int" }
1261 Parameter { name: "index"; type: "int" }
1253 }
1262 }
1254 Method {
1263 Method {
1255 name: "append"
1264 name: "append"
1256 type: "DeclarativeBarSet*"
1265 type: "DeclarativeBarSet*"
1257 Parameter { name: "label"; type: "string" }
1266 Parameter { name: "label"; type: "string" }
1258 Parameter { name: "values"; type: "QVariantList" }
1267 Parameter { name: "values"; type: "QVariantList" }
1259 }
1268 }
1260 Method {
1269 Method {
1261 name: "insert"
1270 name: "insert"
1262 type: "DeclarativeBarSet*"
1271 type: "DeclarativeBarSet*"
1263 Parameter { name: "index"; type: "int" }
1272 Parameter { name: "index"; type: "int" }
1264 Parameter { name: "label"; type: "string" }
1273 Parameter { name: "label"; type: "string" }
1265 Parameter { name: "values"; type: "QVariantList" }
1274 Parameter { name: "values"; type: "QVariantList" }
1266 }
1275 }
1267 Method {
1276 Method {
1268 name: "remove"
1277 name: "remove"
1269 type: "bool"
1278 type: "bool"
1270 Parameter { name: "barset"; type: "QBarSet"; isPointer: true }
1279 Parameter { name: "barset"; type: "QBarSet"; isPointer: true }
1271 }
1280 }
1272 Method { name: "clear" }
1281 Method { name: "clear" }
1273 }
1282 }
1274 Component {
1283 Component {
1275 name: "QtCharts::DeclarativeHorizontalStackedBarSeries"
1284 name: "QtCharts::DeclarativeHorizontalStackedBarSeries"
1276 defaultProperty: "seriesChildren"
1285 defaultProperty: "seriesChildren"
1277 prototype: "QtCharts::QHorizontalStackedBarSeries"
1286 prototype: "QtCharts::QHorizontalStackedBarSeries"
1278 exports: [
1287 exports: [
1279 "QtCharts/HorizontalStackedBarSeries 1.1",
1288 "QtCharts/HorizontalStackedBarSeries 1.1",
1280 "QtCharts/HorizontalStackedBarSeries 1.2",
1289 "QtCharts/HorizontalStackedBarSeries 1.2",
1281 "QtCharts/HorizontalStackedBarSeries 2.0"
1290 "QtCharts/HorizontalStackedBarSeries 2.0"
1282 ]
1291 ]
1283 exportMetaObjectRevisions: [1, 2, 2]
1292 exportMetaObjectRevisions: [1, 2, 2]
1284 Property { name: "axisX"; revision: 1; type: "QAbstractAxis"; isPointer: true }
1293 Property { name: "axisX"; revision: 1; type: "QAbstractAxis"; isPointer: true }
1285 Property { name: "axisY"; revision: 1; type: "QAbstractAxis"; isPointer: true }
1294 Property { name: "axisY"; revision: 1; type: "QAbstractAxis"; isPointer: true }
1286 Property { name: "axisXTop"; revision: 2; type: "QAbstractAxis"; isPointer: true }
1295 Property { name: "axisXTop"; revision: 2; type: "QAbstractAxis"; isPointer: true }
1287 Property { name: "axisYRight"; revision: 2; type: "QAbstractAxis"; isPointer: true }
1296 Property { name: "axisYRight"; revision: 2; type: "QAbstractAxis"; isPointer: true }
1288 Property { name: "seriesChildren"; type: "QObject"; isList: true; isReadonly: true }
1297 Property { name: "seriesChildren"; type: "QObject"; isList: true; isReadonly: true }
1289 Signal {
1298 Signal {
1290 name: "axisXChanged"
1299 name: "axisXChanged"
1291 revision: 1
1300 revision: 1
1292 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
1301 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
1293 }
1302 }
1294 Signal {
1303 Signal {
1295 name: "axisYChanged"
1304 name: "axisYChanged"
1296 revision: 1
1305 revision: 1
1297 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
1306 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
1298 }
1307 }
1299 Signal {
1308 Signal {
1300 name: "axisXTopChanged"
1309 name: "axisXTopChanged"
1301 revision: 2
1310 revision: 2
1302 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
1311 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
1303 }
1312 }
1304 Signal {
1313 Signal {
1305 name: "axisYRightChanged"
1314 name: "axisYRightChanged"
1306 revision: 2
1315 revision: 2
1307 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
1316 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
1308 }
1317 }
1309 Method {
1318 Method {
1310 name: "appendSeriesChildren"
1319 name: "appendSeriesChildren"
1311 Parameter { name: "list"; type: "QObject"; isList: true; isPointer: true }
1320 Parameter { name: "list"; type: "QObject"; isList: true; isPointer: true }
1312 Parameter { name: "element"; type: "QObject"; isPointer: true }
1321 Parameter { name: "element"; type: "QObject"; isPointer: true }
1313 }
1322 }
1314 Method {
1323 Method {
1315 name: "at"
1324 name: "at"
1316 type: "DeclarativeBarSet*"
1325 type: "DeclarativeBarSet*"
1317 Parameter { name: "index"; type: "int" }
1326 Parameter { name: "index"; type: "int" }
1318 }
1327 }
1319 Method {
1328 Method {
1320 name: "append"
1329 name: "append"
1321 type: "DeclarativeBarSet*"
1330 type: "DeclarativeBarSet*"
1322 Parameter { name: "label"; type: "string" }
1331 Parameter { name: "label"; type: "string" }
1323 Parameter { name: "values"; type: "QVariantList" }
1332 Parameter { name: "values"; type: "QVariantList" }
1324 }
1333 }
1325 Method {
1334 Method {
1326 name: "insert"
1335 name: "insert"
1327 type: "DeclarativeBarSet*"
1336 type: "DeclarativeBarSet*"
1328 Parameter { name: "index"; type: "int" }
1337 Parameter { name: "index"; type: "int" }
1329 Parameter { name: "label"; type: "string" }
1338 Parameter { name: "label"; type: "string" }
1330 Parameter { name: "values"; type: "QVariantList" }
1339 Parameter { name: "values"; type: "QVariantList" }
1331 }
1340 }
1332 Method {
1341 Method {
1333 name: "remove"
1342 name: "remove"
1334 type: "bool"
1343 type: "bool"
1335 Parameter { name: "barset"; type: "QBarSet"; isPointer: true }
1344 Parameter { name: "barset"; type: "QBarSet"; isPointer: true }
1336 }
1345 }
1337 Method { name: "clear" }
1346 Method { name: "clear" }
1338 }
1347 }
1339 Component {
1348 Component {
1340 name: "QtCharts::DeclarativeLineSeries"
1349 name: "QtCharts::DeclarativeLineSeries"
1341 defaultProperty: "declarativeChildren"
1350 defaultProperty: "declarativeChildren"
1342 prototype: "QtCharts::QLineSeries"
1351 prototype: "QtCharts::QLineSeries"
1343 exports: [
1352 exports: [
1344 "QtCharts/LineSeries 1.0",
1353 "QtCharts/LineSeries 1.0",
1345 "QtCharts/LineSeries 1.1",
1354 "QtCharts/LineSeries 1.1",
1346 "QtCharts/LineSeries 1.2",
1355 "QtCharts/LineSeries 1.2",
1347 "QtCharts/LineSeries 1.3",
1356 "QtCharts/LineSeries 1.3",
1348 "QtCharts/LineSeries 2.0"
1357 "QtCharts/LineSeries 2.0"
1349 ]
1358 ]
1350 exportMetaObjectRevisions: [0, 1, 2, 3, 3]
1359 exportMetaObjectRevisions: [0, 1, 2, 3, 3]
1351 Property { name: "count"; type: "int"; isReadonly: true }
1360 Property { name: "count"; type: "int"; isReadonly: true }
1352 Property { name: "axisX"; revision: 1; type: "QAbstractAxis"; isPointer: true }
1361 Property { name: "axisX"; revision: 1; type: "QAbstractAxis"; isPointer: true }
1353 Property { name: "axisY"; revision: 1; type: "QAbstractAxis"; isPointer: true }
1362 Property { name: "axisY"; revision: 1; type: "QAbstractAxis"; isPointer: true }
1354 Property { name: "axisXTop"; revision: 2; type: "QAbstractAxis"; isPointer: true }
1363 Property { name: "axisXTop"; revision: 2; type: "QAbstractAxis"; isPointer: true }
1355 Property { name: "axisYRight"; revision: 2; type: "QAbstractAxis"; isPointer: true }
1364 Property { name: "axisYRight"; revision: 2; type: "QAbstractAxis"; isPointer: true }
1356 Property { name: "axisAngular"; revision: 3; type: "QAbstractAxis"; isPointer: true }
1365 Property { name: "axisAngular"; revision: 3; type: "QAbstractAxis"; isPointer: true }
1357 Property { name: "axisRadial"; revision: 3; type: "QAbstractAxis"; isPointer: true }
1366 Property { name: "axisRadial"; revision: 3; type: "QAbstractAxis"; isPointer: true }
1358 Property { name: "width"; revision: 1; type: "double" }
1367 Property { name: "width"; revision: 1; type: "double" }
1359 Property { name: "style"; revision: 1; type: "Qt::PenStyle" }
1368 Property { name: "style"; revision: 1; type: "Qt::PenStyle" }
1360 Property { name: "capStyle"; revision: 1; type: "Qt::PenCapStyle" }
1369 Property { name: "capStyle"; revision: 1; type: "Qt::PenCapStyle" }
1361 Property { name: "declarativeChildren"; type: "QObject"; isList: true; isReadonly: true }
1370 Property { name: "declarativeChildren"; type: "QObject"; isList: true; isReadonly: true }
1362 Signal {
1371 Signal {
1363 name: "countChanged"
1372 name: "countChanged"
1364 Parameter { name: "count"; type: "int" }
1373 Parameter { name: "count"; type: "int" }
1365 }
1374 }
1366 Signal {
1375 Signal {
1367 name: "axisXChanged"
1376 name: "axisXChanged"
1368 revision: 1
1377 revision: 1
1369 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
1378 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
1370 }
1379 }
1371 Signal {
1380 Signal {
1372 name: "axisYChanged"
1381 name: "axisYChanged"
1373 revision: 1
1382 revision: 1
1374 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
1383 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
1375 }
1384 }
1376 Signal {
1385 Signal {
1377 name: "axisXTopChanged"
1386 name: "axisXTopChanged"
1378 revision: 2
1387 revision: 2
1379 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
1388 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
1380 }
1389 }
1381 Signal {
1390 Signal {
1382 name: "axisYRightChanged"
1391 name: "axisYRightChanged"
1383 revision: 2
1392 revision: 2
1384 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
1393 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
1385 }
1394 }
1386 Signal {
1395 Signal {
1387 name: "axisAngularChanged"
1396 name: "axisAngularChanged"
1388 revision: 3
1397 revision: 3
1389 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
1398 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
1390 }
1399 }
1391 Signal {
1400 Signal {
1392 name: "axisRadialChanged"
1401 name: "axisRadialChanged"
1393 revision: 3
1402 revision: 3
1394 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
1403 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
1395 }
1404 }
1396 Signal {
1405 Signal {
1397 name: "widthChanged"
1406 name: "widthChanged"
1398 revision: 1
1407 revision: 1
1399 Parameter { name: "width"; type: "double" }
1408 Parameter { name: "width"; type: "double" }
1400 }
1409 }
1401 Signal {
1410 Signal {
1402 name: "styleChanged"
1411 name: "styleChanged"
1403 revision: 1
1412 revision: 1
1404 Parameter { name: "style"; type: "Qt::PenStyle" }
1413 Parameter { name: "style"; type: "Qt::PenStyle" }
1405 }
1414 }
1406 Signal {
1415 Signal {
1407 name: "capStyleChanged"
1416 name: "capStyleChanged"
1408 revision: 1
1417 revision: 1
1409 Parameter { name: "capStyle"; type: "Qt::PenCapStyle" }
1418 Parameter { name: "capStyle"; type: "Qt::PenCapStyle" }
1410 }
1419 }
1411 Method {
1420 Method {
1412 name: "appendDeclarativeChildren"
1421 name: "appendDeclarativeChildren"
1413 Parameter { name: "list"; type: "QObject"; isList: true; isPointer: true }
1422 Parameter { name: "list"; type: "QObject"; isList: true; isPointer: true }
1414 Parameter { name: "element"; type: "QObject"; isPointer: true }
1423 Parameter { name: "element"; type: "QObject"; isPointer: true }
1415 }
1424 }
1416 Method {
1425 Method {
1417 name: "handleCountChanged"
1426 name: "handleCountChanged"
1418 Parameter { name: "index"; type: "int" }
1427 Parameter { name: "index"; type: "int" }
1419 }
1428 }
1420 Method {
1429 Method {
1421 name: "append"
1430 name: "append"
1422 Parameter { name: "x"; type: "double" }
1431 Parameter { name: "x"; type: "double" }
1423 Parameter { name: "y"; type: "double" }
1432 Parameter { name: "y"; type: "double" }
1424 }
1433 }
1425 Method {
1434 Method {
1426 name: "replace"
1435 name: "replace"
1427 Parameter { name: "oldX"; type: "double" }
1436 Parameter { name: "oldX"; type: "double" }
1428 Parameter { name: "oldY"; type: "double" }
1437 Parameter { name: "oldY"; type: "double" }
1429 Parameter { name: "newX"; type: "double" }
1438 Parameter { name: "newX"; type: "double" }
1430 Parameter { name: "newY"; type: "double" }
1439 Parameter { name: "newY"; type: "double" }
1431 }
1440 }
1432 Method {
1441 Method {
1433 name: "replace"
1442 name: "replace"
1434 revision: 3
1443 revision: 3
1435 Parameter { name: "index"; type: "int" }
1444 Parameter { name: "index"; type: "int" }
1436 Parameter { name: "newX"; type: "double" }
1445 Parameter { name: "newX"; type: "double" }
1437 Parameter { name: "newY"; type: "double" }
1446 Parameter { name: "newY"; type: "double" }
1438 }
1447 }
1439 Method {
1448 Method {
1440 name: "remove"
1449 name: "remove"
1441 Parameter { name: "x"; type: "double" }
1450 Parameter { name: "x"; type: "double" }
1442 Parameter { name: "y"; type: "double" }
1451 Parameter { name: "y"; type: "double" }
1443 }
1452 }
1444 Method {
1453 Method {
1445 name: "remove"
1454 name: "remove"
1446 revision: 3
1455 revision: 3
1447 Parameter { name: "index"; type: "int" }
1456 Parameter { name: "index"; type: "int" }
1448 }
1457 }
1449 Method {
1458 Method {
1450 name: "insert"
1459 name: "insert"
1451 Parameter { name: "index"; type: "int" }
1460 Parameter { name: "index"; type: "int" }
1452 Parameter { name: "x"; type: "double" }
1461 Parameter { name: "x"; type: "double" }
1453 Parameter { name: "y"; type: "double" }
1462 Parameter { name: "y"; type: "double" }
1454 }
1463 }
1455 Method { name: "clear" }
1464 Method { name: "clear" }
1456 Method {
1465 Method {
1457 name: "at"
1466 name: "at"
1458 type: "QPointF"
1467 type: "QPointF"
1459 Parameter { name: "index"; type: "int" }
1468 Parameter { name: "index"; type: "int" }
1460 }
1469 }
1461 }
1470 }
1462 Component {
1471 Component {
1463 name: "QtCharts::DeclarativeMargins"
1472 name: "QtCharts::DeclarativeMargins"
1464 prototype: "QObject"
1473 prototype: "QObject"
1465 exports: ["QtCharts/Margins 1.1", "QtCharts/Margins 2.0"]
1474 exports: ["QtCharts/Margins 1.1", "QtCharts/Margins 2.0"]
1466 isCreatable: false
1475 isCreatable: false
1467 exportMetaObjectRevisions: [0, 0]
1476 exportMetaObjectRevisions: [0, 0]
1468 Property { name: "top"; type: "int" }
1477 Property { name: "top"; type: "int" }
1469 Property { name: "bottom"; type: "int" }
1478 Property { name: "bottom"; type: "int" }
1470 Property { name: "left"; type: "int" }
1479 Property { name: "left"; type: "int" }
1471 Property { name: "right"; type: "int" }
1480 Property { name: "right"; type: "int" }
1472 Signal {
1481 Signal {
1473 name: "topChanged"
1482 name: "topChanged"
1474 Parameter { name: "top"; type: "int" }
1483 Parameter { name: "top"; type: "int" }
1475 Parameter { name: "bottom"; type: "int" }
1484 Parameter { name: "bottom"; type: "int" }
1476 Parameter { name: "left"; type: "int" }
1485 Parameter { name: "left"; type: "int" }
1477 Parameter { name: "right"; type: "int" }
1486 Parameter { name: "right"; type: "int" }
1478 }
1487 }
1479 Signal {
1488 Signal {
1480 name: "bottomChanged"
1489 name: "bottomChanged"
1481 Parameter { name: "top"; type: "int" }
1490 Parameter { name: "top"; type: "int" }
1482 Parameter { name: "bottom"; type: "int" }
1491 Parameter { name: "bottom"; type: "int" }
1483 Parameter { name: "left"; type: "int" }
1492 Parameter { name: "left"; type: "int" }
1484 Parameter { name: "right"; type: "int" }
1493 Parameter { name: "right"; type: "int" }
1485 }
1494 }
1486 Signal {
1495 Signal {
1487 name: "leftChanged"
1496 name: "leftChanged"
1488 Parameter { name: "top"; type: "int" }
1497 Parameter { name: "top"; type: "int" }
1489 Parameter { name: "bottom"; type: "int" }
1498 Parameter { name: "bottom"; type: "int" }
1490 Parameter { name: "left"; type: "int" }
1499 Parameter { name: "left"; type: "int" }
1491 Parameter { name: "right"; type: "int" }
1500 Parameter { name: "right"; type: "int" }
1492 }
1501 }
1493 Signal {
1502 Signal {
1494 name: "rightChanged"
1503 name: "rightChanged"
1495 Parameter { name: "top"; type: "int" }
1504 Parameter { name: "top"; type: "int" }
1496 Parameter { name: "bottom"; type: "int" }
1505 Parameter { name: "bottom"; type: "int" }
1497 Parameter { name: "left"; type: "int" }
1506 Parameter { name: "left"; type: "int" }
1498 Parameter { name: "right"; type: "int" }
1507 Parameter { name: "right"; type: "int" }
1499 }
1508 }
1500 }
1509 }
1501 Component {
1510 Component {
1502 name: "QtCharts::DeclarativePercentBarSeries"
1511 name: "QtCharts::DeclarativePercentBarSeries"
1503 defaultProperty: "seriesChildren"
1512 defaultProperty: "seriesChildren"
1504 prototype: "QtCharts::QPercentBarSeries"
1513 prototype: "QtCharts::QPercentBarSeries"
1505 exports: [
1514 exports: [
1506 "QtCharts/PercentBarSeries 1.0",
1515 "QtCharts/PercentBarSeries 1.0",
1507 "QtCharts/PercentBarSeries 1.1",
1516 "QtCharts/PercentBarSeries 1.1",
1508 "QtCharts/PercentBarSeries 1.2",
1517 "QtCharts/PercentBarSeries 1.2",
1509 "QtCharts/PercentBarSeries 2.0"
1518 "QtCharts/PercentBarSeries 2.0"
1510 ]
1519 ]
1511 exportMetaObjectRevisions: [0, 1, 2, 2]
1520 exportMetaObjectRevisions: [0, 1, 2, 2]
1512 Property { name: "axisX"; revision: 1; type: "QAbstractAxis"; isPointer: true }
1521 Property { name: "axisX"; revision: 1; type: "QAbstractAxis"; isPointer: true }
1513 Property { name: "axisY"; revision: 1; type: "QAbstractAxis"; isPointer: true }
1522 Property { name: "axisY"; revision: 1; type: "QAbstractAxis"; isPointer: true }
1514 Property { name: "axisXTop"; revision: 2; type: "QAbstractAxis"; isPointer: true }
1523 Property { name: "axisXTop"; revision: 2; type: "QAbstractAxis"; isPointer: true }
1515 Property { name: "axisYRight"; revision: 2; type: "QAbstractAxis"; isPointer: true }
1524 Property { name: "axisYRight"; revision: 2; type: "QAbstractAxis"; isPointer: true }
1516 Property { name: "seriesChildren"; type: "QObject"; isList: true; isReadonly: true }
1525 Property { name: "seriesChildren"; type: "QObject"; isList: true; isReadonly: true }
1517 Signal {
1526 Signal {
1518 name: "axisXChanged"
1527 name: "axisXChanged"
1519 revision: 1
1528 revision: 1
1520 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
1529 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
1521 }
1530 }
1522 Signal {
1531 Signal {
1523 name: "axisYChanged"
1532 name: "axisYChanged"
1524 revision: 1
1533 revision: 1
1525 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
1534 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
1526 }
1535 }
1527 Signal {
1536 Signal {
1528 name: "axisXTopChanged"
1537 name: "axisXTopChanged"
1529 revision: 2
1538 revision: 2
1530 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
1539 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
1531 }
1540 }
1532 Signal {
1541 Signal {
1533 name: "axisYRightChanged"
1542 name: "axisYRightChanged"
1534 revision: 2
1543 revision: 2
1535 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
1544 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
1536 }
1545 }
1537 Method {
1546 Method {
1538 name: "appendSeriesChildren"
1547 name: "appendSeriesChildren"
1539 Parameter { name: "list"; type: "QObject"; isList: true; isPointer: true }
1548 Parameter { name: "list"; type: "QObject"; isList: true; isPointer: true }
1540 Parameter { name: "element"; type: "QObject"; isPointer: true }
1549 Parameter { name: "element"; type: "QObject"; isPointer: true }
1541 }
1550 }
1542 Method {
1551 Method {
1543 name: "at"
1552 name: "at"
1544 type: "DeclarativeBarSet*"
1553 type: "DeclarativeBarSet*"
1545 Parameter { name: "index"; type: "int" }
1554 Parameter { name: "index"; type: "int" }
1546 }
1555 }
1547 Method {
1556 Method {
1548 name: "append"
1557 name: "append"
1549 type: "DeclarativeBarSet*"
1558 type: "DeclarativeBarSet*"
1550 Parameter { name: "label"; type: "string" }
1559 Parameter { name: "label"; type: "string" }
1551 Parameter { name: "values"; type: "QVariantList" }
1560 Parameter { name: "values"; type: "QVariantList" }
1552 }
1561 }
1553 Method {
1562 Method {
1554 name: "insert"
1563 name: "insert"
1555 type: "DeclarativeBarSet*"
1564 type: "DeclarativeBarSet*"
1556 Parameter { name: "index"; type: "int" }
1565 Parameter { name: "index"; type: "int" }
1557 Parameter { name: "label"; type: "string" }
1566 Parameter { name: "label"; type: "string" }
1558 Parameter { name: "values"; type: "QVariantList" }
1567 Parameter { name: "values"; type: "QVariantList" }
1559 }
1568 }
1560 Method {
1569 Method {
1561 name: "remove"
1570 name: "remove"
1562 type: "bool"
1571 type: "bool"
1563 Parameter { name: "barset"; type: "QBarSet"; isPointer: true }
1572 Parameter { name: "barset"; type: "QBarSet"; isPointer: true }
1564 }
1573 }
1565 Method { name: "clear" }
1574 Method { name: "clear" }
1566 }
1575 }
1567 Component {
1576 Component {
1568 name: "QtCharts::DeclarativePieSeries"
1577 name: "QtCharts::DeclarativePieSeries"
1569 defaultProperty: "seriesChildren"
1578 defaultProperty: "seriesChildren"
1570 prototype: "QtCharts::QPieSeries"
1579 prototype: "QtCharts::QPieSeries"
1571 exports: [
1580 exports: [
1572 "QtCharts/PieSeries 1.0",
1581 "QtCharts/PieSeries 1.0",
1573 "QtCharts/PieSeries 1.1",
1582 "QtCharts/PieSeries 1.1",
1574 "QtCharts/PieSeries 2.0"
1583 "QtCharts/PieSeries 2.0"
1575 ]
1584 ]
1576 exportMetaObjectRevisions: [0, 0, 0]
1585 exportMetaObjectRevisions: [0, 0, 0]
1577 Property { name: "seriesChildren"; type: "QObject"; isList: true; isReadonly: true }
1586 Property { name: "seriesChildren"; type: "QObject"; isList: true; isReadonly: true }
1578 Signal {
1587 Signal {
1579 name: "sliceAdded"
1588 name: "sliceAdded"
1580 Parameter { name: "slice"; type: "QPieSlice"; isPointer: true }
1589 Parameter { name: "slice"; type: "QPieSlice"; isPointer: true }
1581 }
1590 }
1582 Signal {
1591 Signal {
1583 name: "sliceRemoved"
1592 name: "sliceRemoved"
1584 Parameter { name: "slice"; type: "QPieSlice"; isPointer: true }
1593 Parameter { name: "slice"; type: "QPieSlice"; isPointer: true }
1585 }
1594 }
1586 Method {
1595 Method {
1587 name: "appendSeriesChildren"
1596 name: "appendSeriesChildren"
1588 Parameter { name: "list"; type: "QObject"; isList: true; isPointer: true }
1597 Parameter { name: "list"; type: "QObject"; isList: true; isPointer: true }
1589 Parameter { name: "element"; type: "QObject"; isPointer: true }
1598 Parameter { name: "element"; type: "QObject"; isPointer: true }
1590 }
1599 }
1591 Method {
1600 Method {
1592 name: "handleAdded"
1601 name: "handleAdded"
1593 Parameter { name: "slices"; type: "QList<QPieSlice*>" }
1602 Parameter { name: "slices"; type: "QList<QPieSlice*>" }
1594 }
1603 }
1595 Method {
1604 Method {
1596 name: "handleRemoved"
1605 name: "handleRemoved"
1597 Parameter { name: "slices"; type: "QList<QPieSlice*>" }
1606 Parameter { name: "slices"; type: "QList<QPieSlice*>" }
1598 }
1607 }
1599 Method {
1608 Method {
1600 name: "at"
1609 name: "at"
1601 type: "QPieSlice*"
1610 type: "QPieSlice*"
1602 Parameter { name: "index"; type: "int" }
1611 Parameter { name: "index"; type: "int" }
1603 }
1612 }
1604 Method {
1613 Method {
1605 name: "find"
1614 name: "find"
1606 type: "QPieSlice*"
1615 type: "QPieSlice*"
1607 Parameter { name: "label"; type: "string" }
1616 Parameter { name: "label"; type: "string" }
1608 }
1617 }
1609 Method {
1618 Method {
1610 name: "append"
1619 name: "append"
1611 type: "DeclarativePieSlice*"
1620 type: "DeclarativePieSlice*"
1612 Parameter { name: "label"; type: "string" }
1621 Parameter { name: "label"; type: "string" }
1613 Parameter { name: "value"; type: "double" }
1622 Parameter { name: "value"; type: "double" }
1614 }
1623 }
1615 Method {
1624 Method {
1616 name: "remove"
1625 name: "remove"
1617 type: "bool"
1626 type: "bool"
1618 Parameter { name: "slice"; type: "QPieSlice"; isPointer: true }
1627 Parameter { name: "slice"; type: "QPieSlice"; isPointer: true }
1619 }
1628 }
1620 Method { name: "clear" }
1629 Method { name: "clear" }
1621 }
1630 }
1622 Component {
1631 Component {
1623 name: "QtCharts::DeclarativePieSlice"
1632 name: "QtCharts::DeclarativePieSlice"
1624 prototype: "QtCharts::QPieSlice"
1633 prototype: "QtCharts::QPieSlice"
1625 exports: ["QtCharts/PieSlice 1.4", "QtCharts/PieSlice 2.0"]
1634 exports: ["QtCharts/PieSlice 1.4", "QtCharts/PieSlice 2.0"]
1626 exportMetaObjectRevisions: [0, 0]
1635 exportMetaObjectRevisions: [0, 0]
1627 Property { name: "brushFilename"; type: "string" }
1636 Property { name: "brushFilename"; type: "string" }
1628 Signal {
1637 Signal {
1629 name: "brushFilenameChanged"
1638 name: "brushFilenameChanged"
1630 Parameter { name: "brushFilename"; type: "string" }
1639 Parameter { name: "brushFilename"; type: "string" }
1631 }
1640 }
1632 }
1641 }
1633 Component {
1642 Component {
1634 name: "QtCharts::DeclarativePolarChart"
1643 name: "QtCharts::DeclarativePolarChart"
1635 defaultProperty: "data"
1644 defaultProperty: "data"
1636 prototype: "QtCharts::DeclarativeChart"
1645 prototype: "QtCharts::DeclarativeChart"
1637 exports: [
1646 exports: [
1638 "QtCharts/PolarChartView 1.3",
1647 "QtCharts/PolarChartView 1.3",
1639 "QtCharts/PolarChartView 2.0"
1648 "QtCharts/PolarChartView 2.0"
1640 ]
1649 ]
1641 exportMetaObjectRevisions: [1, 1]
1650 exportMetaObjectRevisions: [1, 1]
1642 }
1651 }
1643 Component {
1652 Component {
1644 name: "QtCharts::DeclarativeScatterSeries"
1653 name: "QtCharts::DeclarativeScatterSeries"
1645 defaultProperty: "declarativeChildren"
1654 defaultProperty: "declarativeChildren"
1646 prototype: "QtCharts::QScatterSeries"
1655 prototype: "QtCharts::QScatterSeries"
1647 exports: [
1656 exports: [
1648 "QtCharts/ScatterSeries 1.0",
1657 "QtCharts/ScatterSeries 1.0",
1649 "QtCharts/ScatterSeries 1.1",
1658 "QtCharts/ScatterSeries 1.1",
1650 "QtCharts/ScatterSeries 1.2",
1659 "QtCharts/ScatterSeries 1.2",
1651 "QtCharts/ScatterSeries 1.3",
1660 "QtCharts/ScatterSeries 1.3",
1652 "QtCharts/ScatterSeries 1.4",
1661 "QtCharts/ScatterSeries 1.4",
1653 "QtCharts/ScatterSeries 2.0"
1662 "QtCharts/ScatterSeries 2.0"
1654 ]
1663 ]
1655 exportMetaObjectRevisions: [0, 1, 2, 3, 4, 4]
1664 exportMetaObjectRevisions: [0, 1, 2, 3, 4, 4]
1656 Property { name: "count"; type: "int"; isReadonly: true }
1665 Property { name: "count"; type: "int"; isReadonly: true }
1657 Property { name: "axisX"; revision: 1; type: "QAbstractAxis"; isPointer: true }
1666 Property { name: "axisX"; revision: 1; type: "QAbstractAxis"; isPointer: true }
1658 Property { name: "axisY"; revision: 1; type: "QAbstractAxis"; isPointer: true }
1667 Property { name: "axisY"; revision: 1; type: "QAbstractAxis"; isPointer: true }
1659 Property { name: "axisXTop"; revision: 2; type: "QAbstractAxis"; isPointer: true }
1668 Property { name: "axisXTop"; revision: 2; type: "QAbstractAxis"; isPointer: true }
1660 Property { name: "axisYRight"; revision: 2; type: "QAbstractAxis"; isPointer: true }
1669 Property { name: "axisYRight"; revision: 2; type: "QAbstractAxis"; isPointer: true }
1661 Property { name: "axisAngular"; revision: 3; type: "QAbstractAxis"; isPointer: true }
1670 Property { name: "axisAngular"; revision: 3; type: "QAbstractAxis"; isPointer: true }
1662 Property { name: "axisRadial"; revision: 3; type: "QAbstractAxis"; isPointer: true }
1671 Property { name: "axisRadial"; revision: 3; type: "QAbstractAxis"; isPointer: true }
1663 Property { name: "borderWidth"; revision: 1; type: "double" }
1672 Property { name: "borderWidth"; revision: 1; type: "double" }
1664 Property { name: "declarativeChildren"; type: "QObject"; isList: true; isReadonly: true }
1673 Property { name: "declarativeChildren"; type: "QObject"; isList: true; isReadonly: true }
1665 Property { name: "brushFilename"; revision: 4; type: "string" }
1674 Property { name: "brushFilename"; revision: 4; type: "string" }
1666 Property { name: "brush"; revision: 4; type: "QBrush" }
1675 Property { name: "brush"; revision: 4; type: "QBrush" }
1667 Signal {
1676 Signal {
1668 name: "countChanged"
1677 name: "countChanged"
1669 Parameter { name: "count"; type: "int" }
1678 Parameter { name: "count"; type: "int" }
1670 }
1679 }
1671 Signal {
1680 Signal {
1672 name: "axisXChanged"
1681 name: "axisXChanged"
1673 revision: 1
1682 revision: 1
1674 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
1683 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
1675 }
1684 }
1676 Signal {
1685 Signal {
1677 name: "axisYChanged"
1686 name: "axisYChanged"
1678 revision: 1
1687 revision: 1
1679 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
1688 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
1680 }
1689 }
1681 Signal {
1690 Signal {
1682 name: "borderWidthChanged"
1691 name: "borderWidthChanged"
1683 revision: 1
1692 revision: 1
1684 Parameter { name: "width"; type: "double" }
1693 Parameter { name: "width"; type: "double" }
1685 }
1694 }
1686 Signal {
1695 Signal {
1687 name: "axisXTopChanged"
1696 name: "axisXTopChanged"
1688 revision: 2
1697 revision: 2
1689 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
1698 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
1690 }
1699 }
1691 Signal {
1700 Signal {
1692 name: "axisYRightChanged"
1701 name: "axisYRightChanged"
1693 revision: 2
1702 revision: 2
1694 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
1703 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
1695 }
1704 }
1696 Signal {
1705 Signal {
1697 name: "axisAngularChanged"
1706 name: "axisAngularChanged"
1698 revision: 3
1707 revision: 3
1699 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
1708 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
1700 }
1709 }
1701 Signal {
1710 Signal {
1702 name: "axisRadialChanged"
1711 name: "axisRadialChanged"
1703 revision: 3
1712 revision: 3
1704 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
1713 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
1705 }
1714 }
1706 Signal {
1715 Signal {
1707 name: "brushFilenameChanged"
1716 name: "brushFilenameChanged"
1708 revision: 4
1717 revision: 4
1709 Parameter { name: "brushFilename"; type: "string" }
1718 Parameter { name: "brushFilename"; type: "string" }
1710 }
1719 }
1711 Signal { name: "brushChanged"; revision: 4 }
1720 Signal { name: "brushChanged"; revision: 4 }
1712 Method {
1721 Method {
1713 name: "appendDeclarativeChildren"
1722 name: "appendDeclarativeChildren"
1714 Parameter { name: "list"; type: "QObject"; isList: true; isPointer: true }
1723 Parameter { name: "list"; type: "QObject"; isList: true; isPointer: true }
1715 Parameter { name: "element"; type: "QObject"; isPointer: true }
1724 Parameter { name: "element"; type: "QObject"; isPointer: true }
1716 }
1725 }
1717 Method {
1726 Method {
1718 name: "handleCountChanged"
1727 name: "handleCountChanged"
1719 Parameter { name: "index"; type: "int" }
1728 Parameter { name: "index"; type: "int" }
1720 }
1729 }
1721 Method {
1730 Method {
1722 name: "append"
1731 name: "append"
1723 Parameter { name: "x"; type: "double" }
1732 Parameter { name: "x"; type: "double" }
1724 Parameter { name: "y"; type: "double" }
1733 Parameter { name: "y"; type: "double" }
1725 }
1734 }
1726 Method {
1735 Method {
1727 name: "replace"
1736 name: "replace"
1728 Parameter { name: "oldX"; type: "double" }
1737 Parameter { name: "oldX"; type: "double" }
1729 Parameter { name: "oldY"; type: "double" }
1738 Parameter { name: "oldY"; type: "double" }
1730 Parameter { name: "newX"; type: "double" }
1739 Parameter { name: "newX"; type: "double" }
1731 Parameter { name: "newY"; type: "double" }
1740 Parameter { name: "newY"; type: "double" }
1732 }
1741 }
1733 Method {
1742 Method {
1734 name: "replace"
1743 name: "replace"
1735 revision: 3
1744 revision: 3
1736 Parameter { name: "index"; type: "int" }
1745 Parameter { name: "index"; type: "int" }
1737 Parameter { name: "newX"; type: "double" }
1746 Parameter { name: "newX"; type: "double" }
1738 Parameter { name: "newY"; type: "double" }
1747 Parameter { name: "newY"; type: "double" }
1739 }
1748 }
1740 Method {
1749 Method {
1741 name: "remove"
1750 name: "remove"
1742 Parameter { name: "x"; type: "double" }
1751 Parameter { name: "x"; type: "double" }
1743 Parameter { name: "y"; type: "double" }
1752 Parameter { name: "y"; type: "double" }
1744 }
1753 }
1745 Method {
1754 Method {
1746 name: "remove"
1755 name: "remove"
1747 revision: 3
1756 revision: 3
1748 Parameter { name: "index"; type: "int" }
1757 Parameter { name: "index"; type: "int" }
1749 }
1758 }
1750 Method {
1759 Method {
1751 name: "insert"
1760 name: "insert"
1752 Parameter { name: "index"; type: "int" }
1761 Parameter { name: "index"; type: "int" }
1753 Parameter { name: "x"; type: "double" }
1762 Parameter { name: "x"; type: "double" }
1754 Parameter { name: "y"; type: "double" }
1763 Parameter { name: "y"; type: "double" }
1755 }
1764 }
1756 Method { name: "clear" }
1765 Method { name: "clear" }
1757 Method {
1766 Method {
1758 name: "at"
1767 name: "at"
1759 type: "QPointF"
1768 type: "QPointF"
1760 Parameter { name: "index"; type: "int" }
1769 Parameter { name: "index"; type: "int" }
1761 }
1770 }
1762 }
1771 }
1763 Component {
1772 Component {
1764 name: "QtCharts::DeclarativeSplineSeries"
1773 name: "QtCharts::DeclarativeSplineSeries"
1765 defaultProperty: "declarativeChildren"
1774 defaultProperty: "declarativeChildren"
1766 prototype: "QtCharts::QSplineSeries"
1775 prototype: "QtCharts::QSplineSeries"
1767 exports: [
1776 exports: [
1768 "QtCharts/SplineSeries 1.0",
1777 "QtCharts/SplineSeries 1.0",
1769 "QtCharts/SplineSeries 1.1",
1778 "QtCharts/SplineSeries 1.1",
1770 "QtCharts/SplineSeries 1.2",
1779 "QtCharts/SplineSeries 1.2",
1771 "QtCharts/SplineSeries 1.3",
1780 "QtCharts/SplineSeries 1.3",
1772 "QtCharts/SplineSeries 2.0"
1781 "QtCharts/SplineSeries 2.0"
1773 ]
1782 ]
1774 exportMetaObjectRevisions: [0, 1, 2, 3, 3]
1783 exportMetaObjectRevisions: [0, 1, 2, 3, 3]
1775 Property { name: "count"; type: "int"; isReadonly: true }
1784 Property { name: "count"; type: "int"; isReadonly: true }
1776 Property { name: "axisX"; revision: 1; type: "QAbstractAxis"; isPointer: true }
1785 Property { name: "axisX"; revision: 1; type: "QAbstractAxis"; isPointer: true }
1777 Property { name: "axisY"; revision: 1; type: "QAbstractAxis"; isPointer: true }
1786 Property { name: "axisY"; revision: 1; type: "QAbstractAxis"; isPointer: true }
1778 Property { name: "axisXTop"; revision: 2; type: "QAbstractAxis"; isPointer: true }
1787 Property { name: "axisXTop"; revision: 2; type: "QAbstractAxis"; isPointer: true }
1779 Property { name: "axisYRight"; revision: 2; type: "QAbstractAxis"; isPointer: true }
1788 Property { name: "axisYRight"; revision: 2; type: "QAbstractAxis"; isPointer: true }
1780 Property { name: "axisAngular"; revision: 3; type: "QAbstractAxis"; isPointer: true }
1789 Property { name: "axisAngular"; revision: 3; type: "QAbstractAxis"; isPointer: true }
1781 Property { name: "axisRadial"; revision: 3; type: "QAbstractAxis"; isPointer: true }
1790 Property { name: "axisRadial"; revision: 3; type: "QAbstractAxis"; isPointer: true }
1782 Property { name: "width"; revision: 1; type: "double" }
1791 Property { name: "width"; revision: 1; type: "double" }
1783 Property { name: "style"; revision: 1; type: "Qt::PenStyle" }
1792 Property { name: "style"; revision: 1; type: "Qt::PenStyle" }
1784 Property { name: "capStyle"; revision: 1; type: "Qt::PenCapStyle" }
1793 Property { name: "capStyle"; revision: 1; type: "Qt::PenCapStyle" }
1785 Property { name: "declarativeChildren"; type: "QObject"; isList: true; isReadonly: true }
1794 Property { name: "declarativeChildren"; type: "QObject"; isList: true; isReadonly: true }
1786 Signal {
1795 Signal {
1787 name: "countChanged"
1796 name: "countChanged"
1788 Parameter { name: "count"; type: "int" }
1797 Parameter { name: "count"; type: "int" }
1789 }
1798 }
1790 Signal {
1799 Signal {
1791 name: "axisXChanged"
1800 name: "axisXChanged"
1792 revision: 1
1801 revision: 1
1793 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
1802 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
1794 }
1803 }
1795 Signal {
1804 Signal {
1796 name: "axisYChanged"
1805 name: "axisYChanged"
1797 revision: 1
1806 revision: 1
1798 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
1807 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
1799 }
1808 }
1800 Signal {
1809 Signal {
1801 name: "axisXTopChanged"
1810 name: "axisXTopChanged"
1802 revision: 2
1811 revision: 2
1803 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
1812 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
1804 }
1813 }
1805 Signal {
1814 Signal {
1806 name: "axisYRightChanged"
1815 name: "axisYRightChanged"
1807 revision: 2
1816 revision: 2
1808 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
1817 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
1809 }
1818 }
1810 Signal {
1819 Signal {
1811 name: "axisAngularChanged"
1820 name: "axisAngularChanged"
1812 revision: 3
1821 revision: 3
1813 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
1822 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
1814 }
1823 }
1815 Signal {
1824 Signal {
1816 name: "axisRadialChanged"
1825 name: "axisRadialChanged"
1817 revision: 3
1826 revision: 3
1818 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
1827 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
1819 }
1828 }
1820 Signal {
1829 Signal {
1821 name: "widthChanged"
1830 name: "widthChanged"
1822 revision: 1
1831 revision: 1
1823 Parameter { name: "width"; type: "double" }
1832 Parameter { name: "width"; type: "double" }
1824 }
1833 }
1825 Signal {
1834 Signal {
1826 name: "styleChanged"
1835 name: "styleChanged"
1827 revision: 1
1836 revision: 1
1828 Parameter { name: "style"; type: "Qt::PenStyle" }
1837 Parameter { name: "style"; type: "Qt::PenStyle" }
1829 }
1838 }
1830 Signal {
1839 Signal {
1831 name: "capStyleChanged"
1840 name: "capStyleChanged"
1832 revision: 1
1841 revision: 1
1833 Parameter { name: "capStyle"; type: "Qt::PenCapStyle" }
1842 Parameter { name: "capStyle"; type: "Qt::PenCapStyle" }
1834 }
1843 }
1835 Method {
1844 Method {
1836 name: "appendDeclarativeChildren"
1845 name: "appendDeclarativeChildren"
1837 Parameter { name: "list"; type: "QObject"; isList: true; isPointer: true }
1846 Parameter { name: "list"; type: "QObject"; isList: true; isPointer: true }
1838 Parameter { name: "element"; type: "QObject"; isPointer: true }
1847 Parameter { name: "element"; type: "QObject"; isPointer: true }
1839 }
1848 }
1840 Method {
1849 Method {
1841 name: "handleCountChanged"
1850 name: "handleCountChanged"
1842 Parameter { name: "index"; type: "int" }
1851 Parameter { name: "index"; type: "int" }
1843 }
1852 }
1844 Method {
1853 Method {
1845 name: "append"
1854 name: "append"
1846 Parameter { name: "x"; type: "double" }
1855 Parameter { name: "x"; type: "double" }
1847 Parameter { name: "y"; type: "double" }
1856 Parameter { name: "y"; type: "double" }
1848 }
1857 }
1849 Method {
1858 Method {
1850 name: "replace"
1859 name: "replace"
1851 Parameter { name: "oldX"; type: "double" }
1860 Parameter { name: "oldX"; type: "double" }
1852 Parameter { name: "oldY"; type: "double" }
1861 Parameter { name: "oldY"; type: "double" }
1853 Parameter { name: "newX"; type: "double" }
1862 Parameter { name: "newX"; type: "double" }
1854 Parameter { name: "newY"; type: "double" }
1863 Parameter { name: "newY"; type: "double" }
1855 }
1864 }
1856 Method {
1865 Method {
1857 name: "replace"
1866 name: "replace"
1858 revision: 3
1867 revision: 3
1859 Parameter { name: "index"; type: "int" }
1868 Parameter { name: "index"; type: "int" }
1860 Parameter { name: "newX"; type: "double" }
1869 Parameter { name: "newX"; type: "double" }
1861 Parameter { name: "newY"; type: "double" }
1870 Parameter { name: "newY"; type: "double" }
1862 }
1871 }
1863 Method {
1872 Method {
1864 name: "remove"
1873 name: "remove"
1865 Parameter { name: "x"; type: "double" }
1874 Parameter { name: "x"; type: "double" }
1866 Parameter { name: "y"; type: "double" }
1875 Parameter { name: "y"; type: "double" }
1867 }
1876 }
1868 Method {
1877 Method {
1869 name: "remove"
1878 name: "remove"
1870 revision: 3
1879 revision: 3
1871 Parameter { name: "index"; type: "int" }
1880 Parameter { name: "index"; type: "int" }
1872 }
1881 }
1873 Method {
1882 Method {
1874 name: "insert"
1883 name: "insert"
1875 Parameter { name: "index"; type: "int" }
1884 Parameter { name: "index"; type: "int" }
1876 Parameter { name: "x"; type: "double" }
1885 Parameter { name: "x"; type: "double" }
1877 Parameter { name: "y"; type: "double" }
1886 Parameter { name: "y"; type: "double" }
1878 }
1887 }
1879 Method { name: "clear" }
1888 Method { name: "clear" }
1880 Method {
1889 Method {
1881 name: "at"
1890 name: "at"
1882 type: "QPointF"
1891 type: "QPointF"
1883 Parameter { name: "index"; type: "int" }
1892 Parameter { name: "index"; type: "int" }
1884 }
1893 }
1885 }
1894 }
1886 Component {
1895 Component {
1887 name: "QtCharts::DeclarativeStackedBarSeries"
1896 name: "QtCharts::DeclarativeStackedBarSeries"
1888 defaultProperty: "seriesChildren"
1897 defaultProperty: "seriesChildren"
1889 prototype: "QtCharts::QStackedBarSeries"
1898 prototype: "QtCharts::QStackedBarSeries"
1890 exports: [
1899 exports: [
1891 "QtCharts/StackedBarSeries 1.0",
1900 "QtCharts/StackedBarSeries 1.0",
1892 "QtCharts/StackedBarSeries 1.1",
1901 "QtCharts/StackedBarSeries 1.1",
1893 "QtCharts/StackedBarSeries 1.2",
1902 "QtCharts/StackedBarSeries 1.2",
1894 "QtCharts/StackedBarSeries 2.0"
1903 "QtCharts/StackedBarSeries 2.0"
1895 ]
1904 ]
1896 exportMetaObjectRevisions: [0, 1, 2, 2]
1905 exportMetaObjectRevisions: [0, 1, 2, 2]
1897 Property { name: "axisX"; revision: 1; type: "QAbstractAxis"; isPointer: true }
1906 Property { name: "axisX"; revision: 1; type: "QAbstractAxis"; isPointer: true }
1898 Property { name: "axisY"; revision: 1; type: "QAbstractAxis"; isPointer: true }
1907 Property { name: "axisY"; revision: 1; type: "QAbstractAxis"; isPointer: true }
1899 Property { name: "axisXTop"; revision: 2; type: "QAbstractAxis"; isPointer: true }
1908 Property { name: "axisXTop"; revision: 2; type: "QAbstractAxis"; isPointer: true }
1900 Property { name: "axisYRight"; revision: 2; type: "QAbstractAxis"; isPointer: true }
1909 Property { name: "axisYRight"; revision: 2; type: "QAbstractAxis"; isPointer: true }
1901 Property { name: "seriesChildren"; type: "QObject"; isList: true; isReadonly: true }
1910 Property { name: "seriesChildren"; type: "QObject"; isList: true; isReadonly: true }
1902 Signal {
1911 Signal {
1903 name: "axisXChanged"
1912 name: "axisXChanged"
1904 revision: 1
1913 revision: 1
1905 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
1914 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
1906 }
1915 }
1907 Signal {
1916 Signal {
1908 name: "axisYChanged"
1917 name: "axisYChanged"
1909 revision: 1
1918 revision: 1
1910 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
1919 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
1911 }
1920 }
1912 Signal {
1921 Signal {
1913 name: "axisXTopChanged"
1922 name: "axisXTopChanged"
1914 revision: 2
1923 revision: 2
1915 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
1924 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
1916 }
1925 }
1917 Signal {
1926 Signal {
1918 name: "axisYRightChanged"
1927 name: "axisYRightChanged"
1919 revision: 2
1928 revision: 2
1920 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
1929 Parameter { name: "axis"; type: "QAbstractAxis"; isPointer: true }
1921 }
1930 }
1922 Method {
1931 Method {
1923 name: "appendSeriesChildren"
1932 name: "appendSeriesChildren"
1924 Parameter { name: "list"; type: "QObject"; isList: true; isPointer: true }
1933 Parameter { name: "list"; type: "QObject"; isList: true; isPointer: true }
1925 Parameter { name: "element"; type: "QObject"; isPointer: true }
1934 Parameter { name: "element"; type: "QObject"; isPointer: true }
1926 }
1935 }
1927 Method {
1936 Method {
1928 name: "at"
1937 name: "at"
1929 type: "DeclarativeBarSet*"
1938 type: "DeclarativeBarSet*"
1930 Parameter { name: "index"; type: "int" }
1939 Parameter { name: "index"; type: "int" }
1931 }
1940 }
1932 Method {
1941 Method {
1933 name: "append"
1942 name: "append"
1934 type: "DeclarativeBarSet*"
1943 type: "DeclarativeBarSet*"
1935 Parameter { name: "label"; type: "string" }
1944 Parameter { name: "label"; type: "string" }
1936 Parameter { name: "values"; type: "QVariantList" }
1945 Parameter { name: "values"; type: "QVariantList" }
1937 }
1946 }
1938 Method {
1947 Method {
1939 name: "insert"
1948 name: "insert"
1940 type: "DeclarativeBarSet*"
1949 type: "DeclarativeBarSet*"
1941 Parameter { name: "index"; type: "int" }
1950 Parameter { name: "index"; type: "int" }
1942 Parameter { name: "label"; type: "string" }
1951 Parameter { name: "label"; type: "string" }
1943 Parameter { name: "values"; type: "QVariantList" }
1952 Parameter { name: "values"; type: "QVariantList" }
1944 }
1953 }
1945 Method {
1954 Method {
1946 name: "remove"
1955 name: "remove"
1947 type: "bool"
1956 type: "bool"
1948 Parameter { name: "barset"; type: "QBarSet"; isPointer: true }
1957 Parameter { name: "barset"; type: "QBarSet"; isPointer: true }
1949 }
1958 }
1950 Method { name: "clear" }
1959 Method { name: "clear" }
1951 }
1960 }
1952 Component {
1961 Component {
1953 name: "QtCharts::DeclarativeXYPoint"
1962 name: "QtCharts::DeclarativeXYPoint"
1954 prototype: "QObject"
1963 prototype: "QObject"
1955 exports: ["QtCharts/XYPoint 1.0", "QtCharts/XYPoint 2.0"]
1964 exports: ["QtCharts/XYPoint 1.0", "QtCharts/XYPoint 2.0"]
1956 exportMetaObjectRevisions: [0, 0]
1965 exportMetaObjectRevisions: [0, 0]
1957 Property { name: "x"; type: "double" }
1966 Property { name: "x"; type: "double" }
1958 Property { name: "y"; type: "double" }
1967 Property { name: "y"; type: "double" }
1959 }
1968 }
1960 Component {
1969 Component {
1961 name: "QtCharts::LegendScroller"
1970 name: "QtCharts::LegendScroller"
1962 defaultProperty: "children"
1971 defaultProperty: "children"
1963 prototype: "QtCharts::QLegend"
1972 prototype: "QtCharts::QLegend"
1964 }
1973 }
1965 Component {
1974 Component {
1966 name: "QtCharts::QAbstractAxis"
1975 name: "QtCharts::QAbstractAxis"
1967 prototype: "QObject"
1976 prototype: "QObject"
1968 exports: [
1977 exports: [
1969 "QtCharts/AbstractAxis 1.0",
1978 "QtCharts/AbstractAxis 1.0",
1970 "QtCharts/AbstractAxis 2.0",
1979 "QtCharts/AbstractAxis 2.0",
1971 "QtCharts/AbstractAxis 2.1"
1980 "QtCharts/AbstractAxis 2.1"
1972 ]
1981 ]
1973 isCreatable: false
1982 isCreatable: false
1974 exportMetaObjectRevisions: [0, 0, 0]
1983 exportMetaObjectRevisions: [0, 0, 0]
1975 Property { name: "visible"; type: "bool" }
1984 Property { name: "visible"; type: "bool" }
1976 Property { name: "lineVisible"; type: "bool" }
1985 Property { name: "lineVisible"; type: "bool" }
1977 Property { name: "linePen"; type: "QPen" }
1986 Property { name: "linePen"; type: "QPen" }
1978 Property { name: "color"; type: "QColor" }
1987 Property { name: "color"; type: "QColor" }
1979 Property { name: "labelsVisible"; type: "bool" }
1988 Property { name: "labelsVisible"; type: "bool" }
1980 Property { name: "labelsBrush"; type: "QBrush" }
1989 Property { name: "labelsBrush"; type: "QBrush" }
1981 Property { name: "labelsAngle"; type: "int" }
1990 Property { name: "labelsAngle"; type: "int" }
1982 Property { name: "labelsFont"; type: "QFont" }
1991 Property { name: "labelsFont"; type: "QFont" }
1983 Property { name: "labelsColor"; type: "QColor" }
1992 Property { name: "labelsColor"; type: "QColor" }
1984 Property { name: "gridVisible"; type: "bool" }
1993 Property { name: "gridVisible"; type: "bool" }
1985 Property { name: "gridLinePen"; type: "QPen" }
1994 Property { name: "gridLinePen"; type: "QPen" }
1986 Property { name: "shadesVisible"; type: "bool" }
1995 Property { name: "shadesVisible"; type: "bool" }
1987 Property { name: "shadesColor"; type: "QColor" }
1996 Property { name: "shadesColor"; type: "QColor" }
1988 Property { name: "shadesBorderColor"; type: "QColor" }
1997 Property { name: "shadesBorderColor"; type: "QColor" }
1989 Property { name: "shadesPen"; type: "QPen" }
1998 Property { name: "shadesPen"; type: "QPen" }
1990 Property { name: "shadesBrush"; type: "QBrush" }
1999 Property { name: "shadesBrush"; type: "QBrush" }
1991 Property { name: "titleText"; type: "string" }
2000 Property { name: "titleText"; type: "string" }
1992 Property { name: "titleBrush"; type: "QBrush" }
2001 Property { name: "titleBrush"; type: "QBrush" }
1993 Property { name: "titleVisible"; type: "bool" }
2002 Property { name: "titleVisible"; type: "bool" }
1994 Property { name: "titleFont"; type: "QFont" }
2003 Property { name: "titleFont"; type: "QFont" }
1995 Property { name: "orientation"; type: "Qt::Orientation"; isReadonly: true }
2004 Property { name: "orientation"; type: "Qt::Orientation"; isReadonly: true }
1996 Property { name: "alignment"; type: "Qt::Alignment"; isReadonly: true }
2005 Property { name: "alignment"; type: "Qt::Alignment"; isReadonly: true }
1997 Property { name: "reverse"; type: "bool" }
2006 Property { name: "reverse"; type: "bool" }
1998 Signal {
2007 Signal {
1999 name: "visibleChanged"
2008 name: "visibleChanged"
2000 Parameter { name: "visible"; type: "bool" }
2009 Parameter { name: "visible"; type: "bool" }
2001 }
2010 }
2002 Signal {
2011 Signal {
2003 name: "linePenChanged"
2012 name: "linePenChanged"
2004 Parameter { name: "pen"; type: "QPen" }
2013 Parameter { name: "pen"; type: "QPen" }
2005 }
2014 }
2006 Signal {
2015 Signal {
2007 name: "lineVisibleChanged"
2016 name: "lineVisibleChanged"
2008 Parameter { name: "visible"; type: "bool" }
2017 Parameter { name: "visible"; type: "bool" }
2009 }
2018 }
2010 Signal {
2019 Signal {
2011 name: "labelsVisibleChanged"
2020 name: "labelsVisibleChanged"
2012 Parameter { name: "visible"; type: "bool" }
2021 Parameter { name: "visible"; type: "bool" }
2013 }
2022 }
2014 Signal {
2023 Signal {
2015 name: "labelsBrushChanged"
2024 name: "labelsBrushChanged"
2016 Parameter { name: "brush"; type: "QBrush" }
2025 Parameter { name: "brush"; type: "QBrush" }
2017 }
2026 }
2018 Signal {
2027 Signal {
2019 name: "labelsFontChanged"
2028 name: "labelsFontChanged"
2020 Parameter { name: "pen"; type: "QFont" }
2029 Parameter { name: "pen"; type: "QFont" }
2021 }
2030 }
2022 Signal {
2031 Signal {
2023 name: "labelsAngleChanged"
2032 name: "labelsAngleChanged"
2024 Parameter { name: "angle"; type: "int" }
2033 Parameter { name: "angle"; type: "int" }
2025 }
2034 }
2026 Signal {
2035 Signal {
2027 name: "gridLinePenChanged"
2036 name: "gridLinePenChanged"
2028 Parameter { name: "pen"; type: "QPen" }
2037 Parameter { name: "pen"; type: "QPen" }
2029 }
2038 }
2030 Signal {
2039 Signal {
2031 name: "gridVisibleChanged"
2040 name: "gridVisibleChanged"
2032 Parameter { name: "visible"; type: "bool" }
2041 Parameter { name: "visible"; type: "bool" }
2033 }
2042 }
2034 Signal {
2043 Signal {
2035 name: "colorChanged"
2044 name: "colorChanged"
2036 Parameter { name: "color"; type: "QColor" }
2045 Parameter { name: "color"; type: "QColor" }
2037 }
2046 }
2038 Signal {
2047 Signal {
2039 name: "labelsColorChanged"
2048 name: "labelsColorChanged"
2040 Parameter { name: "color"; type: "QColor" }
2049 Parameter { name: "color"; type: "QColor" }
2041 }
2050 }
2042 Signal {
2051 Signal {
2043 name: "titleTextChanged"
2052 name: "titleTextChanged"
2044 Parameter { name: "title"; type: "string" }
2053 Parameter { name: "title"; type: "string" }
2045 }
2054 }
2046 Signal {
2055 Signal {
2047 name: "titleBrushChanged"
2056 name: "titleBrushChanged"
2048 Parameter { name: "brush"; type: "QBrush" }
2057 Parameter { name: "brush"; type: "QBrush" }
2049 }
2058 }
2050 Signal {
2059 Signal {
2051 name: "titleVisibleChanged"
2060 name: "titleVisibleChanged"
2052 Parameter { name: "visible"; type: "bool" }
2061 Parameter { name: "visible"; type: "bool" }
2053 }
2062 }
2054 Signal {
2063 Signal {
2055 name: "titleFontChanged"
2064 name: "titleFontChanged"
2056 Parameter { name: "font"; type: "QFont" }
2065 Parameter { name: "font"; type: "QFont" }
2057 }
2066 }
2058 Signal {
2067 Signal {
2059 name: "shadesVisibleChanged"
2068 name: "shadesVisibleChanged"
2060 Parameter { name: "visible"; type: "bool" }
2069 Parameter { name: "visible"; type: "bool" }
2061 }
2070 }
2062 Signal {
2071 Signal {
2063 name: "shadesColorChanged"
2072 name: "shadesColorChanged"
2064 Parameter { name: "color"; type: "QColor" }
2073 Parameter { name: "color"; type: "QColor" }
2065 }
2074 }
2066 Signal {
2075 Signal {
2067 name: "shadesBorderColorChanged"
2076 name: "shadesBorderColorChanged"
2068 Parameter { name: "color"; type: "QColor" }
2077 Parameter { name: "color"; type: "QColor" }
2069 }
2078 }
2070 Signal {
2079 Signal {
2071 name: "shadesPenChanged"
2080 name: "shadesPenChanged"
2072 Parameter { name: "pen"; type: "QPen" }
2081 Parameter { name: "pen"; type: "QPen" }
2073 }
2082 }
2074 Signal {
2083 Signal {
2075 name: "shadesBrushChanged"
2084 name: "shadesBrushChanged"
2076 Parameter { name: "brush"; type: "QBrush" }
2085 Parameter { name: "brush"; type: "QBrush" }
2077 }
2086 }
2078 Signal {
2087 Signal {
2079 name: "reverseChanged"
2088 name: "reverseChanged"
2080 Parameter { name: "reverse"; type: "bool" }
2089 Parameter { name: "reverse"; type: "bool" }
2081 }
2090 }
2082 }
2091 }
2083 Component {
2092 Component {
2084 name: "QtCharts::QAbstractBarSeries"
2093 name: "QtCharts::QAbstractBarSeries"
2085 prototype: "QtCharts::QAbstractSeries"
2094 prototype: "QtCharts::QAbstractSeries"
2086 exports: [
2095 exports: [
2087 "QtCharts/AbstractBarSeries 1.0",
2096 "QtCharts/AbstractBarSeries 1.0",
2088 "QtCharts/AbstractBarSeries 2.0"
2097 "QtCharts/AbstractBarSeries 2.0"
2089 ]
2098 ]
2090 isCreatable: false
2099 isCreatable: false
2091 exportMetaObjectRevisions: [0, 0]
2100 exportMetaObjectRevisions: [0, 0]
2092 Enum {
2101 Enum {
2093 name: "LabelsPosition"
2102 name: "LabelsPosition"
2094 values: {
2103 values: {
2095 "LabelsCenter": 0,
2104 "LabelsCenter": 0,
2096 "LabelsInsideEnd": 1,
2105 "LabelsInsideEnd": 1,
2097 "LabelsInsideBase": 2,
2106 "LabelsInsideBase": 2,
2098 "LabelsOutsideEnd": 3
2107 "LabelsOutsideEnd": 3
2099 }
2108 }
2100 }
2109 }
2101 Property { name: "barWidth"; type: "double" }
2110 Property { name: "barWidth"; type: "double" }
2102 Property { name: "count"; type: "int"; isReadonly: true }
2111 Property { name: "count"; type: "int"; isReadonly: true }
2103 Property { name: "labelsVisible"; type: "bool" }
2112 Property { name: "labelsVisible"; type: "bool" }
2104 Property { name: "labelsFormat"; type: "string" }
2113 Property { name: "labelsFormat"; type: "string" }
2105 Property { name: "labelsPosition"; type: "LabelsPosition" }
2114 Property { name: "labelsPosition"; type: "LabelsPosition" }
2106 Signal {
2115 Signal {
2107 name: "clicked"
2116 name: "clicked"
2108 Parameter { name: "index"; type: "int" }
2117 Parameter { name: "index"; type: "int" }
2109 Parameter { name: "barset"; type: "QBarSet"; isPointer: true }
2118 Parameter { name: "barset"; type: "QBarSet"; isPointer: true }
2110 }
2119 }
2111 Signal {
2120 Signal {
2112 name: "hovered"
2121 name: "hovered"
2113 Parameter { name: "status"; type: "bool" }
2122 Parameter { name: "status"; type: "bool" }
2114 Parameter { name: "index"; type: "int" }
2123 Parameter { name: "index"; type: "int" }
2115 Parameter { name: "barset"; type: "QBarSet"; isPointer: true }
2124 Parameter { name: "barset"; type: "QBarSet"; isPointer: true }
2116 }
2125 }
2117 Signal {
2126 Signal {
2118 name: "pressed"
2127 name: "pressed"
2119 Parameter { name: "index"; type: "int" }
2128 Parameter { name: "index"; type: "int" }
2120 Parameter { name: "barset"; type: "QBarSet"; isPointer: true }
2129 Parameter { name: "barset"; type: "QBarSet"; isPointer: true }
2121 }
2130 }
2122 Signal {
2131 Signal {
2123 name: "released"
2132 name: "released"
2124 Parameter { name: "index"; type: "int" }
2133 Parameter { name: "index"; type: "int" }
2125 Parameter { name: "barset"; type: "QBarSet"; isPointer: true }
2134 Parameter { name: "barset"; type: "QBarSet"; isPointer: true }
2126 }
2135 }
2127 Signal {
2136 Signal {
2128 name: "doubleClicked"
2137 name: "doubleClicked"
2129 Parameter { name: "index"; type: "int" }
2138 Parameter { name: "index"; type: "int" }
2130 Parameter { name: "barset"; type: "QBarSet"; isPointer: true }
2139 Parameter { name: "barset"; type: "QBarSet"; isPointer: true }
2131 }
2140 }
2132 Signal {
2141 Signal {
2133 name: "labelsFormatChanged"
2142 name: "labelsFormatChanged"
2134 Parameter { name: "format"; type: "string" }
2143 Parameter { name: "format"; type: "string" }
2135 }
2144 }
2136 Signal {
2145 Signal {
2137 name: "labelsPositionChanged"
2146 name: "labelsPositionChanged"
2138 Parameter { name: "position"; type: "QAbstractBarSeries::LabelsPosition" }
2147 Parameter { name: "position"; type: "QAbstractBarSeries::LabelsPosition" }
2139 }
2148 }
2140 Signal {
2149 Signal {
2141 name: "barsetsAdded"
2150 name: "barsetsAdded"
2142 Parameter { name: "sets"; type: "QList<QBarSet*>" }
2151 Parameter { name: "sets"; type: "QList<QBarSet*>" }
2143 }
2152 }
2144 Signal {
2153 Signal {
2145 name: "barsetsRemoved"
2154 name: "barsetsRemoved"
2146 Parameter { name: "sets"; type: "QList<QBarSet*>" }
2155 Parameter { name: "sets"; type: "QList<QBarSet*>" }
2147 }
2156 }
2148 }
2157 }
2149 Component {
2158 Component {
2150 name: "QtCharts::QAbstractSeries"
2159 name: "QtCharts::QAbstractSeries"
2151 prototype: "QObject"
2160 prototype: "QObject"
2152 exports: [
2161 exports: [
2153 "QtCharts/AbstractSeries 1.0",
2162 "QtCharts/AbstractSeries 1.0",
2154 "QtCharts/AbstractSeries 2.0"
2163 "QtCharts/AbstractSeries 2.0"
2155 ]
2164 ]
2156 isCreatable: false
2165 isCreatable: false
2157 exportMetaObjectRevisions: [0, 0]
2166 exportMetaObjectRevisions: [0, 0]
2158 Enum {
2167 Enum {
2159 name: "SeriesType"
2168 name: "SeriesType"
2160 values: {
2169 values: {
2161 "SeriesTypeLine": 0,
2170 "SeriesTypeLine": 0,
2162 "SeriesTypeArea": 1,
2171 "SeriesTypeArea": 1,
2163 "SeriesTypeBar": 2,
2172 "SeriesTypeBar": 2,
2164 "SeriesTypeStackedBar": 3,
2173 "SeriesTypeStackedBar": 3,
2165 "SeriesTypePercentBar": 4,
2174 "SeriesTypePercentBar": 4,
2166 "SeriesTypePie": 5,
2175 "SeriesTypePie": 5,
2167 "SeriesTypeScatter": 6,
2176 "SeriesTypeScatter": 6,
2168 "SeriesTypeSpline": 7,
2177 "SeriesTypeSpline": 7,
2169 "SeriesTypeHorizontalBar": 8,
2178 "SeriesTypeHorizontalBar": 8,
2170 "SeriesTypeHorizontalStackedBar": 9,
2179 "SeriesTypeHorizontalStackedBar": 9,
2171 "SeriesTypeHorizontalPercentBar": 10,
2180 "SeriesTypeHorizontalPercentBar": 10,
2172 "SeriesTypeBoxPlot": 11
2181 "SeriesTypeBoxPlot": 11
2173 }
2182 }
2174 }
2183 }
2175 Property { name: "name"; type: "string" }
2184 Property { name: "name"; type: "string" }
2176 Property { name: "visible"; type: "bool" }
2185 Property { name: "visible"; type: "bool" }
2177 Property { name: "opacity"; type: "double" }
2186 Property { name: "opacity"; type: "double" }
2178 Property { name: "type"; type: "SeriesType"; isReadonly: true }
2187 Property { name: "type"; type: "SeriesType"; isReadonly: true }
2179 }
2188 }
2180 Component {
2189 Component {
2181 name: "QtCharts::QAreaSeries"
2190 name: "QtCharts::QAreaSeries"
2182 prototype: "QtCharts::QAbstractSeries"
2191 prototype: "QtCharts::QAbstractSeries"
2183 Property { name: "upperSeries"; type: "QLineSeries"; isReadonly: true; isPointer: true }
2192 Property { name: "upperSeries"; type: "QLineSeries"; isReadonly: true; isPointer: true }
2184 Property { name: "lowerSeries"; type: "QLineSeries"; isReadonly: true; isPointer: true }
2193 Property { name: "lowerSeries"; type: "QLineSeries"; isReadonly: true; isPointer: true }
2185 Property { name: "color"; type: "QColor" }
2194 Property { name: "color"; type: "QColor" }
2186 Property { name: "borderColor"; type: "QColor" }
2195 Property { name: "borderColor"; type: "QColor" }
2187 Property { name: "pointLabelsFormat"; type: "string" }
2196 Property { name: "pointLabelsFormat"; type: "string" }
2188 Property { name: "pointLabelsVisible"; type: "bool" }
2197 Property { name: "pointLabelsVisible"; type: "bool" }
2189 Property { name: "pointLabelsFont"; type: "QFont" }
2198 Property { name: "pointLabelsFont"; type: "QFont" }
2190 Property { name: "pointLabelsColor"; type: "QColor" }
2199 Property { name: "pointLabelsColor"; type: "QColor" }
2191 Signal {
2200 Signal {
2192 name: "clicked"
2201 name: "clicked"
2193 Parameter { name: "point"; type: "QPointF" }
2202 Parameter { name: "point"; type: "QPointF" }
2194 }
2203 }
2195 Signal {
2204 Signal {
2196 name: "hovered"
2205 name: "hovered"
2197 Parameter { name: "point"; type: "QPointF" }
2206 Parameter { name: "point"; type: "QPointF" }
2198 Parameter { name: "state"; type: "bool" }
2207 Parameter { name: "state"; type: "bool" }
2199 }
2208 }
2200 Signal {
2209 Signal {
2201 name: "pressed"
2210 name: "pressed"
2202 Parameter { name: "point"; type: "QPointF" }
2211 Parameter { name: "point"; type: "QPointF" }
2203 }
2212 }
2204 Signal {
2213 Signal {
2205 name: "released"
2214 name: "released"
2206 Parameter { name: "point"; type: "QPointF" }
2215 Parameter { name: "point"; type: "QPointF" }
2207 }
2216 }
2208 Signal {
2217 Signal {
2209 name: "doubleClicked"
2218 name: "doubleClicked"
2210 Parameter { name: "point"; type: "QPointF" }
2219 Parameter { name: "point"; type: "QPointF" }
2211 }
2220 }
2212 Signal { name: "selected" }
2221 Signal { name: "selected" }
2213 Signal {
2222 Signal {
2214 name: "colorChanged"
2223 name: "colorChanged"
2215 Parameter { name: "color"; type: "QColor" }
2224 Parameter { name: "color"; type: "QColor" }
2216 }
2225 }
2217 Signal {
2226 Signal {
2218 name: "borderColorChanged"
2227 name: "borderColorChanged"
2219 Parameter { name: "color"; type: "QColor" }
2228 Parameter { name: "color"; type: "QColor" }
2220 }
2229 }
2221 Signal {
2230 Signal {
2222 name: "pointLabelsFormatChanged"
2231 name: "pointLabelsFormatChanged"
2223 Parameter { name: "format"; type: "string" }
2232 Parameter { name: "format"; type: "string" }
2224 }
2233 }
2225 Signal {
2234 Signal {
2226 name: "pointLabelsVisibilityChanged"
2235 name: "pointLabelsVisibilityChanged"
2227 Parameter { name: "visible"; type: "bool" }
2236 Parameter { name: "visible"; type: "bool" }
2228 }
2237 }
2229 Signal {
2238 Signal {
2230 name: "pointLabelsFontChanged"
2239 name: "pointLabelsFontChanged"
2231 Parameter { name: "font"; type: "QFont" }
2240 Parameter { name: "font"; type: "QFont" }
2232 }
2241 }
2233 Signal {
2242 Signal {
2234 name: "pointLabelsColorChanged"
2243 name: "pointLabelsColorChanged"
2235 Parameter { name: "color"; type: "QColor" }
2244 Parameter { name: "color"; type: "QColor" }
2236 }
2245 }
2237 }
2246 }
2238 Component {
2247 Component {
2239 name: "QtCharts::QBarCategoryAxis"
2248 name: "QtCharts::QBarCategoryAxis"
2240 prototype: "QtCharts::QAbstractAxis"
2249 prototype: "QtCharts::QAbstractAxis"
2241 exports: [
2250 exports: [
2242 "QtCharts/BarCategoriesAxis 1.0",
2251 "QtCharts/BarCategoriesAxis 1.0",
2243 "QtCharts/BarCategoryAxis 1.1",
2252 "QtCharts/BarCategoryAxis 1.1",
2244 "QtCharts/BarCategoryAxis 2.0"
2253 "QtCharts/BarCategoryAxis 2.0"
2245 ]
2254 ]
2246 exportMetaObjectRevisions: [0, 0, 0]
2255 exportMetaObjectRevisions: [0, 0, 0]
2247 Property { name: "categories"; type: "QStringList" }
2256 Property { name: "categories"; type: "QStringList" }
2248 Property { name: "min"; type: "string" }
2257 Property { name: "min"; type: "string" }
2249 Property { name: "max"; type: "string" }
2258 Property { name: "max"; type: "string" }
2250 Property { name: "count"; type: "int"; isReadonly: true }
2259 Property { name: "count"; type: "int"; isReadonly: true }
2251 Signal {
2260 Signal {
2252 name: "minChanged"
2261 name: "minChanged"
2253 Parameter { name: "min"; type: "string" }
2262 Parameter { name: "min"; type: "string" }
2254 }
2263 }
2255 Signal {
2264 Signal {
2256 name: "maxChanged"
2265 name: "maxChanged"
2257 Parameter { name: "max"; type: "string" }
2266 Parameter { name: "max"; type: "string" }
2258 }
2267 }
2259 Signal {
2268 Signal {
2260 name: "rangeChanged"
2269 name: "rangeChanged"
2261 Parameter { name: "min"; type: "string" }
2270 Parameter { name: "min"; type: "string" }
2262 Parameter { name: "max"; type: "string" }
2271 Parameter { name: "max"; type: "string" }
2263 }
2272 }
2264 Method { name: "clear" }
2273 Method { name: "clear" }
2265 }
2274 }
2266 Component {
2275 Component {
2267 name: "QtCharts::QBarModelMapper"
2276 name: "QtCharts::QBarModelMapper"
2268 prototype: "QObject"
2277 prototype: "QObject"
2269 exports: [
2278 exports: [
2270 "QtCharts/BarModelMapper 1.0",
2279 "QtCharts/BarModelMapper 1.0",
2271 "QtCharts/BarModelMapper 2.0"
2280 "QtCharts/BarModelMapper 2.0"
2272 ]
2281 ]
2273 isCreatable: false
2282 isCreatable: false
2274 exportMetaObjectRevisions: [0, 0]
2283 exportMetaObjectRevisions: [0, 0]
2275 }
2284 }
2276 Component { name: "QtCharts::QBarSeries"; prototype: "QtCharts::QAbstractBarSeries" }
2285 Component { name: "QtCharts::QBarSeries"; prototype: "QtCharts::QAbstractBarSeries" }
2277 Component {
2286 Component {
2278 name: "QtCharts::QBarSet"
2287 name: "QtCharts::QBarSet"
2279 prototype: "QObject"
2288 prototype: "QObject"
2280 exports: ["QtCharts/BarSetBase 1.0", "QtCharts/BarSetBase 2.0"]
2289 exports: ["QtCharts/BarSetBase 1.0", "QtCharts/BarSetBase 2.0"]
2281 isCreatable: false
2290 isCreatable: false
2282 exportMetaObjectRevisions: [0, 0]
2291 exportMetaObjectRevisions: [0, 0]
2283 Property { name: "label"; type: "string" }
2292 Property { name: "label"; type: "string" }
2284 Property { name: "pen"; type: "QPen" }
2293 Property { name: "pen"; type: "QPen" }
2285 Property { name: "brush"; type: "QBrush" }
2294 Property { name: "brush"; type: "QBrush" }
2286 Property { name: "labelBrush"; type: "QBrush" }
2295 Property { name: "labelBrush"; type: "QBrush" }
2287 Property { name: "labelFont"; type: "QFont" }
2296 Property { name: "labelFont"; type: "QFont" }
2288 Property { name: "color"; type: "QColor" }
2297 Property { name: "color"; type: "QColor" }
2289 Property { name: "borderColor"; type: "QColor" }
2298 Property { name: "borderColor"; type: "QColor" }
2290 Property { name: "labelColor"; type: "QColor" }
2299 Property { name: "labelColor"; type: "QColor" }
2291 Signal {
2300 Signal {
2292 name: "clicked"
2301 name: "clicked"
2293 Parameter { name: "index"; type: "int" }
2302 Parameter { name: "index"; type: "int" }
2294 }
2303 }
2295 Signal {
2304 Signal {
2296 name: "hovered"
2305 name: "hovered"
2297 Parameter { name: "status"; type: "bool" }
2306 Parameter { name: "status"; type: "bool" }
2298 Parameter { name: "index"; type: "int" }
2307 Parameter { name: "index"; type: "int" }
2299 }
2308 }
2300 Signal {
2309 Signal {
2301 name: "pressed"
2310 name: "pressed"
2302 Parameter { name: "index"; type: "int" }
2311 Parameter { name: "index"; type: "int" }
2303 }
2312 }
2304 Signal {
2313 Signal {
2305 name: "released"
2314 name: "released"
2306 Parameter { name: "index"; type: "int" }
2315 Parameter { name: "index"; type: "int" }
2307 }
2316 }
2308 Signal {
2317 Signal {
2309 name: "doubleClicked"
2318 name: "doubleClicked"
2310 Parameter { name: "index"; type: "int" }
2319 Parameter { name: "index"; type: "int" }
2311 }
2320 }
2312 Signal {
2321 Signal {
2313 name: "colorChanged"
2322 name: "colorChanged"
2314 Parameter { name: "color"; type: "QColor" }
2323 Parameter { name: "color"; type: "QColor" }
2315 }
2324 }
2316 Signal {
2325 Signal {
2317 name: "borderColorChanged"
2326 name: "borderColorChanged"
2318 Parameter { name: "color"; type: "QColor" }
2327 Parameter { name: "color"; type: "QColor" }
2319 }
2328 }
2320 Signal {
2329 Signal {
2321 name: "labelColorChanged"
2330 name: "labelColorChanged"
2322 Parameter { name: "color"; type: "QColor" }
2331 Parameter { name: "color"; type: "QColor" }
2323 }
2332 }
2324 Signal {
2333 Signal {
2325 name: "valuesAdded"
2334 name: "valuesAdded"
2326 Parameter { name: "index"; type: "int" }
2335 Parameter { name: "index"; type: "int" }
2327 Parameter { name: "count"; type: "int" }
2336 Parameter { name: "count"; type: "int" }
2328 }
2337 }
2329 Signal {
2338 Signal {
2330 name: "valuesRemoved"
2339 name: "valuesRemoved"
2331 Parameter { name: "index"; type: "int" }
2340 Parameter { name: "index"; type: "int" }
2332 Parameter { name: "count"; type: "int" }
2341 Parameter { name: "count"; type: "int" }
2333 }
2342 }
2334 Signal {
2343 Signal {
2335 name: "valueChanged"
2344 name: "valueChanged"
2336 Parameter { name: "index"; type: "int" }
2345 Parameter { name: "index"; type: "int" }
2337 }
2346 }
2338 }
2347 }
2339 Component {
2348 Component {
2340 name: "QtCharts::QBoxPlotModelMapper"
2349 name: "QtCharts::QBoxPlotModelMapper"
2341 prototype: "QObject"
2350 prototype: "QObject"
2342 exports: ["QtCharts/BoxPlotModelMapper 2.0"]
2351 exports: ["QtCharts/BoxPlotModelMapper 2.0"]
2343 isCreatable: false
2352 isCreatable: false
2344 exportMetaObjectRevisions: [0]
2353 exportMetaObjectRevisions: [0]
2345 }
2354 }
2346 Component {
2355 Component {
2347 name: "QtCharts::QBoxPlotSeries"
2356 name: "QtCharts::QBoxPlotSeries"
2348 prototype: "QtCharts::QAbstractSeries"
2357 prototype: "QtCharts::QAbstractSeries"
2349 Property { name: "boxOutlineVisible"; type: "bool" }
2358 Property { name: "boxOutlineVisible"; type: "bool" }
2350 Property { name: "boxWidth"; type: "double" }
2359 Property { name: "boxWidth"; type: "double" }
2351 Property { name: "pen"; type: "QPen" }
2360 Property { name: "pen"; type: "QPen" }
2352 Property { name: "brush"; type: "QBrush" }
2361 Property { name: "brush"; type: "QBrush" }
2353 Property { name: "count"; revision: 1; type: "int"; isReadonly: true }
2362 Property { name: "count"; revision: 1; type: "int"; isReadonly: true }
2354 Signal {
2363 Signal {
2355 name: "clicked"
2364 name: "clicked"
2356 Parameter { name: "boxset"; type: "QBoxSet"; isPointer: true }
2365 Parameter { name: "boxset"; type: "QBoxSet"; isPointer: true }
2357 }
2366 }
2358 Signal {
2367 Signal {
2359 name: "hovered"
2368 name: "hovered"
2360 Parameter { name: "status"; type: "bool" }
2369 Parameter { name: "status"; type: "bool" }
2361 Parameter { name: "boxset"; type: "QBoxSet"; isPointer: true }
2370 Parameter { name: "boxset"; type: "QBoxSet"; isPointer: true }
2362 }
2371 }
2363 Signal {
2372 Signal {
2364 name: "pressed"
2373 name: "pressed"
2365 Parameter { name: "boxset"; type: "QBoxSet"; isPointer: true }
2374 Parameter { name: "boxset"; type: "QBoxSet"; isPointer: true }
2366 }
2375 }
2367 Signal {
2376 Signal {
2368 name: "released"
2377 name: "released"
2369 Parameter { name: "boxset"; type: "QBoxSet"; isPointer: true }
2378 Parameter { name: "boxset"; type: "QBoxSet"; isPointer: true }
2370 }
2379 }
2371 Signal {
2380 Signal {
2372 name: "doubleClicked"
2381 name: "doubleClicked"
2373 Parameter { name: "boxset"; type: "QBoxSet"; isPointer: true }
2382 Parameter { name: "boxset"; type: "QBoxSet"; isPointer: true }
2374 }
2383 }
2375 Signal { name: "boxOutlineVisibilityChanged" }
2384 Signal { name: "boxOutlineVisibilityChanged" }
2376 Signal {
2385 Signal {
2377 name: "boxsetsAdded"
2386 name: "boxsetsAdded"
2378 Parameter { name: "sets"; type: "QList<QBoxSet*>" }
2387 Parameter { name: "sets"; type: "QList<QBoxSet*>" }
2379 }
2388 }
2380 Signal {
2389 Signal {
2381 name: "boxsetsRemoved"
2390 name: "boxsetsRemoved"
2382 Parameter { name: "sets"; type: "QList<QBoxSet*>" }
2391 Parameter { name: "sets"; type: "QList<QBoxSet*>" }
2383 }
2392 }
2384 }
2393 }
2385 Component {
2394 Component {
2386 name: "QtCharts::QBoxSet"
2395 name: "QtCharts::QBoxSet"
2387 prototype: "QObject"
2396 prototype: "QObject"
2388 Property { name: "pen"; type: "QPen" }
2397 Property { name: "pen"; type: "QPen" }
2389 Property { name: "brush"; type: "QBrush" }
2398 Property { name: "brush"; type: "QBrush" }
2390 Signal { name: "clicked" }
2399 Signal { name: "clicked" }
2391 Signal {
2400 Signal {
2392 name: "hovered"
2401 name: "hovered"
2393 Parameter { name: "status"; type: "bool" }
2402 Parameter { name: "status"; type: "bool" }
2394 }
2403 }
2395 Signal { name: "pressed" }
2404 Signal { name: "pressed" }
2396 Signal { name: "released" }
2405 Signal { name: "released" }
2397 Signal { name: "doubleClicked" }
2406 Signal { name: "doubleClicked" }
2398 Signal { name: "valuesChanged" }
2407 Signal { name: "valuesChanged" }
2399 Signal {
2408 Signal {
2400 name: "valueChanged"
2409 name: "valueChanged"
2401 Parameter { name: "index"; type: "int" }
2410 Parameter { name: "index"; type: "int" }
2402 }
2411 }
2403 Signal { name: "cleared" }
2412 Signal { name: "cleared" }
2404 }
2413 }
2405 Component {
2414 Component {
2406 name: "QtCharts::QCategoryAxis"
2415 name: "QtCharts::QCategoryAxis"
2407 prototype: "QtCharts::QValueAxis"
2416 prototype: "QtCharts::QValueAxis"
2408 Enum {
2417 Enum {
2409 name: "AxisLabelsPosition"
2418 name: "AxisLabelsPosition"
2410 values: {
2419 values: {
2411 "AxisLabelsPositionCenter": 0,
2420 "AxisLabelsPositionCenter": 0,
2412 "AxisLabelsPositionOnValue": 1
2421 "AxisLabelsPositionOnValue": 1
2413 }
2422 }
2414 }
2423 }
2415 Property { name: "startValue"; type: "double" }
2424 Property { name: "startValue"; type: "double" }
2416 Property { name: "count"; type: "int"; isReadonly: true }
2425 Property { name: "count"; type: "int"; isReadonly: true }
2417 Property { name: "categoriesLabels"; type: "QStringList"; isReadonly: true }
2426 Property { name: "categoriesLabels"; type: "QStringList"; isReadonly: true }
2418 Property { name: "labelsPosition"; type: "AxisLabelsPosition" }
2427 Property { name: "labelsPosition"; type: "AxisLabelsPosition" }
2419 Signal { name: "categoriesChanged" }
2428 Signal { name: "categoriesChanged" }
2420 Signal {
2429 Signal {
2421 name: "labelsPositionChanged"
2430 name: "labelsPositionChanged"
2422 Parameter { name: "position"; type: "QCategoryAxis::AxisLabelsPosition" }
2431 Parameter { name: "position"; type: "QCategoryAxis::AxisLabelsPosition" }
2423 }
2432 }
2424 }
2433 }
2425 Component {
2434 Component {
2426 name: "QtCharts::QDateTimeAxis"
2435 name: "QtCharts::QDateTimeAxis"
2427 prototype: "QtCharts::QAbstractAxis"
2436 prototype: "QtCharts::QAbstractAxis"
2428 exports: ["QtCharts/DateTimeAxis 1.1", "QtCharts/DateTimeAxis 2.0"]
2437 exports: ["QtCharts/DateTimeAxis 1.1", "QtCharts/DateTimeAxis 2.0"]
2429 exportMetaObjectRevisions: [0, 0]
2438 exportMetaObjectRevisions: [0, 0]
2430 Property { name: "tickCount"; type: "int" }
2439 Property { name: "tickCount"; type: "int" }
2431 Property { name: "min"; type: "QDateTime" }
2440 Property { name: "min"; type: "QDateTime" }
2432 Property { name: "max"; type: "QDateTime" }
2441 Property { name: "max"; type: "QDateTime" }
2433 Property { name: "format"; type: "string" }
2442 Property { name: "format"; type: "string" }
2434 Signal {
2443 Signal {
2435 name: "minChanged"
2444 name: "minChanged"
2436 Parameter { name: "min"; type: "QDateTime" }
2445 Parameter { name: "min"; type: "QDateTime" }
2437 }
2446 }
2438 Signal {
2447 Signal {
2439 name: "maxChanged"
2448 name: "maxChanged"
2440 Parameter { name: "max"; type: "QDateTime" }
2449 Parameter { name: "max"; type: "QDateTime" }
2441 }
2450 }
2442 Signal {
2451 Signal {
2443 name: "rangeChanged"
2452 name: "rangeChanged"
2444 Parameter { name: "min"; type: "QDateTime" }
2453 Parameter { name: "min"; type: "QDateTime" }
2445 Parameter { name: "max"; type: "QDateTime" }
2454 Parameter { name: "max"; type: "QDateTime" }
2446 }
2455 }
2447 Signal {
2456 Signal {
2448 name: "formatChanged"
2457 name: "formatChanged"
2449 Parameter { name: "format"; type: "string" }
2458 Parameter { name: "format"; type: "string" }
2450 }
2459 }
2451 Signal {
2460 Signal {
2452 name: "tickCountChanged"
2461 name: "tickCountChanged"
2453 Parameter { name: "tick"; type: "int" }
2462 Parameter { name: "tick"; type: "int" }
2454 }
2463 }
2455 }
2464 }
2456 Component {
2465 Component {
2457 name: "QtCharts::QHBarModelMapper"
2466 name: "QtCharts::QHBarModelMapper"
2458 prototype: "QtCharts::QBarModelMapper"
2467 prototype: "QtCharts::QBarModelMapper"
2459 exports: [
2468 exports: [
2460 "QtCharts/HBarModelMapper 1.0",
2469 "QtCharts/HBarModelMapper 1.0",
2461 "QtCharts/HBarModelMapper 2.0"
2470 "QtCharts/HBarModelMapper 2.0"
2462 ]
2471 ]
2463 exportMetaObjectRevisions: [0, 0]
2472 exportMetaObjectRevisions: [0, 0]
2464 Property { name: "series"; type: "QAbstractBarSeries"; isPointer: true }
2473 Property { name: "series"; type: "QAbstractBarSeries"; isPointer: true }
2465 Property { name: "model"; type: "QAbstractItemModel"; isPointer: true }
2474 Property { name: "model"; type: "QAbstractItemModel"; isPointer: true }
2466 Property { name: "firstBarSetRow"; type: "int" }
2475 Property { name: "firstBarSetRow"; type: "int" }
2467 Property { name: "lastBarSetRow"; type: "int" }
2476 Property { name: "lastBarSetRow"; type: "int" }
2468 Property { name: "firstColumn"; type: "int" }
2477 Property { name: "firstColumn"; type: "int" }
2469 Property { name: "columnCount"; type: "int" }
2478 Property { name: "columnCount"; type: "int" }
2470 Signal { name: "seriesReplaced" }
2479 Signal { name: "seriesReplaced" }
2471 Signal { name: "modelReplaced" }
2480 Signal { name: "modelReplaced" }
2472 }
2481 }
2473 Component {
2482 Component {
2474 name: "QtCharts::QHPieModelMapper"
2483 name: "QtCharts::QHPieModelMapper"
2475 prototype: "QtCharts::QPieModelMapper"
2484 prototype: "QtCharts::QPieModelMapper"
2476 exports: [
2485 exports: [
2477 "QtCharts/HPieModelMapper 1.0",
2486 "QtCharts/HPieModelMapper 1.0",
2478 "QtCharts/HPieModelMapper 2.0"
2487 "QtCharts/HPieModelMapper 2.0"
2479 ]
2488 ]
2480 exportMetaObjectRevisions: [0, 0]
2489 exportMetaObjectRevisions: [0, 0]
2481 Property { name: "series"; type: "QPieSeries"; isPointer: true }
2490 Property { name: "series"; type: "QPieSeries"; isPointer: true }
2482 Property { name: "model"; type: "QAbstractItemModel"; isPointer: true }
2491 Property { name: "model"; type: "QAbstractItemModel"; isPointer: true }
2483 Property { name: "valuesRow"; type: "int" }
2492 Property { name: "valuesRow"; type: "int" }
2484 Property { name: "labelsRow"; type: "int" }
2493 Property { name: "labelsRow"; type: "int" }
2485 Property { name: "firstColumn"; type: "int" }
2494 Property { name: "firstColumn"; type: "int" }
2486 Property { name: "columnCount"; type: "int" }
2495 Property { name: "columnCount"; type: "int" }
2487 Signal { name: "seriesReplaced" }
2496 Signal { name: "seriesReplaced" }
2488 Signal { name: "modelReplaced" }
2497 Signal { name: "modelReplaced" }
2489 }
2498 }
2490 Component {
2499 Component {
2491 name: "QtCharts::QHXYModelMapper"
2500 name: "QtCharts::QHXYModelMapper"
2492 prototype: "QtCharts::QXYModelMapper"
2501 prototype: "QtCharts::QXYModelMapper"
2493 exports: [
2502 exports: [
2494 "QtCharts/HXYModelMapper 1.0",
2503 "QtCharts/HXYModelMapper 1.0",
2495 "QtCharts/HXYModelMapper 2.0"
2504 "QtCharts/HXYModelMapper 2.0"
2496 ]
2505 ]
2497 exportMetaObjectRevisions: [0, 0]
2506 exportMetaObjectRevisions: [0, 0]
2498 Property { name: "series"; type: "QXYSeries"; isPointer: true }
2507 Property { name: "series"; type: "QXYSeries"; isPointer: true }
2499 Property { name: "model"; type: "QAbstractItemModel"; isPointer: true }
2508 Property { name: "model"; type: "QAbstractItemModel"; isPointer: true }
2500 Property { name: "xRow"; type: "int" }
2509 Property { name: "xRow"; type: "int" }
2501 Property { name: "yRow"; type: "int" }
2510 Property { name: "yRow"; type: "int" }
2502 Property { name: "firstColumn"; type: "int" }
2511 Property { name: "firstColumn"; type: "int" }
2503 Property { name: "columnCount"; type: "int" }
2512 Property { name: "columnCount"; type: "int" }
2504 Signal { name: "seriesReplaced" }
2513 Signal { name: "seriesReplaced" }
2505 Signal { name: "modelReplaced" }
2514 Signal { name: "modelReplaced" }
2506 }
2515 }
2507 Component { name: "QtCharts::QHorizontalBarSeries"; prototype: "QtCharts::QAbstractBarSeries" }
2516 Component { name: "QtCharts::QHorizontalBarSeries"; prototype: "QtCharts::QAbstractBarSeries" }
2508 Component {
2517 Component {
2509 name: "QtCharts::QHorizontalPercentBarSeries"
2518 name: "QtCharts::QHorizontalPercentBarSeries"
2510 prototype: "QtCharts::QAbstractBarSeries"
2519 prototype: "QtCharts::QAbstractBarSeries"
2511 }
2520 }
2512 Component {
2521 Component {
2513 name: "QtCharts::QHorizontalStackedBarSeries"
2522 name: "QtCharts::QHorizontalStackedBarSeries"
2514 prototype: "QtCharts::QAbstractBarSeries"
2523 prototype: "QtCharts::QAbstractBarSeries"
2515 }
2524 }
2516 Component {
2525 Component {
2517 name: "QtCharts::QLegend"
2526 name: "QtCharts::QLegend"
2518 defaultProperty: "children"
2527 defaultProperty: "children"
2519 prototype: "QGraphicsWidget"
2528 prototype: "QGraphicsWidget"
2520 exports: ["QtCharts/Legend 1.0", "QtCharts/Legend 2.0"]
2529 exports: ["QtCharts/Legend 1.0", "QtCharts/Legend 2.0"]
2521 isCreatable: false
2530 isCreatable: false
2522 exportMetaObjectRevisions: [0, 0]
2531 exportMetaObjectRevisions: [0, 0]
2523 Property { name: "alignment"; type: "Qt::Alignment" }
2532 Property { name: "alignment"; type: "Qt::Alignment" }
2524 Property { name: "backgroundVisible"; type: "bool" }
2533 Property { name: "backgroundVisible"; type: "bool" }
2525 Property { name: "color"; type: "QColor" }
2534 Property { name: "color"; type: "QColor" }
2526 Property { name: "borderColor"; type: "QColor" }
2535 Property { name: "borderColor"; type: "QColor" }
2527 Property { name: "font"; type: "QFont" }
2536 Property { name: "font"; type: "QFont" }
2528 Property { name: "labelColor"; type: "QColor" }
2537 Property { name: "labelColor"; type: "QColor" }
2529 Property { name: "reverseMarkers"; type: "bool" }
2538 Property { name: "reverseMarkers"; type: "bool" }
2530 Signal {
2539 Signal {
2531 name: "backgroundVisibleChanged"
2540 name: "backgroundVisibleChanged"
2532 Parameter { name: "visible"; type: "bool" }
2541 Parameter { name: "visible"; type: "bool" }
2533 }
2542 }
2534 Signal {
2543 Signal {
2535 name: "colorChanged"
2544 name: "colorChanged"
2536 Parameter { name: "color"; type: "QColor" }
2545 Parameter { name: "color"; type: "QColor" }
2537 }
2546 }
2538 Signal {
2547 Signal {
2539 name: "borderColorChanged"
2548 name: "borderColorChanged"
2540 Parameter { name: "color"; type: "QColor" }
2549 Parameter { name: "color"; type: "QColor" }
2541 }
2550 }
2542 Signal {
2551 Signal {
2543 name: "fontChanged"
2552 name: "fontChanged"
2544 Parameter { name: "font"; type: "QFont" }
2553 Parameter { name: "font"; type: "QFont" }
2545 }
2554 }
2546 Signal {
2555 Signal {
2547 name: "labelColorChanged"
2556 name: "labelColorChanged"
2548 Parameter { name: "color"; type: "QColor" }
2557 Parameter { name: "color"; type: "QColor" }
2549 }
2558 }
2550 Signal {
2559 Signal {
2551 name: "reverseMarkersChanged"
2560 name: "reverseMarkersChanged"
2552 Parameter { name: "reverseMarkers"; type: "bool" }
2561 Parameter { name: "reverseMarkers"; type: "bool" }
2553 }
2562 }
2554 }
2563 }
2555 Component { name: "QtCharts::QLineSeries"; prototype: "QtCharts::QXYSeries" }
2564 Component { name: "QtCharts::QLineSeries"; prototype: "QtCharts::QXYSeries" }
2556 Component {
2565 Component {
2557 name: "QtCharts::QLogValueAxis"
2566 name: "QtCharts::QLogValueAxis"
2558 prototype: "QtCharts::QAbstractAxis"
2567 prototype: "QtCharts::QAbstractAxis"
2559 exports: ["QtCharts/LogValueAxis 1.3", "QtCharts/LogValueAxis 2.0"]
2568 exports: ["QtCharts/LogValueAxis 1.3", "QtCharts/LogValueAxis 2.0"]
2560 exportMetaObjectRevisions: [0, 1]
2569 exportMetaObjectRevisions: [0, 1]
2561 Property { name: "min"; type: "double" }
2570 Property { name: "min"; type: "double" }
2562 Property { name: "max"; type: "double" }
2571 Property { name: "max"; type: "double" }
2563 Property { name: "labelFormat"; type: "string" }
2572 Property { name: "labelFormat"; type: "string" }
2564 Property { name: "base"; type: "double" }
2573 Property { name: "base"; type: "double" }
2565 Signal {
2574 Signal {
2566 name: "minChanged"
2575 name: "minChanged"
2567 Parameter { name: "min"; type: "double" }
2576 Parameter { name: "min"; type: "double" }
2568 }
2577 }
2569 Signal {
2578 Signal {
2570 name: "maxChanged"
2579 name: "maxChanged"
2571 Parameter { name: "max"; type: "double" }
2580 Parameter { name: "max"; type: "double" }
2572 }
2581 }
2573 Signal {
2582 Signal {
2574 name: "rangeChanged"
2583 name: "rangeChanged"
2575 Parameter { name: "min"; type: "double" }
2584 Parameter { name: "min"; type: "double" }
2576 Parameter { name: "max"; type: "double" }
2585 Parameter { name: "max"; type: "double" }
2577 }
2586 }
2578 Signal {
2587 Signal {
2579 name: "labelFormatChanged"
2588 name: "labelFormatChanged"
2580 Parameter { name: "format"; type: "string" }
2589 Parameter { name: "format"; type: "string" }
2581 }
2590 }
2582 Signal {
2591 Signal {
2583 name: "baseChanged"
2592 name: "baseChanged"
2584 Parameter { name: "base"; type: "double" }
2593 Parameter { name: "base"; type: "double" }
2585 }
2594 }
2586 }
2595 }
2587 Component { name: "QtCharts::QPercentBarSeries"; prototype: "QtCharts::QAbstractBarSeries" }
2596 Component { name: "QtCharts::QPercentBarSeries"; prototype: "QtCharts::QAbstractBarSeries" }
2588 Component {
2597 Component {
2589 name: "QtCharts::QPieModelMapper"
2598 name: "QtCharts::QPieModelMapper"
2590 prototype: "QObject"
2599 prototype: "QObject"
2591 exports: [
2600 exports: [
2592 "QtCharts/PieModelMapper 1.0",
2601 "QtCharts/PieModelMapper 1.0",
2593 "QtCharts/PieModelMapper 2.0"
2602 "QtCharts/PieModelMapper 2.0"
2594 ]
2603 ]
2595 isCreatable: false
2604 isCreatable: false
2596 exportMetaObjectRevisions: [0, 0]
2605 exportMetaObjectRevisions: [0, 0]
2597 }
2606 }
2598 Component {
2607 Component {
2599 name: "QtCharts::QPieSeries"
2608 name: "QtCharts::QPieSeries"
2600 prototype: "QtCharts::QAbstractSeries"
2609 prototype: "QtCharts::QAbstractSeries"
2601 exports: ["QtCharts/QPieSeries 1.0", "QtCharts/QPieSeries 2.0"]
2610 exports: ["QtCharts/QPieSeries 1.0", "QtCharts/QPieSeries 2.0"]
2602 isCreatable: false
2611 isCreatable: false
2603 exportMetaObjectRevisions: [0, 0]
2612 exportMetaObjectRevisions: [0, 0]
2604 Property { name: "horizontalPosition"; type: "double" }
2613 Property { name: "horizontalPosition"; type: "double" }
2605 Property { name: "verticalPosition"; type: "double" }
2614 Property { name: "verticalPosition"; type: "double" }
2606 Property { name: "size"; type: "double" }
2615 Property { name: "size"; type: "double" }
2607 Property { name: "startAngle"; type: "double" }
2616 Property { name: "startAngle"; type: "double" }
2608 Property { name: "endAngle"; type: "double" }
2617 Property { name: "endAngle"; type: "double" }
2609 Property { name: "count"; type: "int"; isReadonly: true }
2618 Property { name: "count"; type: "int"; isReadonly: true }
2610 Property { name: "sum"; type: "double"; isReadonly: true }
2619 Property { name: "sum"; type: "double"; isReadonly: true }
2611 Property { name: "holeSize"; type: "double" }
2620 Property { name: "holeSize"; type: "double" }
2612 Signal {
2621 Signal {
2613 name: "added"
2622 name: "added"
2614 Parameter { name: "slices"; type: "QList<QPieSlice*>" }
2623 Parameter { name: "slices"; type: "QList<QPieSlice*>" }
2615 }
2624 }
2616 Signal {
2625 Signal {
2617 name: "removed"
2626 name: "removed"
2618 Parameter { name: "slices"; type: "QList<QPieSlice*>" }
2627 Parameter { name: "slices"; type: "QList<QPieSlice*>" }
2619 }
2628 }
2620 Signal {
2629 Signal {
2621 name: "clicked"
2630 name: "clicked"
2622 Parameter { name: "slice"; type: "QPieSlice"; isPointer: true }
2631 Parameter { name: "slice"; type: "QPieSlice"; isPointer: true }
2623 }
2632 }
2624 Signal {
2633 Signal {
2625 name: "hovered"
2634 name: "hovered"
2626 Parameter { name: "slice"; type: "QPieSlice"; isPointer: true }
2635 Parameter { name: "slice"; type: "QPieSlice"; isPointer: true }
2627 Parameter { name: "state"; type: "bool" }
2636 Parameter { name: "state"; type: "bool" }
2628 }
2637 }
2629 Signal {
2638 Signal {
2630 name: "pressed"
2639 name: "pressed"
2631 Parameter { name: "slice"; type: "QPieSlice"; isPointer: true }
2640 Parameter { name: "slice"; type: "QPieSlice"; isPointer: true }
2632 }
2641 }
2633 Signal {
2642 Signal {
2634 name: "released"
2643 name: "released"
2635 Parameter { name: "slice"; type: "QPieSlice"; isPointer: true }
2644 Parameter { name: "slice"; type: "QPieSlice"; isPointer: true }
2636 }
2645 }
2637 Signal {
2646 Signal {
2638 name: "doubleClicked"
2647 name: "doubleClicked"
2639 Parameter { name: "slice"; type: "QPieSlice"; isPointer: true }
2648 Parameter { name: "slice"; type: "QPieSlice"; isPointer: true }
2640 }
2649 }
2641 }
2650 }
2642 Component {
2651 Component {
2643 name: "QtCharts::QPieSlice"
2652 name: "QtCharts::QPieSlice"
2644 prototype: "QObject"
2653 prototype: "QObject"
2645 exports: ["QtCharts/PieSlice 1.0", "QtCharts/PieSlice 2.0"]
2654 exports: ["QtCharts/PieSlice 1.0", "QtCharts/PieSlice 2.0"]
2646 exportMetaObjectRevisions: [0, 0]
2655 exportMetaObjectRevisions: [0, 0]
2647 Enum {
2656 Enum {
2648 name: "LabelPosition"
2657 name: "LabelPosition"
2649 values: {
2658 values: {
2650 "LabelOutside": 0,
2659 "LabelOutside": 0,
2651 "LabelInsideHorizontal": 1,
2660 "LabelInsideHorizontal": 1,
2652 "LabelInsideTangential": 2,
2661 "LabelInsideTangential": 2,
2653 "LabelInsideNormal": 3
2662 "LabelInsideNormal": 3
2654 }
2663 }
2655 }
2664 }
2656 Property { name: "label"; type: "string" }
2665 Property { name: "label"; type: "string" }
2657 Property { name: "value"; type: "double" }
2666 Property { name: "value"; type: "double" }
2658 Property { name: "labelVisible"; type: "bool" }
2667 Property { name: "labelVisible"; type: "bool" }
2659 Property { name: "labelPosition"; type: "LabelPosition" }
2668 Property { name: "labelPosition"; type: "LabelPosition" }
2660 Property { name: "exploded"; type: "bool" }
2669 Property { name: "exploded"; type: "bool" }
2661 Property { name: "pen"; type: "QPen" }
2670 Property { name: "pen"; type: "QPen" }
2662 Property { name: "borderColor"; type: "QColor" }
2671 Property { name: "borderColor"; type: "QColor" }
2663 Property { name: "borderWidth"; type: "int" }
2672 Property { name: "borderWidth"; type: "int" }
2664 Property { name: "brush"; type: "QBrush" }
2673 Property { name: "brush"; type: "QBrush" }
2665 Property { name: "color"; type: "QColor" }
2674 Property { name: "color"; type: "QColor" }
2666 Property { name: "labelBrush"; type: "QBrush" }
2675 Property { name: "labelBrush"; type: "QBrush" }
2667 Property { name: "labelColor"; type: "QColor" }
2676 Property { name: "labelColor"; type: "QColor" }
2668 Property { name: "labelFont"; type: "QFont" }
2677 Property { name: "labelFont"; type: "QFont" }
2669 Property { name: "labelArmLengthFactor"; type: "double" }
2678 Property { name: "labelArmLengthFactor"; type: "double" }
2670 Property { name: "explodeDistanceFactor"; type: "double" }
2679 Property { name: "explodeDistanceFactor"; type: "double" }
2671 Property { name: "percentage"; type: "double"; isReadonly: true }
2680 Property { name: "percentage"; type: "double"; isReadonly: true }
2672 Property { name: "startAngle"; type: "double"; isReadonly: true }
2681 Property { name: "startAngle"; type: "double"; isReadonly: true }
2673 Property { name: "angleSpan"; type: "double"; isReadonly: true }
2682 Property { name: "angleSpan"; type: "double"; isReadonly: true }
2674 Signal { name: "clicked" }
2683 Signal { name: "clicked" }
2675 Signal {
2684 Signal {
2676 name: "hovered"
2685 name: "hovered"
2677 Parameter { name: "state"; type: "bool" }
2686 Parameter { name: "state"; type: "bool" }
2678 }
2687 }
2679 Signal { name: "pressed" }
2688 Signal { name: "pressed" }
2680 Signal { name: "released" }
2689 Signal { name: "released" }
2681 Signal { name: "doubleClicked" }
2690 Signal { name: "doubleClicked" }
2682 }
2691 }
2683 Component {
2692 Component {
2684 name: "QtCharts::QScatterSeries"
2693 name: "QtCharts::QScatterSeries"
2685 prototype: "QtCharts::QXYSeries"
2694 prototype: "QtCharts::QXYSeries"
2686 Enum {
2695 Enum {
2687 name: "MarkerShape"
2696 name: "MarkerShape"
2688 values: {
2697 values: {
2689 "MarkerShapeCircle": 0,
2698 "MarkerShapeCircle": 0,
2690 "MarkerShapeRectangle": 1
2699 "MarkerShapeRectangle": 1
2691 }
2700 }
2692 }
2701 }
2693 Property { name: "color"; type: "QColor" }
2702 Property { name: "color"; type: "QColor" }
2694 Property { name: "borderColor"; type: "QColor" }
2703 Property { name: "borderColor"; type: "QColor" }
2695 Property { name: "markerShape"; type: "MarkerShape" }
2704 Property { name: "markerShape"; type: "MarkerShape" }
2696 Property { name: "markerSize"; type: "double" }
2705 Property { name: "markerSize"; type: "double" }
2697 Property { name: "brush"; type: "QBrush" }
2706 Property { name: "brush"; type: "QBrush" }
2698 Signal {
2707 Signal {
2699 name: "colorChanged"
2708 name: "colorChanged"
2700 Parameter { name: "color"; type: "QColor" }
2709 Parameter { name: "color"; type: "QColor" }
2701 }
2710 }
2702 Signal {
2711 Signal {
2703 name: "borderColorChanged"
2712 name: "borderColorChanged"
2704 Parameter { name: "color"; type: "QColor" }
2713 Parameter { name: "color"; type: "QColor" }
2705 }
2714 }
2706 }
2715 }
2707 Component { name: "QtCharts::QSplineSeries"; prototype: "QtCharts::QLineSeries" }
2716 Component { name: "QtCharts::QSplineSeries"; prototype: "QtCharts::QLineSeries" }
2708 Component { name: "QtCharts::QStackedBarSeries"; prototype: "QtCharts::QAbstractBarSeries" }
2717 Component { name: "QtCharts::QStackedBarSeries"; prototype: "QtCharts::QAbstractBarSeries" }
2709 Component {
2718 Component {
2710 name: "QtCharts::QVBarModelMapper"
2719 name: "QtCharts::QVBarModelMapper"
2711 prototype: "QtCharts::QBarModelMapper"
2720 prototype: "QtCharts::QBarModelMapper"
2712 exports: [
2721 exports: [
2713 "QtCharts/VBarModelMapper 1.0",
2722 "QtCharts/VBarModelMapper 1.0",
2714 "QtCharts/VBarModelMapper 2.0"
2723 "QtCharts/VBarModelMapper 2.0"
2715 ]
2724 ]
2716 exportMetaObjectRevisions: [0, 0]
2725 exportMetaObjectRevisions: [0, 0]
2717 Property { name: "series"; type: "QAbstractBarSeries"; isPointer: true }
2726 Property { name: "series"; type: "QAbstractBarSeries"; isPointer: true }
2718 Property { name: "model"; type: "QAbstractItemModel"; isPointer: true }
2727 Property { name: "model"; type: "QAbstractItemModel"; isPointer: true }
2719 Property { name: "firstBarSetColumn"; type: "int" }
2728 Property { name: "firstBarSetColumn"; type: "int" }
2720 Property { name: "lastBarSetColumn"; type: "int" }
2729 Property { name: "lastBarSetColumn"; type: "int" }
2721 Property { name: "firstRow"; type: "int" }
2730 Property { name: "firstRow"; type: "int" }
2722 Property { name: "rowCount"; type: "int" }
2731 Property { name: "rowCount"; type: "int" }
2723 Signal { name: "seriesReplaced" }
2732 Signal { name: "seriesReplaced" }
2724 Signal { name: "modelReplaced" }
2733 Signal { name: "modelReplaced" }
2725 }
2734 }
2726 Component {
2735 Component {
2727 name: "QtCharts::QVBoxPlotModelMapper"
2736 name: "QtCharts::QVBoxPlotModelMapper"
2728 prototype: "QtCharts::QBoxPlotModelMapper"
2737 prototype: "QtCharts::QBoxPlotModelMapper"
2729 exports: ["QtCharts/VBoxPlotModelMapper 2.0"]
2738 exports: ["QtCharts/VBoxPlotModelMapper 2.0"]
2730 exportMetaObjectRevisions: [0]
2739 exportMetaObjectRevisions: [0]
2731 Property { name: "series"; type: "QBoxPlotSeries"; isPointer: true }
2740 Property { name: "series"; type: "QBoxPlotSeries"; isPointer: true }
2732 Property { name: "model"; type: "QAbstractItemModel"; isPointer: true }
2741 Property { name: "model"; type: "QAbstractItemModel"; isPointer: true }
2733 Property { name: "firstBoxSetColumn"; type: "int" }
2742 Property { name: "firstBoxSetColumn"; type: "int" }
2734 Property { name: "lastBoxSetColumn"; type: "int" }
2743 Property { name: "lastBoxSetColumn"; type: "int" }
2735 Property { name: "firstRow"; type: "int" }
2744 Property { name: "firstRow"; type: "int" }
2736 Property { name: "rowCount"; type: "int" }
2745 Property { name: "rowCount"; type: "int" }
2737 Signal { name: "seriesReplaced" }
2746 Signal { name: "seriesReplaced" }
2738 Signal { name: "modelReplaced" }
2747 Signal { name: "modelReplaced" }
2739 }
2748 }
2740 Component {
2749 Component {
2741 name: "QtCharts::QVPieModelMapper"
2750 name: "QtCharts::QVPieModelMapper"
2742 prototype: "QtCharts::QPieModelMapper"
2751 prototype: "QtCharts::QPieModelMapper"
2743 exports: [
2752 exports: [
2744 "QtCharts/VPieModelMapper 1.0",
2753 "QtCharts/VPieModelMapper 1.0",
2745 "QtCharts/VPieModelMapper 2.0"
2754 "QtCharts/VPieModelMapper 2.0"
2746 ]
2755 ]
2747 exportMetaObjectRevisions: [0, 0]
2756 exportMetaObjectRevisions: [0, 0]
2748 Property { name: "series"; type: "QPieSeries"; isPointer: true }
2757 Property { name: "series"; type: "QPieSeries"; isPointer: true }
2749 Property { name: "model"; type: "QAbstractItemModel"; isPointer: true }
2758 Property { name: "model"; type: "QAbstractItemModel"; isPointer: true }
2750 Property { name: "valuesColumn"; type: "int" }
2759 Property { name: "valuesColumn"; type: "int" }
2751 Property { name: "labelsColumn"; type: "int" }
2760 Property { name: "labelsColumn"; type: "int" }
2752 Property { name: "firstRow"; type: "int" }
2761 Property { name: "firstRow"; type: "int" }
2753 Property { name: "rowCount"; type: "int" }
2762 Property { name: "rowCount"; type: "int" }
2754 Signal { name: "seriesReplaced" }
2763 Signal { name: "seriesReplaced" }
2755 Signal { name: "modelReplaced" }
2764 Signal { name: "modelReplaced" }
2756 }
2765 }
2757 Component {
2766 Component {
2758 name: "QtCharts::QVXYModelMapper"
2767 name: "QtCharts::QVXYModelMapper"
2759 prototype: "QtCharts::QXYModelMapper"
2768 prototype: "QtCharts::QXYModelMapper"
2760 exports: [
2769 exports: [
2761 "QtCharts/VXYModelMapper 1.0",
2770 "QtCharts/VXYModelMapper 1.0",
2762 "QtCharts/VXYModelMapper 2.0"
2771 "QtCharts/VXYModelMapper 2.0"
2763 ]
2772 ]
2764 exportMetaObjectRevisions: [0, 0]
2773 exportMetaObjectRevisions: [0, 0]
2765 Property { name: "series"; type: "QXYSeries"; isPointer: true }
2774 Property { name: "series"; type: "QXYSeries"; isPointer: true }
2766 Property { name: "model"; type: "QAbstractItemModel"; isPointer: true }
2775 Property { name: "model"; type: "QAbstractItemModel"; isPointer: true }
2767 Property { name: "xColumn"; type: "int" }
2776 Property { name: "xColumn"; type: "int" }
2768 Property { name: "yColumn"; type: "int" }
2777 Property { name: "yColumn"; type: "int" }
2769 Property { name: "firstRow"; type: "int" }
2778 Property { name: "firstRow"; type: "int" }
2770 Property { name: "rowCount"; type: "int" }
2779 Property { name: "rowCount"; type: "int" }
2771 Signal { name: "seriesReplaced" }
2780 Signal { name: "seriesReplaced" }
2772 Signal { name: "modelReplaced" }
2781 Signal { name: "modelReplaced" }
2773 }
2782 }
2774 Component {
2783 Component {
2775 name: "QtCharts::QValueAxis"
2784 name: "QtCharts::QValueAxis"
2776 prototype: "QtCharts::QAbstractAxis"
2785 prototype: "QtCharts::QAbstractAxis"
2777 exports: [
2786 exports: [
2778 "QtCharts/ValueAxis 1.1",
2787 "QtCharts/ValueAxis 1.1",
2779 "QtCharts/ValueAxis 2.0",
2788 "QtCharts/ValueAxis 2.0",
2780 "QtCharts/ValuesAxis 1.0"
2789 "QtCharts/ValuesAxis 1.0"
2781 ]
2790 ]
2782 exportMetaObjectRevisions: [0, 0, 0]
2791 exportMetaObjectRevisions: [0, 0, 0]
2783 Property { name: "tickCount"; type: "int" }
2792 Property { name: "tickCount"; type: "int" }
2784 Property { name: "min"; type: "double" }
2793 Property { name: "min"; type: "double" }
2785 Property { name: "max"; type: "double" }
2794 Property { name: "max"; type: "double" }
2786 Property { name: "labelFormat"; type: "string" }
2795 Property { name: "labelFormat"; type: "string" }
2787 Signal {
2796 Signal {
2788 name: "minChanged"
2797 name: "minChanged"
2789 Parameter { name: "min"; type: "double" }
2798 Parameter { name: "min"; type: "double" }
2790 }
2799 }
2791 Signal {
2800 Signal {
2792 name: "maxChanged"
2801 name: "maxChanged"
2793 Parameter { name: "max"; type: "double" }
2802 Parameter { name: "max"; type: "double" }
2794 }
2803 }
2795 Signal {
2804 Signal {
2796 name: "rangeChanged"
2805 name: "rangeChanged"
2797 Parameter { name: "min"; type: "double" }
2806 Parameter { name: "min"; type: "double" }
2798 Parameter { name: "max"; type: "double" }
2807 Parameter { name: "max"; type: "double" }
2799 }
2808 }
2800 Signal {
2809 Signal {
2801 name: "tickCountChanged"
2810 name: "tickCountChanged"
2802 Parameter { name: "tickCount"; type: "int" }
2811 Parameter { name: "tickCount"; type: "int" }
2803 }
2812 }
2804 Signal {
2813 Signal {
2805 name: "labelFormatChanged"
2814 name: "labelFormatChanged"
2806 Parameter { name: "format"; type: "string" }
2815 Parameter { name: "format"; type: "string" }
2807 }
2816 }
2808 Method { name: "applyNiceNumbers" }
2817 Method { name: "applyNiceNumbers" }
2809 }
2818 }
2810 Component {
2819 Component {
2811 name: "QtCharts::QXYModelMapper"
2820 name: "QtCharts::QXYModelMapper"
2812 prototype: "QObject"
2821 prototype: "QObject"
2813 exports: ["QtCharts/XYModelMapper 1.0", "QtCharts/XYModelMapper 2.0"]
2822 exports: ["QtCharts/XYModelMapper 1.0", "QtCharts/XYModelMapper 2.0"]
2814 isCreatable: false
2823 isCreatable: false
2815 exportMetaObjectRevisions: [0, 0]
2824 exportMetaObjectRevisions: [0, 0]
2816 }
2825 }
2817 Component {
2826 Component {
2818 name: "QtCharts::QXYSeries"
2827 name: "QtCharts::QXYSeries"
2819 prototype: "QtCharts::QAbstractSeries"
2828 prototype: "QtCharts::QAbstractSeries"
2820 exports: ["QtCharts/XYSeries 1.0", "QtCharts/XYSeries 2.0"]
2829 exports: ["QtCharts/XYSeries 1.0", "QtCharts/XYSeries 2.0"]
2821 isCreatable: false
2830 isCreatable: false
2822 exportMetaObjectRevisions: [0, 0]
2831 exportMetaObjectRevisions: [0, 0]
2823 Property { name: "pointsVisible"; type: "bool" }
2832 Property { name: "pointsVisible"; type: "bool" }
2824 Property { name: "color"; type: "QColor" }
2833 Property { name: "color"; type: "QColor" }
2825 Property { name: "pointLabelsFormat"; type: "string" }
2834 Property { name: "pointLabelsFormat"; type: "string" }
2826 Property { name: "pointLabelsVisible"; type: "bool" }
2835 Property { name: "pointLabelsVisible"; type: "bool" }
2827 Property { name: "pointLabelsFont"; type: "QFont" }
2836 Property { name: "pointLabelsFont"; type: "QFont" }
2828 Property { name: "pointLabelsColor"; type: "QColor" }
2837 Property { name: "pointLabelsColor"; type: "QColor" }
2829 Signal {
2838 Signal {
2830 name: "clicked"
2839 name: "clicked"
2831 Parameter { name: "point"; type: "QPointF" }
2840 Parameter { name: "point"; type: "QPointF" }
2832 }
2841 }
2833 Signal {
2842 Signal {
2834 name: "hovered"
2843 name: "hovered"
2835 Parameter { name: "point"; type: "QPointF" }
2844 Parameter { name: "point"; type: "QPointF" }
2836 Parameter { name: "state"; type: "bool" }
2845 Parameter { name: "state"; type: "bool" }
2837 }
2846 }
2838 Signal {
2847 Signal {
2839 name: "pressed"
2848 name: "pressed"
2840 Parameter { name: "point"; type: "QPointF" }
2849 Parameter { name: "point"; type: "QPointF" }
2841 }
2850 }
2842 Signal {
2851 Signal {
2843 name: "released"
2852 name: "released"
2844 Parameter { name: "point"; type: "QPointF" }
2853 Parameter { name: "point"; type: "QPointF" }
2845 }
2854 }
2846 Signal {
2855 Signal {
2847 name: "doubleClicked"
2856 name: "doubleClicked"
2848 Parameter { name: "point"; type: "QPointF" }
2857 Parameter { name: "point"; type: "QPointF" }
2849 }
2858 }
2850 Signal {
2859 Signal {
2851 name: "pointReplaced"
2860 name: "pointReplaced"
2852 Parameter { name: "index"; type: "int" }
2861 Parameter { name: "index"; type: "int" }
2853 }
2862 }
2854 Signal {
2863 Signal {
2855 name: "pointRemoved"
2864 name: "pointRemoved"
2856 Parameter { name: "index"; type: "int" }
2865 Parameter { name: "index"; type: "int" }
2857 }
2866 }
2858 Signal {
2867 Signal {
2859 name: "pointAdded"
2868 name: "pointAdded"
2860 Parameter { name: "index"; type: "int" }
2869 Parameter { name: "index"; type: "int" }
2861 }
2870 }
2862 Signal {
2871 Signal {
2863 name: "colorChanged"
2872 name: "colorChanged"
2864 Parameter { name: "color"; type: "QColor" }
2873 Parameter { name: "color"; type: "QColor" }
2865 }
2874 }
2866 Signal { name: "pointsReplaced" }
2875 Signal { name: "pointsReplaced" }
2867 Signal {
2876 Signal {
2868 name: "pointLabelsFormatChanged"
2877 name: "pointLabelsFormatChanged"
2869 Parameter { name: "format"; type: "string" }
2878 Parameter { name: "format"; type: "string" }
2870 }
2879 }
2871 Signal {
2880 Signal {
2872 name: "pointLabelsVisibilityChanged"
2881 name: "pointLabelsVisibilityChanged"
2873 Parameter { name: "visible"; type: "bool" }
2882 Parameter { name: "visible"; type: "bool" }
2874 }
2883 }
2875 Signal {
2884 Signal {
2876 name: "pointLabelsFontChanged"
2885 name: "pointLabelsFontChanged"
2877 Parameter { name: "font"; type: "QFont" }
2886 Parameter { name: "font"; type: "QFont" }
2878 }
2887 }
2879 Signal {
2888 Signal {
2880 name: "pointLabelsColorChanged"
2889 name: "pointLabelsColorChanged"
2881 Parameter { name: "color"; type: "QColor" }
2890 Parameter { name: "color"; type: "QColor" }
2882 }
2891 }
2883 }
2892 }
2884 }
2893 }
@@ -1,158 +1,220
1 /****************************************************************************
1 /****************************************************************************
2 **
2 **
3 ** Copyright (C) 2015 The Qt Company Ltd
3 ** Copyright (C) 2015 The Qt Company Ltd
4 ** All rights reserved.
4 ** All rights reserved.
5 ** For any questions to The Qt Company, please use contact form at http://qt.io
5 ** For any questions to The Qt Company, please use contact form at http://qt.io
6 **
6 **
7 ** This file is part of the Qt Charts module.
7 ** This file is part of the Qt Charts module.
8 **
8 **
9 ** Licensees holding valid commercial license for Qt may use this file in
9 ** Licensees holding valid commercial license for Qt may use this file in
10 ** accordance with the Qt License Agreement provided with the Software
10 ** accordance with the Qt License Agreement provided with the Software
11 ** or, alternatively, in accordance with the terms contained in a written
11 ** or, alternatively, in accordance with the terms contained in a written
12 ** agreement between you and The Qt Company.
12 ** agreement between you and The Qt Company.
13 **
13 **
14 ** If you have questions regarding the use of this file, please use
14 ** If you have questions regarding the use of this file, please use
15 ** contact form at http://qt.io
15 ** contact form at http://qt.io
16 **
16 **
17 ****************************************************************************/
17 ****************************************************************************/
18
18
19 import QtQuick 2.0
19 import QtQuick 2.0
20 import QtTest 1.0
20 import QtTest 1.0
21 import QtCharts 2.0
21 import QtCharts 2.1
22
22
23 Rectangle {
23 Rectangle {
24 width: 400
24 width: 400
25 height: 300
25 height: 300
26
26
27 TestCase {
27 TestCase {
28 id: tc1
28 id: tc1
29 name: "tst_qml-qtquicktest ChartView Functions"
29 name: "tst_qml-qtquicktest ChartView Functions"
30 when: windowShown
30 when: windowShown
31 property rect zoomRect
31
32
32 function test_chartViewSeriesAndAxes() {
33 function test_chartViewSeriesAndAxes() {
33 // Create XY series
34 // Create XY series
34 var line = chartView.createSeries(ChartView.SeriesTypeLine, "line");
35 var line = chartView.createSeries(ChartView.SeriesTypeLine, "line");
35 verify(line != null && line != undefined);
36 verify(line != null && line != undefined);
36 var spline = chartView.createSeries(ChartView.SeriesTypeSpline, "spline");
37 var spline = chartView.createSeries(ChartView.SeriesTypeSpline, "spline");
37 verify(spline != null && spline != undefined);
38 verify(spline != null && spline != undefined);
38 var scatter = chartView.createSeries(ChartView.SeriesTypeScatter, "scatter");
39 var scatter = chartView.createSeries(ChartView.SeriesTypeScatter, "scatter");
39 verify(scatter != null && scatter != undefined);
40 verify(scatter != null && scatter != undefined);
40
41
41 // Create a series with specific axes
42 // Create a series with specific axes
42 var line2 = chartView.createSeries(ChartView.SeriesTypeLine, "line2", chartView.axisX(line), chartView.axisY(line));
43 var line2 = chartView.createSeries(ChartView.SeriesTypeLine, "line2", chartView.axisX(line), chartView.axisY(line));
43
44
44 // Check that all the XY series use the same axes
45 // Check that all the XY series use the same axes
45 verify(chartView.axisX(line) != null);
46 verify(chartView.axisX(line) != null);
46 verify(chartView.axisY(line) != null);
47 verify(chartView.axisY(line) != null);
47 compare(chartView.axisX(line), chartView.axisX(line2));
48 compare(chartView.axisX(line), chartView.axisX(line2));
48 compare(chartView.axisY(line), chartView.axisY(line2));
49 compare(chartView.axisY(line), chartView.axisY(line2));
49 compare(chartView.axisX(line), chartView.axisX(spline));
50 compare(chartView.axisX(line), chartView.axisX(spline));
50 compare(chartView.axisY(line), chartView.axisY(spline));
51 compare(chartView.axisY(line), chartView.axisY(spline));
51 compare(chartView.axisX(line), chartView.axisX(scatter));
52 compare(chartView.axisX(line), chartView.axisX(scatter));
52 compare(chartView.axisY(line), chartView.axisY(scatter));
53 compare(chartView.axisY(line), chartView.axisY(scatter));
53
54
54 var bar = chartView.createSeries(ChartView.SeriesTypeBar, "bar");
55 var bar = chartView.createSeries(ChartView.SeriesTypeBar, "bar");
55 verify(bar != null && bar != undefined);
56 verify(bar != null && bar != undefined);
56 var stackedbar = chartView.createSeries(ChartView.SeriesTypeStackedBar, "stackedbar");
57 var stackedbar = chartView.createSeries(ChartView.SeriesTypeStackedBar, "stackedbar");
57 verify(stackedbar != null && stackedbar != undefined);
58 verify(stackedbar != null && stackedbar != undefined);
58 var percentbar = chartView.createSeries(ChartView.SeriesTypePercentBar, "percentbar");
59 var percentbar = chartView.createSeries(ChartView.SeriesTypePercentBar, "percentbar");
59 verify(percentbar != null && percentbar != undefined);
60 verify(percentbar != null && percentbar != undefined);
60 var horizontalbar = chartView.createSeries(ChartView.SeriesTypeHorizontalBar, "horizontalbar");
61 var horizontalbar = chartView.createSeries(ChartView.SeriesTypeHorizontalBar, "horizontalbar");
61 verify(horizontalbar != null && horizontalbar != undefined);
62 verify(horizontalbar != null && horizontalbar != undefined);
62 var horizontalstackedbar = chartView.createSeries(ChartView.SeriesTypeHorizontalStackedBar, "horizontalstackedbar");
63 var horizontalstackedbar = chartView.createSeries(ChartView.SeriesTypeHorizontalStackedBar, "horizontalstackedbar");
63 verify(horizontalstackedbar != null && horizontalstackedbar != undefined);
64 verify(horizontalstackedbar != null && horizontalstackedbar != undefined);
64 var horizontalpercentbar = chartView.createSeries(ChartView.SeriesTypeHorizontalPercentBar, "horizontalpercentbar");
65 var horizontalpercentbar = chartView.createSeries(ChartView.SeriesTypeHorizontalPercentBar, "horizontalpercentbar");
65 verify(horizontalpercentbar != null && horizontalpercentbar != undefined);
66 verify(horizontalpercentbar != null && horizontalpercentbar != undefined);
66 var area = chartView.createSeries(ChartView.SeriesTypeArea, "area");
67 var area = chartView.createSeries(ChartView.SeriesTypeArea, "area");
67 verify(area != null && area != undefined);
68 verify(area != null && area != undefined);
68
69
69 // Remove all series
70 // Remove all series
70 chartView.removeAllSeries();
71 chartView.removeAllSeries();
71 compare(chartView.count, 0);
72 compare(chartView.count, 0);
72 }
73 }
73
74
74 function test_chartViewRange() {
75 function test_chartViewRange() {
75 // Set initial values
76 // Set initial values
76 chartView.createSeries(ChartView.SeriesTypeLine, "line");
77 chartView.createSeries(ChartView.SeriesTypeLine, "line");
77 verify(chartView.axisX() != null);
78 verify(chartView.axisX() != null);
78 verify(chartView.axisY() != null);
79 verify(chartView.axisY() != null);
79 chartView.axisX().min = 1.0;
80 chartView.axisX().min = 1.0;
80 chartView.axisX().max = 2.0;
81 chartView.axisX().max = 2.0;
81 chartView.axisY().min = 1.0;
82 chartView.axisY().min = 1.0;
82 chartView.axisY().max = 2.0;
83 chartView.axisY().max = 2.0;
83
84
85 var xMaxOriginal = chartView.axisX().max;
86 var xMinOriginal = chartView.axisX().min;
87 var yMaxOriginal = chartView.axisY().max;
88 var yMinOriginal = chartView.axisY().min;
89
84 var xMax = chartView.axisX().max;
90 var xMax = chartView.axisX().max;
85 var xMin = chartView.axisX().min;
91 var xMin = chartView.axisX().min;
86 var yMax = chartView.axisY().max;
92 var yMax = chartView.axisY().max;
87 var yMin = chartView.axisY().min;
93 var yMin = chartView.axisY().min;
88
94
89 // zoom x 2.5
95 // zoom x 2.5
90 chartView.zoom(1.5);
96 chartView.zoom(1.5);
91 verify(chartView.axisX().max < xMax);
97 verify(chartView.axisX().max < xMax);
92 verify(chartView.axisX().min > xMin);
98 verify(chartView.axisX().min > xMin);
93 verify(chartView.axisY().max < yMax);
99 verify(chartView.axisY().max < yMax);
94 verify(chartView.axisY().min > yMin);
100 verify(chartView.axisY().min > yMin);
95 xMax = chartView.axisX().max;
101 xMax = chartView.axisX().max;
96 xMin = chartView.axisX().min;
102 xMin = chartView.axisX().min;
97 yMax = chartView.axisY().max;
103 yMax = chartView.axisY().max;
98 yMin = chartView.axisY().min;
104 yMin = chartView.axisY().min;
99
105
100 // zoom x 0.5
106 // zoom x 0.5
101 chartView.zoom(0.5);
107 chartView.zoom(0.5);
102 verify(chartView.axisX().max > xMax);
108 verify(chartView.axisX().max > xMax);
103 verify(chartView.axisX().min < xMin);
109 verify(chartView.axisX().min < xMin);
104 verify(chartView.axisY().max > yMax);
110 verify(chartView.axisY().max > yMax);
105 verify(chartView.axisY().min < yMin);
111 verify(chartView.axisY().min < yMin);
106 xMax = chartView.axisX().max;
112 xMax = chartView.axisX().max;
107 xMin = chartView.axisX().min;
113 xMin = chartView.axisX().min;
108 yMax = chartView.axisY().max;
114 yMax = chartView.axisY().max;
109 yMin = chartView.axisY().min;
115 yMin = chartView.axisY().min;
110
116
117 // zoom x -1
118 // negative value has no effect
119 chartView.zoom(-1);
120 verify(chartView.axisX().max === xMax);
121 verify(chartView.axisX().min === xMin);
122 verify(chartView.axisY().max === yMax);
123 verify(chartView.axisY().min === yMin);
124
125 // zoom in
126 chartView.zoomIn();
127 verify(chartView.axisX().max < xMax);
128 verify(chartView.axisX().min > xMin);
129 verify(chartView.axisY().max < yMax);
130 verify(chartView.axisY().min > yMin);
131 xMax = chartView.axisX().max;
132 xMin = chartView.axisX().min;
133 yMax = chartView.axisY().max;
134 yMin = chartView.axisY().min;
135
136 // zoom in rect
137 zoomRect.x = 100;
138 zoomRect.y = 100;
139 zoomRect.width = 120;
140 zoomRect.height = 120;
141 chartView.zoomIn(zoomRect);
142 verify(chartView.axisX().max < xMax);
143 verify(chartView.axisX().min > xMin);
144 verify(chartView.axisY().max < yMax);
145 verify(chartView.axisY().min > yMin);
146 xMax = chartView.axisX().max;
147 xMin = chartView.axisX().min;
148 yMax = chartView.axisY().max;
149 yMin = chartView.axisY().min;
150
151 // zoom out
152 chartView.zoomOut();
153 verify(chartView.axisX().max > xMax);
154 verify(chartView.axisX().min < xMin);
155 verify(chartView.axisY().max > yMax);
156 verify(chartView.axisY().min < yMin);
157 xMax = chartView.axisX().max;
158 xMin = chartView.axisX().min;
159 yMax = chartView.axisY().max;
160 yMin = chartView.axisY().min;
161
162 // zoom reset
163 chartView.zoomReset();
164 verify(chartView.axisX().max === xMaxOriginal);
165 verify(chartView.axisX().min === xMinOriginal);
166 verify(chartView.axisY().max === yMaxOriginal);
167 verify(chartView.axisY().min === yMinOriginal);
168 xMax = chartView.axisX().max;
169 xMin = chartView.axisX().min;
170 yMax = chartView.axisY().max;
171 yMin = chartView.axisY().min;
172
111 // Scroll up
173 // Scroll up
112 chartView.scrollUp(10);
174 chartView.scrollUp(10);
113 compare(chartView.axisX().max, xMax);
175 compare(chartView.axisX().max, xMax);
114 compare(chartView.axisX().min, xMin);
176 compare(chartView.axisX().min, xMin);
115 verify(chartView.axisY().max > yMax);
177 verify(chartView.axisY().max > yMax);
116 verify(chartView.axisY().min > yMin);
178 verify(chartView.axisY().min > yMin);
117 xMax = chartView.axisX().max;
179 xMax = chartView.axisX().max;
118 xMin = chartView.axisX().min;
180 xMin = chartView.axisX().min;
119 yMax = chartView.axisY().max;
181 yMax = chartView.axisY().max;
120 yMin = chartView.axisY().min;
182 yMin = chartView.axisY().min;
121
183
122 // Scroll down
184 // Scroll down
123 chartView.scrollDown(10);
185 chartView.scrollDown(10);
124 compare(chartView.axisX().max, xMax);
186 compare(chartView.axisX().max, xMax);
125 compare(chartView.axisX().min, xMin);
187 compare(chartView.axisX().min, xMin);
126 verify(chartView.axisY().max < yMax);
188 verify(chartView.axisY().max < yMax);
127 verify(chartView.axisY().min < yMin);
189 verify(chartView.axisY().min < yMin);
128 xMax = chartView.axisX().max;
190 xMax = chartView.axisX().max;
129 xMin = chartView.axisX().min;
191 xMin = chartView.axisX().min;
130 yMax = chartView.axisY().max;
192 yMax = chartView.axisY().max;
131 yMin = chartView.axisY().min;
193 yMin = chartView.axisY().min;
132
194
133 // Scroll left
195 // Scroll left
134 chartView.scrollLeft(10);
196 chartView.scrollLeft(10);
135 verify(chartView.axisX().max < xMax);
197 verify(chartView.axisX().max < xMax);
136 verify(chartView.axisX().min < xMin);
198 verify(chartView.axisX().min < xMin);
137 compare(chartView.axisY().max, yMax);
199 compare(chartView.axisY().max, yMax);
138 compare(chartView.axisY().min, yMin);
200 compare(chartView.axisY().min, yMin);
139 xMax = chartView.axisX().max;
201 xMax = chartView.axisX().max;
140 xMin = chartView.axisX().min;
202 xMin = chartView.axisX().min;
141 yMax = chartView.axisY().max;
203 yMax = chartView.axisY().max;
142 yMin = chartView.axisY().min;
204 yMin = chartView.axisY().min;
143
205
144 // Scroll right
206 // Scroll right
145 chartView.scrollRight(10);
207 chartView.scrollRight(10);
146 verify(chartView.axisX().max > xMax);
208 verify(chartView.axisX().max > xMax);
147 verify(chartView.axisX().min > xMin);
209 verify(chartView.axisX().min > xMin);
148 compare(chartView.axisY().max, yMax);
210 compare(chartView.axisY().max, yMax);
149 compare(chartView.axisY().min, yMin);
211 compare(chartView.axisY().min, yMin);
150 }
212 }
151 }
213 }
152
214
153 ChartView {
215 ChartView {
154 id: chartView
216 id: chartView
155 anchors.fill: parent
217 anchors.fill: parent
156 title: "Chart"
218 title: "Chart"
157 }
219 }
158 }
220 }
General Comments 0
You need to be logged in to leave comments. Login now