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