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 CHARTANIMATION_H |
14 | #define CHARTANIMATION_H |
15 | |
16 | #include <QtCharts/QChartGlobal> |
17 | #include <QtCore/QVariantAnimation> |
18 | #include <QtCharts/private/qchartglobal_p.h> |
19 | |
20 | QT_BEGIN_NAMESPACE |
21 | |
22 | const static int ChartAnimationDuration = 1000; |
23 | |
24 | class Q_CHARTS_PRIVATE_EXPORT ChartAnimation: public QVariantAnimation |
25 | { |
26 | Q_OBJECT |
27 | public: |
28 | ChartAnimation(QObject *parent = 0); |
29 | |
30 | void stopAndDestroyLater(); |
31 | |
32 | public Q_SLOTS: |
33 | void startChartAnimation(); |
34 | |
35 | protected: |
36 | bool m_destructing; |
37 | }; |
38 | |
39 | QT_END_NAMESPACE |
40 | |
41 | #endif /* CHARTANIMATION_H */ |
42 | |