| 1 | // Copyright (C) 2016 The Qt Company Ltd. |
| 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only |
| 3 | |
| 4 | #include "declarativexypoint_p.h" |
| 5 | #include <QtCore/QDataStream> |
| 6 | |
| 7 | QT_BEGIN_NAMESPACE |
| 8 | |
| 9 | /*! |
| 10 | \qmltype XYPoint |
| 11 | \inqmlmodule QtCharts |
| 12 | |
| 13 | \brief Initializes XY-series coordinate data. |
| 14 | |
| 15 | The XYPoint type is a convenience type for initializing line, spline, and |
| 16 | scatter series with static coordinate data. To manipulate a series |
| 17 | dynamically, use the data manipulation functions it inherits from the |
| 18 | XYSeries type, instead. |
| 19 | \sa XYSeries, LineSeries, AreaSeries, ScatterSeries, SplineSeries |
| 20 | */ |
| 21 | |
| 22 | /*! |
| 23 | \qmlproperty real XYPoint::x |
| 24 | The x-coordinate of the point. |
| 25 | */ |
| 26 | |
| 27 | /*! |
| 28 | \qmlproperty real XYPoint::y |
| 29 | The y-coordinate of the point. |
| 30 | */ |
| 31 | |
| 32 | DeclarativeXYPoint::DeclarativeXYPoint(QObject *parent) : |
| 33 | QObject(parent) |
| 34 | { |
| 35 | setX(0.0); |
| 36 | setY(0.0); |
| 37 | } |
| 38 | |
| 39 | QT_END_NAMESPACE |
| 40 | |
| 41 | #include "moc_declarativexypoint_p.cpp" |
| 42 | |