blob: e5a1c2312af2e050a70c553ca34275a066a2c468 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
// Copyright (C) 2024 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
#ifndef QSPLINESERIES_H
#define QSPLINESERIES_H
#include <QtCore/QObject>
#include <QtGraphs/qxyseries.h>
#include <QtWidgets/QWidget>
QT_BEGIN_NAMESPACE
class QSplineSeriesPrivate;
class Q_GRAPHS_EXPORT QSplineSeries : public QXYSeries
{
Q_OBJECT
Q_PROPERTY(qreal width READ width WRITE setWidth NOTIFY widthChanged)
Q_PROPERTY(Qt::PenCapStyle capStyle READ capStyle WRITE setCapStyle NOTIFY capStyleChanged)
public:
explicit QSplineSeries(QObject *parent = nullptr);
~QSplineSeries() override;
QAbstractSeries::SeriesType type() const override;
QML_NAMED_ELEMENT(SplineSeries)
qreal width() const;
void setWidth(qreal newWidth);
Qt::PenCapStyle capStyle() const;
void setCapStyle(Qt::PenCapStyle newCapStyle);
QList<QPointF> &getControlPoints();
Q_SIGNALS:
void widthChanged();
void capStyleChanged();
protected:
QSplineSeries(QSplineSeriesPrivate &dd, QObject *parent = nullptr);
void componentComplete() override;
private:
Q_DECLARE_PRIVATE(QSplineSeries)
Q_DISABLE_COPY(QSplineSeries)
friend class QSplineControlAnimation;
friend class QGraphTransition;
};
QT_END_NAMESPACE
#endif // QSPLINESERIES_H
|