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
19QT_BEGIN_NAMESPACE
20
21class QSplineSeries;
22
23class QSplineControlAnimation : public QXYSeriesAnimation
24{
25 Q_OBJECT
26 QML_NAMED_ELEMENT(SplineControlAnimation)
27
28public:
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
39public Q_SLOTS:
40 void valueUpdated(const QVariant &value) override;
41};
42
43QT_END_NAMESPACE
44
45#endif // QSPLINECONTROLANIMATION_P_H
46

Provided by KDAB

Privacy Policy
Learn Advanced QML with KDAB
Find out more

source code of qtgraphs/src/graphs2d/animation/qsplinecontrolanimation_p.h