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
22
QT_BEGIN_NAMESPACE
23
24
class
QQuickAnimationControllerPrivate
;
25
class
Q_QUICK_EXPORT
QQuickAnimationController
:
public
QObject
,
public
QQmlFinalizerHook
26
{
27
Q_OBJECT
28
Q_DISABLE_COPY_MOVE(
QQuickAnimationController
)
29
Q_INTERFACES
(
QQmlFinalizerHook
)
30
31
Q_DECLARE_PRIVATE(
QQuickAnimationController
)
32
Q_CLASSINFO
(
"DefaultProperty"
,
"animation"
)
33
QML_NAMED_ELEMENT
(AnimationController)
34
QML_ADDED_IN_VERSION
(2, 0)
35
36
Q_PROPERTY
(
qreal
progress READ progress WRITE setProgress NOTIFY progressChanged)
37
Q_PROPERTY
(
QQuickAbstractAnimation
*
animation
READ
animation
WRITE setAnimation NOTIFY animationChanged)
38
39
public:
40
QQuickAnimationController
(
QObject
*parent=
nullptr
);
41
~
QQuickAnimationController
();
42
43
qreal
progress() const;
44
void
setProgress(
qreal
progress);
45
46
QQuickAbstractAnimation
*
animation
() const;
47
void
setAnimation(
QQuickAbstractAnimation
*
animation
);
48
49
void
componentFinalized() override;
50
Q_SIGNALS
:
51
void
progressChanged();
52
void
animationChanged();
53
public
Q_SLOTS
:
54
void
reload();
55
void
completeToBeginning();
56
void
completeToEnd();
57
private
Q_SLOTS
:
58
void
updateProgress();
59
};
60
61
QT_END_NAMESPACE
62
63
#endif
// QQUICKANIMATIONCONTROLLER_H
QObject
\inmodule QtCore
Definition
qobject.h:103
QQmlFinalizerHook
Definition
qqmlfinalizer_p.h:24
QQuickAbstractAnimation
Definition
qquickanimation_p.h:35
QQuickAnimationControllerPrivate
Definition
qquickanimationcontroller.cpp:12
QQuickAnimationController
Definition
qquickanimationcontroller_p.h:26
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qstandardpaths_haiku.cpp:21
QT_END_NAMESPACE
Definition
qsharedpointer.cpp:1590
qqml.h
QML_NAMED_ELEMENT
#define QML_NAMED_ELEMENT(NAME)
Definition
qqmlintegration.h:60
QML_ADDED_IN_VERSION
#define QML_ADDED_IN_VERSION(MAJOR, MINOR)
Definition
qqmlintegration.h:100
qquickanimation_p.h
Q_PROPERTY
#define Q_PROPERTY(...)
Definition
qtmetamacros.h:56
Q_OBJECT
#define Q_OBJECT
Definition
qtmetamacros.h:119
Q_CLASSINFO
#define Q_CLASSINFO(name, value)
Definition
qtmetamacros.h:52
Q_INTERFACES
#define Q_INTERFACES(x)
Definition
qtmetamacros.h:55
Q_SLOTS
#define Q_SLOTS
Definition
qtmetamacros.h:44
Q_SIGNALS
#define Q_SIGNALS
Definition
qtmetamacros.h:45
qreal
double qreal
Definition
qtypes.h:187
animation
QPropertyAnimation animation
[0]
Definition
src_corelib_tools_qeasingcurve.cpp:17
private
#define private
Definition
vsp2hardwarelayerintegration.cpp:7
qtdeclarative
src
quick
util
qquickanimationcontroller_p.h
Generated by
1.10.0