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