1 | // Copyright (C) 2017 Klaralvdalens Datakonsult AB (KDAB). |
2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only |
3 | |
4 | #ifndef QT3DANIMATION_QABSTRACTANIMATIONCLIP_H |
5 | #define QT3DANIMATION_QABSTRACTANIMATIONCLIP_H |
6 | |
7 | #include <Qt3DAnimation/qt3danimation_global.h> |
8 | #include <Qt3DCore/qnode.h> |
9 | #include <QtCore/qurl.h> |
10 | |
11 | QT_BEGIN_NAMESPACE |
12 | |
13 | namespace Qt3DAnimation { |
14 | |
15 | class QAbstractAnimationClipPrivate; |
16 | |
17 | class Q_3DANIMATIONSHARED_EXPORT QAbstractAnimationClip : public Qt3DCore::QNode |
18 | { |
19 | Q_OBJECT |
20 | Q_PROPERTY(float duration READ duration NOTIFY durationChanged) |
21 | |
22 | public: |
23 | ~QAbstractAnimationClip(); |
24 | |
25 | float duration() const; |
26 | |
27 | Q_SIGNALS: |
28 | void durationChanged(float duration); |
29 | |
30 | protected: |
31 | QAbstractAnimationClip(QAbstractAnimationClipPrivate &dd, Qt3DCore::QNode *parent = nullptr); |
32 | |
33 | private: |
34 | Q_DECLARE_PRIVATE(QAbstractAnimationClip) |
35 | }; |
36 | |
37 | } // namespace Qt3DAnimation |
38 | |
39 | QT_END_NAMESPACE |
40 | |
41 | #endif // QT3DANIMATION_QABSTRACTANIMATIONCLIP_H |
42 | |