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 QGRAPHPOINTANIMATION_H
14#define QGRAPHPOINTANIMATION_H
15
16#include <QtCore/QPointF>
17#include "private/qgraphanimation_p.h"
18#include "private/qxyseriesanimation_p.h"
19#include "qqmlintegration.h"
20
21QT_BEGIN_NAMESPACE
22
23class QXYSeries;
24
25class QGraphPointAnimation : public QXYSeriesAnimation
26{
27 Q_OBJECT
28 QML_NAMED_ELEMENT(GraphPointAnimation)
29
30public:
31 explicit QGraphPointAnimation(QObject *parent = nullptr);
32 ~QGraphPointAnimation() override;
33
34 GraphAnimationType animationType() override;
35 void setAnimatingValue(const QVariant &start, const QVariant &end) override;
36 QVariant interpolated(const QVariant &start, const QVariant &end, qreal progress) const override;
37
38 void animate() override;
39 void end() override;
40
41public Q_SLOTS:
42 void valueUpdated(const QVariant &value) override;
43};
44
45QT_END_NAMESPACE
46
47#endif // QGRAPHPOINTANIMATION_H
48

Provided by KDAB

Privacy Policy
Start learning QML with our Intro Training
Find out more

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