1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3
4// W A R N I N G
5// -------------
6//
7// This file is not part of the Qt Chart API. It exists purely as an
8// implementation detail. This header file may change from version to
9// version without notice, or even be removed.
10//
11// We mean it.
12
13#ifndef DECLARATIVE_XY_POINT_H
14#define DECLARATIVE_XY_POINT_H
15
16#include <QtQml/qqmlregistration.h>
17#include <QtCharts/QChartGlobal>
18#include <private/declarativechartglobal_p.h>
19#include <QtCore/QObject>
20#include <QtCore/QPointF>
21
22QT_BEGIN_NAMESPACE
23
24class Q_CHARTSQML_PRIVATE_EXPORT DeclarativeXYPoint : public QObject, public QPointF
25{
26 Q_OBJECT
27 Q_PROPERTY(qreal x READ x WRITE setX)
28 Q_PROPERTY(qreal y READ y WRITE setY)
29 QML_NAMED_ELEMENT(XYPoint)
30 QML_ADDED_IN_VERSION(1, 0)
31 QML_EXTRA_VERSION(2, 0)
32
33public:
34 explicit DeclarativeXYPoint(QObject *parent = 0);
35};
36
37QT_END_NAMESPACE
38
39#endif // DECLARATIVE_XY_POINT_H
40

source code of qtcharts/src/chartsqml2/declarativexypoint_p.h