Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qmetaobject_p.h
Go to the documentation of this file.
1// Copyright (C) 2020 The Qt Company Ltd.
2// Copyright (C) 2014 Olivier Goffart <ogoffart@woboq.com>
3// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
4
5#ifndef QMETAOBJECT_P_H
6#define QMETAOBJECT_P_H
7
8//
9// W A R N I N G
10// -------------
11//
12// This file is not part of the Qt API. It exists for the convenience
13// of moc. This header file may change from version to version without notice,
14// or even be removed.
15//
16// We mean it.
17//
18
19#include <QtCore/qglobal.h>
20#include <QtCore/qobjectdefs.h>
21#include <QtCore/qmutex.h>
22#include <QtCore/qmetaobject.h>
23#ifndef QT_NO_QOBJECT
24#include <private/qobject_p.h> // For QObjectPrivate::Connection
25#endif
26#include <QtCore/qtmocconstants.h>
27#include <private/qtools_p.h>
28#include <QtCore/qvarlengtharray.h>
29
30QT_BEGIN_NAMESPACE
31// ### TODO - QTBUG-87869: wrap in a proper Q_NAMESPACE and use scoped enums, to avoid name clashes
32
33using namespace QtMiscUtils;
34using namespace QtMocConstants;
35
36Q_DECLARE_FLAGS(MetaObjectFlags, MetaObjectFlag)
37Q_DECLARE_OPERATORS_FOR_FLAGS(MetaObjectFlags)
38
39int qMetaTypeTypeInternal(QByteArrayView name); // in qmetatype.cpp
40
42{
43public:
44 QArgumentType() = default;
45 QArgumentType(QMetaType metaType)
47 {}
48 explicit QArgumentType(QByteArrayView name)
50 {}
51 QMetaType metaType() const noexcept
52 { return _metaType; }
53 QByteArrayView name() const noexcept
54 {
55 if (_name.isEmpty())
56 return metaType().name();
57 return _name;
58 }
59
60private:
61 friend bool comparesEqual(const QArgumentType &lhs,
62 const QArgumentType &rhs)
63 {
64 if (lhs.metaType().isValid() && rhs.metaType().isValid())
65 return lhs.metaType() == rhs.metaType();
66 else
67 return lhs.name() == rhs.name();
68 }
70
72 QByteArrayView _name;
73};
75
77
78namespace { class QMetaMethodPrivate; }
80{
81 QMetaMethodInvoker() = delete;
82
83public:
84 enum class InvokeFailReason : int {
85 // negative values mean a match was found but the invocation failed
86 // (and a warning has been printed)
89 CallViaVirtualFailed = -3, // no warning
92 ConstructorCallFailed = -6, // no warning
93
95
96 // zero is success
97 None = 0,
98
99 // positive values mean the parameters did not match
102 };
103
104 // shadows the public function
105 static InvokeFailReason Q_CORE_EXPORT
107 const void *const *parameters, const char *const *typeNames,
108 const QtPrivate::QMetaTypeInterface *const *metaTypes);
109};
110
112{
113 enum { OutputRevision = QtMocConstants::OutputRevision }; // Used by moc, qmetaobjectbuilder and qdbus
114 enum { IntsPerMethod = QMetaMethod::Data::Size };
115 enum { IntsPerEnum = QMetaEnum::Data::Size };
116 enum { IntsPerProperty = QMetaProperty::Data::Size };
117
125 int flags;
127
128 static inline const QMetaObjectPrivate *get(const QMetaObject *metaobject)
129 { return reinterpret_cast<const QMetaObjectPrivate*>(metaobject->d.data); }
130
131 static int originalClone(const QMetaObject *obj, int local_method_index);
132
133 static QByteArray normalizedSignature(QByteArrayView method);
134 static QByteArrayView decodeMethodSignature(QByteArrayView signature,
135 QArgumentTypeArray &types);
136 static int indexOfSignalRelative(const QMetaObject **baseObject,
137 QByteArrayView name,
138 QSpan<const QArgumentType> types);
139 static int indexOfSlotRelative(const QMetaObject **m,
140 QByteArrayView name,
141 QSpan<const QArgumentType> types);
142 static int indexOfSignal(const QMetaObject *m, QByteArrayView name,
143 QSpan<const QArgumentType> types);
144 static int indexOfSlot(const QMetaObject *m, QByteArrayView name,
145 QSpan<const QArgumentType> types);
146 static int indexOfMethod(const QMetaObject *m, QByteArrayView name,
147 QSpan<const QArgumentType> types);
148 static int indexOfConstructor(const QMetaObject *m, QByteArrayView name,
149 QSpan<const QArgumentType> types);
150
151 enum class Which { Name, Alias };
152 static int indexOfEnumerator(const QMetaObject *m, QByteArrayView name, Which which);
153 static int indexOfEnumerator(const QMetaObject *m, QByteArrayView name);
154
155 Q_CORE_EXPORT static QMetaMethod signal(const QMetaObject *m, int signal_index);
156 static inline int signalOffset(const QMetaObject *m)
157 {
158 Q_ASSERT(m != nullptr);
159 int offset = 0;
160 for (m = m->d.superdata; m; m = m->d.superdata)
161 offset += reinterpret_cast<const QMetaObjectPrivate *>(m->d.data)->signalCount;
162 return offset;
163 }
164 Q_CORE_EXPORT static int absoluteSignalCount(const QMetaObject *m);
165 Q_CORE_EXPORT static int signalIndex(const QMetaMethod &m);
166 static bool checkConnectArgs(QSpan<const QArgumentType> signalTypes,
167 QSpan<const QArgumentType> methodTypes);
168 static bool checkConnectArgs(const QMetaMethodPrivate *signal,
169 const QMetaMethodPrivate *method);
170
171 static QByteArrayView
172 parameterTypeNamesFromSignature(QByteArrayView signature,
173 QVarLengthArray<QByteArrayView, 10> &typeNames);
174
175#ifndef QT_NO_QOBJECT
176 // defined in qobject.cpp
178 static void memberIndexes(const QObject *obj, const QMetaMethod &member,
179 int *signalIndex, int *methodIndex);
181 const QMetaObject *smeta,
183 const QMetaObject *rmeta = nullptr,
184 int type = 0, int *types = nullptr);
185 static bool disconnect(const QObject *sender, int signal_index,
186 const QMetaObject *smeta,
187 const QObject *receiver, int method_index, void **slot,
189 static inline bool disconnectHelper(QObjectPrivate::ConnectionData *connections, int signalIndex,
190 const QObject *receiver, int method_index, void **slot,
191 QBasicMutex *senderMutex, DisconnectType = DisconnectAll);
192#endif
193
194 static inline int indexOfMethodRelative(const QMetaObject **baseObject,
195 QByteArrayView name,
196 QSpan<const QArgumentType> types,
197 QMetaMethod::MethodType what);
198
199 static bool methodMatch(const QMetaObject *m, const QMetaMethod &method,
200 QByteArrayView name,
201 QSpan<const QArgumentType> types);
202 Q_CORE_EXPORT static QMetaMethod firstMethod(const QMetaObject *baseObject, QByteArrayView name);
203
204};
205
206// For meta-object generators
207
208enum { MetaObjectPrivateFieldCount = sizeof(QMetaObjectPrivate) / sizeof(int) };
209
210#ifndef UTILS_H
211// mirrored in moc's utils.h
212static inline bool is_ident_char(char s)
213{
214 return isAsciiLetterOrNumber(s) || s == '_';
215}
216
217static inline bool is_space(char s)
218{
219 return (s == ' ' || s == '\t');
220}
221#endif
222
223QT_END_NAMESPACE
224
225#endif
QMetaType metaType() const noexcept
QArgumentType(QMetaType metaType)
QArgumentType()=default
friend bool comparesEqual(const QArgumentType &lhs, const QArgumentType &rhs)
QByteArrayView name() const noexcept
QPropertyBinding< T > makeBinding(const QPropertyBindingSourceLocation &location=QT_PROPERTY_DEFAULT_BINDING_LOCATION) const
Constructs a binding evaluating to the underlying property's value, using a specified source location...
Definition qproperty.h:886
QPropertyBinding< T > binding() const
Returns the currently set binding of the underlying property.
Definition qproperty.h:890
T value() const
Returns the underlying property's current value.
Definition qproperty.h:928
void setValue(const T &value)
Sets the underlying property's value to value.
Definition qproperty.h:938
friend class QPropertyAlias
Definition qproperty.h:866
QBindable(QObject *obj, const QMetaProperty &property)
Definition qproperty.h:880
QPropertyBinding< T > setBinding(Functor &&f, const QPropertyBindingSourceLocation &location=QT_PROPERTY_DEFAULT_BINDING_LOCATION, std::enable_if_t< std::is_invocable_v< Functor > > *=nullptr)
Definition qproperty.h:917
QBindable(const QUntypedBindable &b)
Definition qproperty.h:872
QPropertyBinding< T > setBinding(const QPropertyBinding< T > &binding)
Sets the underlying property's binding to binding.
Definition qproperty.h:901
QBindable(QObject *obj, const char *property)
Definition qproperty.h:883
QPropertyBinding< T > takeBinding()
Removes the currently set binding of the underlying property and returns it.
Definition qproperty.h:895
\inmodule QtCore
\inmodule QtCore
Definition qproperty.h:1076
QObjectBindableProperty(const T &initialValue)
Constructs a property with the provided initialValue.
Definition qproperty.h:1107
QObjectBindableProperty()=default
typename QPropertyData< T >::rvalue_ref rvalue_ref
Definition qproperty.h:1103
typename QPropertyData< T >::value_type value_type
Definition qproperty.h:1101
QObjectBindableProperty(T &&initialValue)
Move-Constructs a property with the provided initialValue.
Definition qproperty.h:1108
typename QPropertyData< T >::arrow_operator_result arrow_operator_result
Definition qproperty.h:1104
QObjectBindableProperty(Functor &&f, const QPropertyBindingSourceLocation &location=QT_PROPERTY_DEFAULT_BINDING_LOCATION, typename std::enable_if_t< std::is_invocable_r_v< T, Functor & > > *=nullptr)
Definition qproperty.h:1114
QObjectBindableProperty(const QPropertyBinding< T > &binding)
Definition qproperty.h:1109
typename QPropertyData< T >::parameter_type parameter_type
Definition qproperty.h:1102
\macro Q_OBJECT_BINDABLE_PROPERTY(containingClass, type, name, signal)
QPropertyBinding< T > binding() const
operator parameter_type() const
typename QPropertyData< T >::value_type value_type
QtPrivate::QPropertyBindingData & bindingData() const
QObjectCompatProperty & operator=(parameter_type newValue)
typename QPropertyData< T >::arrow_operator_result arrow_operator_result
typename QPropertyData< T >::parameter_type parameter_type
parameter_type value() const
QObjectCompatProperty()=default
QPropertyChangeHandler< Functor > onValueChanged(Functor f)
void setValue(parameter_type t)
void removeBindingUnlessInWrapper()
bool setBinding(const QUntypedPropertyBinding &newBinding)
QPropertyBinding< T > setBinding(Functor &&f, const QPropertyBindingSourceLocation &location=QT_PROPERTY_DEFAULT_BINDING_LOCATION, std::enable_if_t< std::is_invocable_v< Functor > > *=nullptr)
arrow_operator_result operator->() const
QObjectCompatProperty(T &&initialValue)
QPropertyNotifier addNotifier(Functor f)
parameter_type operator*() const
QObjectCompatProperty(const T &initialValue)
QPropertyBinding< T > takeBinding()
QPropertyChangeHandler< Functor > subscribe(Functor f)
bool hasBinding() const
QPropertyBinding< T > setBinding(const QPropertyBinding< T > &newBinding)
\macro Q_OBJECT_COMPAT_PROPERTY(containingClass, type, name, callback)
Definition qproperty.h:1342
QObjectComputedProperty()=default
parameter_type value() const
Definition qproperty.h:1360
\inmodule QtCore
Definition qproperty.h:132
QPropertyBinding(const QUntypedPropertyBinding &binding)
Definition qproperty.h:206
QPropertyBinding()=default
QPropertyBinding(Functor &&f, const QPropertyBindingSourceLocation &location)
Definition qproperty.h:200
\inmodule QtCore
Definition qproperty.h:293
\inmodule QtCore
Definition qproperty.h:70
static constexpr bool UseReferences
Definition qproperty.h:76
void setValueBypassingBindings(parameter_type v)
Sets the data value stored in this property to v.
Definition qproperty.h:90
QPropertyData()=default
QPropertyData(parameter_type t)
Definition qproperty.h:85
~QPropertyData()=default
parameter_type valueBypassingBindings() const
Returns the data stored in this property.
Definition qproperty.h:89
\inmodule QtCore
Definition qproperty.h:320
QUntypedPropertyData * aliasData
Definition qproperty.h:255
void(*)(QPropertyObserver *, QUntypedPropertyData *) ChangeHandler
Definition qproperty.h:237
ChangeHandler changeHandler
Definition qproperty.h:254
QPropertyBindingPrivate * binding
Definition qproperty.h:253
\inmodule QtCore
Definition qproperty.h:352
typename QPropertyData< T >::arrow_operator_result arrow_operator_result
Definition qproperty.h:378
QProperty(rvalue_ref initialValue)
Definition qproperty.h:382
void setValue(rvalue_ref newValue)
Definition qproperty.h:447
typename QPropertyData< T >::value_type value_type
Definition qproperty.h:375
QPropertyChangeHandler< Functor > subscribe(Functor f)
Definition qproperty.h:523
QPropertyBinding< T > takeBinding()
Disassociates the binding expression from this property and returns it.
Definition qproperty.h:510
bool hasBinding() const
Definition qproperty.h:503
bool setBinding(const QUntypedPropertyBinding &newBinding)
This is an overloaded member function, provided for convenience. It differs from the above function o...
Definition qproperty.h:482
friend void operator!=(const QProperty &, const QProperty< U > &) QPROPERTY_DECL_DELETED_EQ_OP
QPropertyNotifier addNotifier(Functor f)
Definition qproperty.h:531
typename QPropertyData< T >::rvalue_ref rvalue_ref
Definition qproperty.h:377
QPropertyChangeHandler< Functor > onValueChanged(Functor f)
Registers the given functor f as a callback that shall be called whenever the value of the property c...
Definition qproperty.h:516
QPropertyBinding< T > setBinding(Functor &&f, const QPropertyBindingSourceLocation &location=QT_PROPERTY_DEFAULT_BINDING_LOCATION, std::enable_if_t< std::is_invocable_v< Functor > > *=nullptr)
Definition qproperty.h:492
void setValue(parameter_type newValue)
Assigns newValue to this property and removes the property's associated binding, if present.
Definition qproperty.h:456
QProperty()=default
Constructs a property with a default constructed instance of T.
QProperty(const QPropertyBinding< T > &binding)
Constructs a property that is tied to the provided binding expression.
Definition qproperty.h:383
parameter_type value() const
Returns the value of the property.
Definition qproperty.h:419
QPropertyBinding< T > setBinding(const QPropertyBinding< T > &newBinding)
Associates the value of this property with the provided newBinding expression and returns the previou...
Definition qproperty.h:477
QProperty(Functor &&f, const QPropertyBindingSourceLocation &location=QT_PROPERTY_DEFAULT_BINDING_LOCATION, typename std::enable_if_t< std::is_invocable_r_v< T, Functor & > > *=nullptr)
Definition qproperty.h:388
const QtPrivate::QPropertyBindingData & bindingData() const
Definition qproperty.h:537
typename QPropertyData< T >::parameter_type parameter_type
Definition qproperty.h:376
QProperty< T > & operator=(rvalue_ref newValue)
Definition qproperty.h:465
arrow_operator_result operator->() const
Definition qproperty.h:425
QProperty< T > & operator=(parameter_type newValue)
Assigns newValue to this property and returns a reference to this QProperty.
Definition qproperty.h:471
QPropertyBinding< T > binding() const
Returns the binding expression that is associated with this property.
Definition qproperty.h:505
parameter_type operator*() const
Definition qproperty.h:437
operator parameter_type() const
Definition qproperty.h:442
~QProperty()=default
Destroys the property.
QProperty(parameter_type initialValue)
Definition qproperty.h:381
RAII class around Qt::beginPropertyUpdateGroup()/QtendPropertyUpdateGroup().
Definition qproperty.h:58
~QTimerPrivate() override
QTimerPrivate(QTimer *qq)
Definition qtimer_p.h:27
void setIntervalDuration(std::chrono::nanoseconds nsec)
Definition qtimer_p.h:42
static constexpr int INV_TIMER
Definition qtimer_p.h:40
void setInterval(int msec)
Definition qtimer_p.h:52
bool isActive() const
Definition qtimer_p.h:58
const bool isQTimer
Definition qtimer_p.h:70
QTimerPrivate(std::chrono::nanoseconds nsec, QChronoTimer *qq)
Definition qtimer_p.h:32
Qt::TimerId id
Definition qtimer_p.h:60
\inmodule QtCore
Definition qtimer.h:20
\inmodule QtCore
Definition qproperty.h:730
QUntypedPropertyBinding binding() const
Returns the underlying property's binding if there is any, or a default constructed QUntypedPropertyB...
Definition qproperty.h:810
QUntypedPropertyBinding makeBinding(const QPropertyBindingSourceLocation &location=QT_PROPERTY_DEFAULT_BINDING_LOCATION) const
Creates a binding returning the underlying properties' value, using a specified source location.
Definition qproperty.h:754
bool hasBinding() const
Returns true if the underlying property has a binding.
Definition qproperty.h:840
constexpr QUntypedBindable()=default
Default-constructs a QUntypedBindable.
QMetaType metaType() const
Definition qproperty.h:845
const QtPrivate::QBindableInterface * iface
Definition qproperty.h:734
QPropertyChangeHandler< Functor > onValueChanged(Functor f) const
Installs f as a change handler.
Definition qproperty.h:788
QUntypedPropertyBinding takeBinding()
Removes the currently set binding from the property and returns it.
Definition qproperty.h:759
QPropertyNotifier addNotifier(Functor f)
Installs f as a change handler.
Definition qproperty.h:803
QUntypedPropertyData * data
Definition qproperty.h:733
bool isBindable() const
Definition qproperty.h:751
bool isValid() const
Returns true if the QUntypedBindable is valid.
Definition qproperty.h:750
bool setBinding(const QUntypedPropertyBinding &binding)
Sets the underlying property's binding to binding.
Definition qproperty.h:821
bool isReadOnly() const
Definition qproperty.h:752
QUntypedBindable(Property *p)
Constructs a QUntypedBindable from the property property.
Definition qproperty.h:745
QPropertyChangeHandler< Functor > subscribe(Functor f) const
Behaves like a call to f followed by onValueChanged(f),.
Definition qproperty.h:796
constexpr QUntypedBindable(QUntypedPropertyData *d, const QtPrivate::QBindableInterface *i)
Definition qproperty.h:735
void observe(QPropertyObserver *observer) const
Definition qproperty.h:776
static constexpr QBindableInterface iface
Definition qproperty.h:606
QPropertyBindingData & bindingData()
friend class QT_PREPEND_NAMESPACE(QUntypedBindable)
const QMetaProperty & metaProperty() const
static QPropertyAdaptorSlotObject * cast(QSlotObjectBase *ptr, int propertyIndex)
const QPropertyBindingData & bindingData() const
const T & const_reference()
constexpr bool has_ostream_operator_v
constexpr bool is_dereferenceable_v
constexpr bool has_operator_equal_v
constexpr bool has_stream_operator_v
constexpr bool has_operator_compare_three_way_v
constexpr bool has_istream_operator_v
std::disjunction< std::is_base_of< Container, T >, QTypeTraits::has_operator_equal< T > > has_operator_equal_container
std::disjunction< std::is_base_of< Container, T >, QTypeTraits::has_operator_less_than< T > > has_operator_less_than_container
constexpr bool has_operator_compare_three_way_with_v
constexpr bool has_operator_less_than_v
void printMetaTypeMismatch(QMetaType actual, QMetaType expected)
void printUnsuitableBindableWarning(QAnyStringView prefix, BindableWarnings::Reason reason)
void setter(QUntypedPropertyData *d, const void *value)
void getter(const QUntypedPropertyData *d, void *value)
bool bindingWrapper(QMetaType type, QUntypedPropertyData *d, QtPrivate::QPropertyBindingFunction binding, QUntypedPropertyData *temp, void *value)
QUntypedPropertyBinding setBinding(QUntypedPropertyData *d, const QUntypedPropertyBinding &binding)
Definition qproperty.h:698
constexpr QBindableInterface iface
Definition qproperty.h:717
bool bindingWrapper(QMetaType type, QUntypedPropertyData *d, QtPrivate::QPropertyBindingFunction binding)
Definition qproperty.h:687
QUntypedPropertyBinding makeBinding(const QUntypedPropertyData *d, const QPropertyBindingSourceLocation &location)
Definition qproperty.h:704
void setObserver(const QUntypedPropertyData *d, QPropertyObserver *observer)
void assertObjectType(QObjectPrivate *d)
Definition qobject_p.h:250
Q_CORE_EXPORT bool isAnyBindingEvaluating()
Q_CORE_EXPORT void restoreBindingStatus(BindingEvaluationState *status)
constexpr bool is_standard_or_extended_integer_type_v
const QObject * getQObject(const QObjectPrivate *d)
Definition qobject_p.h:245
Q_CORE_EXPORT bool isPropertyInBindingWrapper(const QUntypedPropertyData *property)
Definition qcompare.h:76
auto makePropertyBinding(Functor &&f, const QPropertyBindingSourceLocation &location=QT_PROPERTY_DEFAULT_BINDING_LOCATION, std::enable_if_t< std::is_invocable_v< Functor > > *=nullptr)
Definition qproperty.h:213
Q_CORE_EXPORT void beginPropertyUpdateGroup()
QPropertyBinding< PropertyType > makePropertyBinding(const QProperty< PropertyType > &otherProperty, const QPropertyBindingSourceLocation &location=QT_PROPERTY_DEFAULT_BINDING_LOCATION)
Definition qproperty.h:567
Q_CORE_EXPORT void endPropertyUpdateGroup()
#define __has_include(x)
QT_BEGIN_NAMESPACE typedef QList< QTranslator * > QTranslatorList
static bool is_ident_char(char s)
static bool is_space(char s)
Q_DECLARE_TYPEINFO(QArgumentType, Q_RELOCATABLE_TYPE)
QVarLengthArray< QArgumentType, 10 > QArgumentTypeArray
@ MetaObjectPrivateFieldCount
#define QT_CONCAT(B, M, m, u)
Definition qobject_p.h:42
QBindingStorage * qGetBindingStorage(QObjectPrivate *o)
Definition qobject_p.h:453
QBindingStorage * qGetBindingStorage(QObjectPrivate::ExtraData *ed)
Definition qobject_p.h:461
const QBindingStorage * qGetBindingStorage(const QObjectPrivate *o)
Definition qobject_p.h:449
#define QPROPERTY_DECL_DELETED_EQ_OP
Definition qproperty.h:410
#define Q_OBJECT_BINDABLE_PROPERTY_WITH_ARGS(...)
Definition qproperty.h:1335
#define QT_PROPERTY_DEFAULT_BINDING_LOCATION
Definition qproperty.h:47
#define Q_OBJECT_COMPUTED_PROPERTY(Class, Type, name, ...)
Definition qproperty.h:1424
#define Q_OBJECT_COMPAT_PROPERTY_WITH_ARGS(...)
constexpr T qExchange(T &t, U &&newValue) noexcept(std::conjunction_v< std::is_nothrow_move_constructible< T >, std::is_nothrow_assignable< T &, U > >)
#define QSEIT_EXCLUDE(X)
QBindingObserverPtr()=default
QPropertyObserver * operator->()
QPropertyBindingPrivate * binding() const noexcept
static int signalOffset(const QMetaObject *m)
static int indexOfMethodRelative(const QMetaObject **baseObject, QByteArrayView name, QSpan< const QArgumentType > types, QMetaMethod::MethodType what)
static bool methodMatch(const QMetaObject *m, const QMetaMethod &method, QByteArrayView name, QSpan< const QArgumentType > types)
static bool disconnect(const QObject *sender, int signal_index, const QMetaObject *smeta, const QObject *receiver, int method_index, void **slot, DisconnectType=DisconnectAll)
Definition qobject.cpp:3843
static int indexOfEnumerator(const QMetaObject *m, QByteArrayView name)
static int indexOfMethod(const QMetaObject *m, QByteArrayView name, QSpan< const QArgumentType > types)
static int indexOfSignalRelative(const QMetaObject **baseObject, QByteArrayView name, QSpan< const QArgumentType > types)
static int indexOfEnumerator(const QMetaObject *m, QByteArrayView name, Which which)
static int indexOfSignal(const QMetaObject *m, QByteArrayView name, QSpan< const QArgumentType > types)
static void memberIndexes(const QObject *obj, const QMetaMethod &member, int *signalIndex, int *methodIndex)
Definition qobject.cpp:2934
static int indexOfConstructor(const QMetaObject *m, QByteArrayView name, QSpan< const QArgumentType > types)
static int indexOfSlot(const QMetaObject *m, QByteArrayView name, QSpan< const QArgumentType > types)
static Q_CORE_EXPORT int absoluteSignalCount(const QMetaObject *m)
static QByteArrayView parameterTypeNamesFromSignature(QByteArrayView signature, QVarLengthArray< QByteArrayView, 10 > &typeNames)
static const QMetaObjectPrivate * get(const QMetaObject *metaobject)
static bool disconnectHelper(QObjectPrivate::ConnectionData *connections, int signalIndex, const QObject *receiver, int method_index, void **slot, QBasicMutex *senderMutex, DisconnectType=DisconnectAll)
Definition qobject.cpp:3803
static bool checkConnectArgs(const QMetaMethodPrivate *signal, const QMetaMethodPrivate *method)
static QByteArray normalizedSignature(QByteArrayView method)
static int indexOfSlotRelative(const QMetaObject **m, QByteArrayView name, QSpan< const QArgumentType > types)
static int originalClone(const QMetaObject *obj, int local_method_index)
static Q_CORE_EXPORT int signalIndex(const QMetaMethod &m)
static bool checkConnectArgs(QSpan< const QArgumentType > signalTypes, QSpan< const QArgumentType > methodTypes)
static QByteArrayView decodeMethodSignature(QByteArrayView signature, QArgumentTypeArray &types)
static QPropertyProxyBindingData * proxyData(QtPrivate::QPropertyBindingData *ptr)
static void fixupAfterMove(QtPrivate::QPropertyBindingData *ptr)
Q_ALWAYS_INLINE void addObserver(QPropertyObserver *observer)
Definition qproperty.cpp:40
const QtPrivate::QPropertyBindingData * ptr
Definition qproperty_p.h:70
static QPropertyBindingDataPointer get(QProperty< T > &property)
Definition qproperty_p.h:92
QPropertyBindingPrivate * binding() const
Definition qproperty_p.h:72
void setObservers(QPropertyObserver *observer)
Definition qproperty_p.h:77
QPropertyObserverPointer firstObserver() const
void setFirstObserver(QPropertyObserver *observer)
QPropertyObserver * next() const
void noSelfDependencies(QPropertyBindingPrivate *binding)
void notify(QUntypedPropertyData *propertyDataPtr)
QPropertyBindingPrivate * binding() const
void evaluateBindings(PendingBindingObserverList &bindingObservers, QBindingStatus *status)
void observeProperty(QPropertyBindingDataPointer property)
QPropertyObserver * ptr
QPropertyObserverPointer nextObserver() const
void setBindingToNotify_unsafe(QPropertyBindingPrivate *binding)
void setChangeHandler(QPropertyObserver::ChangeHandler changeHandler)
void setBindingToNotify(QPropertyBindingPrivate *binding)
void(* BeginCallback)(QObject *caller, int signal_or_method_index, void **argv)
Definition qobject_p.h:63
BeginCallback slot_begin_callback
Definition qobject_p.h:66
EndCallback slot_end_callback
Definition qobject_p.h:68
EndCallback signal_end_callback
Definition qobject_p.h:67
BeginCallback signal_begin_callback
Definition qobject_p.h:65
void(* EndCallback)(QObject *caller, int signal_or_method_index)
Definition qobject_p.h:64
static QtPrivate::QBindableInterface const * getInterface(const QUntypedBindable &bindable)
static QUntypedPropertyData * getPropertyData(const QUntypedBindable &bindable)
QPropertyBindingPrivate * binding
QVarLengthArray< const QPropertyBindingData *, 8 > alreadyCaptureProperties
BindingEvaluationState(QPropertyBindingPrivate *binding, QBindingStatus *status)
BindingEvaluationState * previousState
BindingEvaluationState ** currentState
QtPrivate::BindingEvaluationState ** currentlyEvaluatingBindingList
CompatPropertySafePoint * previousState
CompatPropertySafePoint ** currentState
QUntypedPropertyData * property
QtPrivate::BindingEvaluationState * bindingState
void(*)(const QUntypedPropertyData *d, void *value) Getter
Definition qproperty.h:581
void(*)(const QUntypedPropertyData *d, QPropertyObserver *observer) SetObserver
Definition qproperty.h:586
void(*)(QUntypedPropertyData *d, const void *value) Setter
Definition qproperty.h:582
static constexpr quintptr MetaTypeAccessorFlag
Definition qproperty.h:596