| 1 | // Copyright (C) 2024 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 Graphs 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 QSPLINESERIES_P_H | 
| 14 | #define QSPLINESERIES_P_H | 
| 15 |  | 
| 16 | #include <QtGraphs/QSplineSeries> | 
| 17 | #include <private/qsplinecontrolanimation_p.h> | 
| 18 | #include <private/qxyseries_p.h> | 
| 19 |  | 
| 20 | QT_BEGIN_NAMESPACE | 
| 21 |  | 
| 22 | class QSplineSeriesPrivate : public QXYSeriesPrivate | 
| 23 | { | 
| 24 | public: | 
| 25 |     QSplineSeriesPrivate(); | 
| 26 |  | 
| 27 | protected: | 
| 28 |     qreal m_width; | 
| 29 |     Qt::PenCapStyle m_capStyle; | 
| 30 |     QList<QPointF> m_controlPoints; | 
| 31 |  | 
| 32 |     void calculateSplinePoints(); | 
| 33 |     QList<qreal> calculateControlPoints(const QList<qreal> &list); | 
| 34 |  | 
| 35 | private: | 
| 36 |     Q_DECLARE_PUBLIC(QSplineSeries) | 
| 37 |  | 
| 38 |     friend class QSplineControlAnimation; | 
| 39 |     friend class QGraphTransition; | 
| 40 | }; | 
| 41 |  | 
| 42 | QT_END_NAMESPACE | 
| 43 |  | 
| 44 | #endif // QSPLINESERIES_H_H | 
| 45 |  |