declarativexypoint.h
40 lines
| 1.2 KiB
| text/x-c
|
CLexer
|
r830 | /**************************************************************************** | ||
** | ||||
|
r2776 | ** Copyright (C) 2015 The Qt Company Ltd | ||
|
r830 | ** All rights reserved. | ||
|
r2776 | ** For any questions to The Qt Company, please use contact form at http://qt.io | ||
|
r830 | ** | ||
|
r2740 | ** This file is part of the Qt Charts module. | ||
|
r830 | ** | ||
|
r2740 | ** Licensees holding valid commercial license for Qt may use this file in | ||
** accordance with the Qt License Agreement provided with the Software | ||||
** or, alternatively, in accordance with the terms contained in a written | ||||
|
r2776 | ** agreement between you and The Qt Company. | ||
|
r830 | ** | ||
** If you have questions regarding the use of this file, please use | ||||
|
r2740 | ** contact form at http://qt.io | ||
|
r830 | ** | ||
****************************************************************************/ | ||||
|
r722 | #ifndef DECLARATIVE_XY_POINT_H | ||
#define DECLARATIVE_XY_POINT_H | ||||
|
r196 | |||
|
r2714 | #include <QtCharts/QChartGlobal> | ||
#include <QtCore/QObject> | ||||
#include <QtCore/QPointF> | ||||
|
r196 | |||
|
r2712 | QT_CHARTS_BEGIN_NAMESPACE | ||
|
r196 | |||
|
r1532 | class DeclarativeXYPoint : public QObject, public QPointF | ||
|
r196 | { | ||
Q_OBJECT | ||||
|
r1911 | Q_PROPERTY(qreal x READ x WRITE setX) | ||
Q_PROPERTY(qreal y READ y WRITE setY) | ||||
|
r196 | |||
public: | ||||
|
r1532 | explicit DeclarativeXYPoint(QObject *parent = 0); | ||
|
r196 | }; | ||
|
r2712 | QT_CHARTS_END_NAMESPACE | ||
|
r196 | |||
|
r722 | #endif // DECLARATIVE_XY_POINT_H | ||