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
qquickbehavior_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 QQUICKBEHAVIOR_H
5#define QQUICKBEHAVIOR_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 <private/qtquickglobal_p.h>
19
20#include <private/qqmlpropertyvalueinterceptor_p.h>
21#include <private/qqmlengine_p.h>
22#include <qqml.h>
23#include <private/qqmlfinalizer_p.h>
24
26
29class Q_QUICK_EXPORT QQuickBehavior : public QObject, public QQmlPropertyValueInterceptor, public QQmlFinalizerHook
30{
33 Q_DECLARE_PRIVATE(QQuickBehavior)
34
36 Q_CLASSINFO("DefaultProperty", "animation")
38 Q_PROPERTY(bool enabled READ enabled WRITE setEnabled NOTIFY enabledChanged)
39 Q_PROPERTY(QVariant targetValue READ targetValue NOTIFY targetValueChanged REVISION(2, 13))
40 Q_PROPERTY(QQmlProperty targetProperty READ targetProperty NOTIFY targetPropertyChanged REVISION(2, 15))
41 Q_CLASSINFO("DeferredPropertyNames", "animation")
42 QML_NAMED_ELEMENT(Behavior)
44
45public:
46 QQuickBehavior(QObject *parent=nullptr);
48
49 void setTarget(const QQmlProperty &) override;
50 void write(const QVariant &value) override;
51 bool bindable(QUntypedBindable *untypedBindable, QUntypedBindable target) override;
52
54 void setAnimation(QQuickAbstractAnimation *);
55
56 bool enabled() const;
57 void setEnabled(bool enabled);
58
59 QVariant targetValue() const;
60
61 QQmlProperty targetProperty() const;
62
63 void componentFinalized() override;
64
66 void enabledChanged();
67 void targetValueChanged();
68 void targetPropertyChanged();
69};
70
72
73#endif // QQUICKBEHAVIOR_H
\inmodule QtCore
Definition qobject.h:103
The QQmlPropertyValueInterceptor class is inherited by property interceptors such as Behavior.
The QQmlProperty class abstracts accessing properties on objects created from QML.
\inmodule QtCore
Definition qproperty.h:679
\inmodule QtCore
Definition qvariant.h:65
Combined button and popup list for selecting options.
EGLOutputLayerEXT EGLint EGLAttrib value
[5]
GLenum GLenum GLsizei const GLuint GLboolean enabled
GLenum target
#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_SIGNALS
gzip write("uncompressed data")
QPropertyAnimation animation
[0]