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
qpropertyanimation.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 QPROPERTYANIMATION_H
5
#define QPROPERTYANIMATION_H
6
7
#include <QtCore/qvariantanimation.h>
8
9
QT_REQUIRE_CONFIG
(
animation
);
10
11
QT_BEGIN_NAMESPACE
12
13
class
QPropertyAnimationPrivate
;
14
class
Q_CORE_EXPORT
QPropertyAnimation
:
public
QVariantAnimation
15
{
16
Q_OBJECT
17
Q_PROPERTY
(
QByteArray
propertyName READ propertyName WRITE setPropertyName
18
BINDABLE bindablePropertyName)
19
Q_PROPERTY
(
QObject
* targetObject READ targetObject WRITE setTargetObject
20
BINDABLE bindableTargetObject)
21
22
public:
23
QPropertyAnimation
(
QObject
*parent =
nullptr
);
24
QPropertyAnimation
(
QObject
*
target
, const
QByteArray
&propertyName,
QObject
*parent =
nullptr
);
25
~
QPropertyAnimation
();
26
27
QObject
*targetObject() const;
28
void
setTargetObject(
QObject
*
target
);
29
QBindable
<
QObject
*> bindableTargetObject();
30
31
QByteArray
propertyName() const;
32
void
setPropertyName(const
QByteArray
&propertyName);
33
QBindable
<
QByteArray
> bindablePropertyName();
34
35
protected:
36
bool
event
(
QEvent
*
event
) override;
37
void
updateCurrentValue(const
QVariant
&
value
) override;
38
void
updateState(
QAbstractAnimation
::
State
newState
,
QAbstractAnimation
::
State
oldState) override;
39
40
private
:
41
Q_DISABLE_COPY(
QPropertyAnimation
)
42
Q_DECLARE_PRIVATE(
QPropertyAnimation
)
43
};
44
45
QT_END_NAMESPACE
46
47
#endif
// QPROPERTYANIMATION_H
QAbstractAnimation
\inmodule QtCore
Definition
qabstractanimation.h:20
QBindable
\inmodule QtCore
Definition
qproperty.h:811
QByteArray
\inmodule QtCore
Definition
qbytearray.h:57
QEvent
\inmodule QtCore
Definition
qcoreevent.h:45
QObject
\inmodule QtCore
Definition
qobject.h:103
QPropertyAnimationPrivate
Definition
qpropertyanimation_p.h:28
QPropertyAnimation
\inmodule QtCore
Definition
qpropertyanimation.h:15
QVariantAnimation
\inmodule QtCore
Definition
qvariantanimation.h:19
QVariant
\inmodule QtCore
Definition
qvariant.h:65
newState
void newState(QList< State > &states, const char *token, const char *lexem, bool pre)
Definition
generate_keywords.cpp:280
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qstandardpaths_haiku.cpp:21
QT_END_NAMESPACE
Definition
qsharedpointer.cpp:1590
value
EGLOutputLayerEXT EGLint EGLAttrib value
[5]
Definition
qeglstreamconvenience_p.h:46
target
GLenum target
Definition
qopengles2ext.h:751
event
struct _cl_event * event
Definition
qopenglext.h:2998
QT_REQUIRE_CONFIG
#define QT_REQUIRE_CONFIG(feature)
Definition
qtconfigmacros.h:67
Q_PROPERTY
#define Q_PROPERTY(...)
Definition
qtmetamacros.h:56
Q_OBJECT
#define Q_OBJECT
Definition
qtmetamacros.h:119
animation
QPropertyAnimation animation
[0]
Definition
src_corelib_tools_qeasingcurve.cpp:17
State
Definition
generate_keywords.cpp:256
private
#define private
Definition
vsp2hardwarelayerintegration.cpp:7
qtbase
src
corelib
animation
qpropertyanimation.h
Generated by
1.10.0