Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qquickanimationcontroller_p.h
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
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 QQUICKANIMATIONCONTROLLER_H
5#define QQUICKANIMATIONCONTROLLER_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include <qqml.h>
19#include <private/qqmlfinalizer_p.h>
20#include "qquickanimation_p.h"
21
23
25class Q_QUICK_PRIVATE_EXPORT QQuickAnimationController : public QObject, public QQmlFinalizerHook
26{
28 Q_DISABLE_COPY_MOVE(QQuickAnimationController)
30
31 Q_DECLARE_PRIVATE(QQuickAnimationController)
32 Q_CLASSINFO("DefaultProperty", "animation")
33 QML_NAMED_ELEMENT(AnimationController)
35
36 Q_PROPERTY(qreal progress READ progress WRITE setProgress NOTIFY progressChanged FINAL)
37 Q_PROPERTY(QQuickAbstractAnimation *animation READ animation WRITE setAnimation NOTIFY animationChanged FINAL)
38
39public:
42
43 qreal progress() const;
44 void setProgress(qreal progress);
45
47 void setAnimation(QQuickAbstractAnimation *animation);
48
49 void componentFinalized() override;
53public Q_SLOTS:
54 void reload();
55 void completeToBeginning();
56 void completeToEnd();
57private Q_SLOTS:
58 void updateProgress();
59};
60
62
64
65#endif // QQUICKANIMATIONCONTROLLER_H
\inmodule QtCore
Definition qobject.h:90
virtual void componentFinalized()=0
The customization point provided by this interface.
Combined button and popup list for selecting options.
#define QML_DECLARE_TYPE(TYPE)
Definition qqml.h:19
#define QML_NAMED_ELEMENT(NAME)
#define QML_ADDED_IN_VERSION(MAJOR, MINOR)
#define Q_PROPERTY(...)
#define Q_OBJECT
#define Q_CLASSINFO(name, value)
#define Q_INTERFACES(x)
#define Q_SLOTS
#define Q_SIGNALS
double qreal
Definition qtypes.h:92
QPropertyAnimation animation
[0]
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent