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 QtGraphs 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 QSPLINECONTROLANIMATION_P_H |
14 | #define QSPLINECONTROLANIMATION_P_H |
15 | |
16 | #include "qqmlintegration.h" |
17 | #include <private/qxyseriesanimation_p.h> |
18 | |
19 | QT_BEGIN_NAMESPACE |
20 | |
21 | class QSplineSeries; |
22 | |
23 | class QSplineControlAnimation : public QXYSeriesAnimation |
24 | { |
25 | Q_OBJECT |
26 | QML_NAMED_ELEMENT(SplineControlAnimation) |
27 | |
28 | public: |
29 | explicit QSplineControlAnimation(QObject *parent = nullptr); |
30 | ~QSplineControlAnimation() override; |
31 | |
32 | GraphAnimationType animationType() override; |
33 | void setAnimatingValue(const QVariant &start, const QVariant &end) override; |
34 | QVariant interpolated(const QVariant &start, const QVariant &end, qreal progress) const override; |
35 | |
36 | void animate() override; |
37 | void end() override; |
38 | |
39 | public Q_SLOTS: |
40 | void valueUpdated(const QVariant &value) override; |
41 | }; |
42 | |
43 | QT_END_NAMESPACE |
44 | |
45 | #endif // QSPLINECONTROLANIMATION_P_H |
46 |
Definitions
Learn Advanced QML with KDAB
Find out more