declarativexypoint.cpp
54 lines
| 1.5 KiB
| text/x-c
|
CppLexer
|
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 | #include "declarativexypoint.h" | ||
|
r2714 | #include <QtCore/QDataStream> | ||
|
r722 | |||
|
r2712 | QT_CHARTS_BEGIN_NAMESPACE | ||
|
r722 | |||
|
r2639 | /*! | ||
\qmltype XYPoint | ||||
|
r2712 | \inqmlmodule QtCharts | ||
|
r2639 | |||
|
r2727 | \brief Type is used to initialize XY-series coordinate data. | ||
|
r2712 | XYPoint is a convenience element for initializing XY-series with static coordinate data. To | ||
manipulate an XY-series dynamically, use it's data manipulation functions instead. | ||||
\sa LineSeries, AreaSeries, ScatterSeries, SplineSeries | ||||
|
r2639 | */ | ||
|
r1491 | |||
/*! | ||||
|
r1532 | \qmlproperty real XYPoint::x | ||
|
r1491 | The x-coordinate of the point. | ||
*/ | ||||
/*! | ||||
|
r1532 | \qmlproperty real XYPoint::y | ||
|
r1491 | The y-coordinate of the point. | ||
*/ | ||||
|
r1532 | DeclarativeXYPoint::DeclarativeXYPoint(QObject *parent) : | ||
|
r722 | QObject(parent) | ||
{ | ||||
|
r789 | setX(0.0); | ||
setY(0.0); | ||||
|
r722 | } | ||
#include "moc_declarativexypoint.cpp" | ||||
|
r2712 | QT_CHARTS_END_NAMESPACE | ||