declarativexyseries.h
52 lines
| 1.4 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 | ** | ||
****************************************************************************/ | ||||
|
r732 | #ifndef DECLARATIVE_XY_SERIES_H | ||
#define DECLARATIVE_XY_SERIES_H | ||||
|
r2714 | #include <QtCharts/QXYSeries> | ||
|
r732 | |||
|
r2712 | QT_CHARTS_BEGIN_NAMESPACE | ||
|
r732 | |||
class QChart; | ||||
|
r988 | class QAbstractSeries; | ||
|
r732 | |||
|
r1117 | class DeclarativeXySeries | ||
|
r732 | { | ||
public: | ||||
|
r789 | explicit DeclarativeXySeries(); | ||
|
r732 | ~DeclarativeXySeries(); | ||
public: | ||||
|
r1278 | void classBegin(); | ||
void componentComplete(); | ||||
|
r1401 | virtual QXYSeries *xySeries() = 0; | ||
|
r1521 | |||
void append(qreal x, qreal y); | ||||
void replace(qreal oldX, qreal oldY, qreal newX, qreal newY); | ||||
|
r2496 | void replace(int index, qreal newX, qreal newY); | ||
|
r1521 | void remove(qreal x, qreal y); | ||
|
r2496 | void remove(int index); | ||
|
r1521 | void insert(int index, qreal x, qreal y); | ||
void clear(); | ||||
QPointF at(int index); | ||||
|
r732 | }; | ||
|
r2712 | QT_CHARTS_END_NAMESPACE | ||
|
r732 | |||
#endif // DECLARATIVE_XY_SERIES_H | ||||