Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
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_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)
37 Q_PROPERTY(QQuickAbstractAnimation *animation READ animation WRITE setAnimation NOTIFY animationChanged)
38
39public:
40 QQuickAnimationController(QObject *parent=nullptr);
42
43 qreal progress() const;
44 void setProgress(qreal progress);
45
47 void setAnimation(QQuickAbstractAnimation *animation);
48
49 void componentFinalized() override;
51 void progressChanged();
52 void animationChanged();
53public Q_SLOTS:
54 void reload();
55 void completeToBeginning();
56 void completeToEnd();
58 void updateProgress();
59};
60
62
63#endif // QQUICKANIMATIONCONTROLLER_H
\inmodule QtCore
Definition qobject.h:103
Combined button and popup list for selecting options.
#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:187
QPropertyAnimation animation
[0]