1// Copyright (C) 2016 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 Chart 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 BARANIMATION_P_H
14#define BARANIMATION_P_H
15
16#include <private/chartanimation_p.h>
17#include <QtCharts/private/qchartglobal_p.h>
18
19QT_BEGIN_NAMESPACE
20
21class AbstractBarChartItem;
22
23class Q_CHARTS_PRIVATE_EXPORT BarAnimation : public ChartAnimation
24{
25 Q_OBJECT
26
27public:
28 BarAnimation(AbstractBarChartItem *item, int duration, QEasingCurve &curve);
29 ~BarAnimation();
30
31public: // from QVariantAnimation
32 QVariant interpolated(const QVariant &from, const QVariant &to, qreal progress) const override;
33 void updateCurrentValue(const QVariant &value) override;
34
35 void setup(const QList<QRectF> &oldLayout, const QList<QRectF> &newLayout);
36
37protected:
38 AbstractBarChartItem *m_item;
39};
40
41QT_END_NAMESPACE
42
43#endif // BARANIMATION_P_H
44

source code of qtcharts/src/charts/animations/baranimation_p.h