![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <qmetaobject_p.h>
Public Types | |
| enum | { OutputRevision = QtMocConstants::OutputRevision } |
| enum | { IntsPerMethod = QMetaMethod::Data::Size } |
| enum | { IntsPerEnum = QMetaEnum::Data::Size } |
| enum | { IntsPerProperty = QMetaProperty::Data::Size } |
| enum class | Which { Name , Alias } |
| enum | DisconnectType { DisconnectAll , DisconnectOne } |
Public Attributes | |
| int | revision |
| int | className |
| int | classInfoCount |
| int | classInfoData |
| int | methodCount |
| int | methodData |
| int | propertyCount |
| int | propertyData |
| int | enumeratorCount |
| int | enumeratorData |
| int | constructorCount |
| int | constructorData |
| int | flags |
| int | signalCount |
| int | metaObjectHashIndex |
Definition at line 111 of file qmetaobject_p.h.
| anonymous enum |
| Enumerator | |
|---|---|
| OutputRevision | |
Definition at line 113 of file qmetaobject_p.h.
| anonymous enum |
| Enumerator | |
|---|---|
| IntsPerEnum | |
Definition at line 115 of file qmetaobject_p.h.
| anonymous enum |
| Enumerator | |
|---|---|
| IntsPerProperty | |
Definition at line 116 of file qmetaobject_p.h.
| anonymous enum |
| Enumerator | |
|---|---|
| IntsPerMethod | |
Definition at line 114 of file qmetaobject_p.h.
| Enumerator | |
|---|---|
| DisconnectAll | |
| DisconnectOne | |
Definition at line 178 of file qmetaobject_p.h.
|
strong |
| Enumerator | |
|---|---|
| Name | |
| Alias | |
Definition at line 152 of file qmetaobject_p.h.
|
static |
Returns the number of signals for the class m, including the signals for the base class.
Similar to QMetaObject::methodCount(), but non-signal methods are excluded.
Definition at line 1029 of file qmetaobject.cpp.
|
static |
Returns true if the signal and method arguments are compatible; otherwise returns false.
Definition at line 1104 of file qmetaobject.cpp.
References typeFromTypeInfo().
|
static |
Returns true if the signalTypes and methodTypes are compatible; otherwise returns false.
Definition at line 1086 of file qmetaobject.cpp.
|
static |
Same as the QMetaObject::connect, but signal_index must be the result of QObjectPrivate::signalIndex
method_index is relative to the rmeta metaobject, if rmeta is \nullptr, then it is absolute index
the QObjectPrivate::Connection* has a refcount of 2, so it must be passed to a QMetaObject::Connection
Definition at line 3738 of file qobject.cpp.
References revision.
|
static |
Given a method signature (e.g. foo(int,double)), this function populates the types array and returns the method name.
No normalization of the type names is performed.
Definition at line 867 of file qmetaobject.cpp.
|
static |
Same as the QMetaObject::disconnect, but signal_index must be the result of QObjectPrivate::signalIndex
Definition at line 3873 of file qobject.cpp.
|
inlinestatic |
Helper function to remove the connection from the senders list and set the receivers to \nullptr
Definition at line 3833 of file qobject.cpp.
|
static |
Returns the first method with name name found in baseObject
Definition at line 719 of file qmetaobject.cpp.
|
inlinestatic |
Definition at line 129 of file qmetaobject_p.h.
|
static |
Definition at line 996 of file qmetaobject.cpp.
|
static |
Definition at line 1164 of file qmetaobject.cpp.
|
static |
Definition at line 1174 of file qmetaobject.cpp.
References enumeratorCount, and Name.
|
static |
Definition at line 987 of file qmetaobject.cpp.
|
inlinestatic |
Helper function for indexOf{Method,Slot,Signal}, returns the relative index of the method within baseObject.
If what is QMetaMethod::Method it will search all functions registered for baseobject.
Definition at line 741 of file qmetaobject.cpp.
|
static |
Definition at line 969 of file qmetaobject.cpp.
|
static |
Same as QMetaObject::indexOfSignal, but the result is the local offset to the base object.
baseObject will be adjusted to the enclosing QMetaObject, or \nullptr if the signal is not found
Definition at line 913 of file qmetaobject.cpp.
|
static |
Definition at line 978 of file qmetaobject.cpp.
|
static |
Definition at line 962 of file qmetaobject.cpp.
|
static |
This helper function calculates signal and method index for the given member in the specified class.
\list
This function is used by QObject::connect and QObject::disconnect which are working with QMetaMethod.
signalIndex is set to the signal index of member. If the member specified is not signal this variable is set to -1.
methodIndex is set to the method index of the member. If the member is not a method of the object specified by the obj argument this variable is set to -1.
Definition at line 2964 of file qobject.cpp.
References computeOffsets().
|
static |
Definition at line 677 of file qmetaobject.cpp.
|
static |
Definition at line 1469 of file qmetaobject.cpp.
References is_ident_char(), and is_space().
|
static |
If the local_method_index is a cloned method, return the index of the original.
A "cloned" method is a function with a default argument, this is handled by pretending there is an overload without the argument, and the original function is the overload with all arguments present.
Example: for a function {QObject::destroyed(QObject *o = nullptr}, if the index of {destroyed()} is passed, the index of {destroyed(QObject*)} is returned.
Definition at line 4650 of file qmetaobject.cpp.
|
static |
Given a method signature (e.g. foo(int,double)), this function populates the types array with the parameter type names, and returns the method name.
No normalization of the type names is performed.
Definition at line 4670 of file qmetaobject.cpp.
|
static |
Returns the signal for the given meta-object m at signal_index.
It it different from QMetaObject::method(); the index should not include non-signal methods.
Definition at line 1063 of file qmetaobject.cpp.
|
static |
Returns the index of the signal method m.
Similar to QMetaMethod::methodIndex(), but non-signal methods are excluded.
Definition at line 1047 of file qmetaobject.cpp.
|
inlinestatic |
Returns the signal offset for the class m; i.e., the index position of the class's first signal.
Similar to QMetaObject::methodOffset(), but non-signal methods are excluded.
Definition at line 157 of file qmetaobject_p.h.
References signalCount.
| int QMetaObjectPrivate::classInfoCount |
Definition at line 120 of file qmetaobject_p.h.
Referenced by buildMetaObject().
| int QMetaObjectPrivate::classInfoData |
Definition at line 120 of file qmetaobject_p.h.
Referenced by buildMetaObject().
| int QMetaObjectPrivate::className |
Definition at line 119 of file qmetaobject_p.h.
Referenced by buildMetaObject().
| int QMetaObjectPrivate::constructorCount |
Definition at line 124 of file qmetaobject_p.h.
Referenced by buildMetaObject().
| int QMetaObjectPrivate::constructorData |
Definition at line 124 of file qmetaobject_p.h.
Referenced by buildMetaObject().
| int QMetaObjectPrivate::enumeratorCount |
Definition at line 123 of file qmetaobject_p.h.
Referenced by buildMetaObject(), and indexOfEnumerator().
| int QMetaObjectPrivate::enumeratorData |
Definition at line 123 of file qmetaobject_p.h.
Referenced by buildMetaObject().
| int QMetaObjectPrivate::flags |
Definition at line 125 of file qmetaobject_p.h.
| int QMetaObjectPrivate::metaObjectHashIndex |
Definition at line 127 of file qmetaobject_p.h.
Referenced by buildMetaObject().
| int QMetaObjectPrivate::methodCount |
Definition at line 121 of file qmetaobject_p.h.
Referenced by buildMetaObject(), and computeOffsets().
| int QMetaObjectPrivate::methodData |
Definition at line 121 of file qmetaobject_p.h.
Referenced by buildMetaObject().
| int QMetaObjectPrivate::propertyCount |
Definition at line 122 of file qmetaobject_p.h.
Referenced by buildMetaObject().
| int QMetaObjectPrivate::propertyData |
Definition at line 122 of file qmetaobject_p.h.
Referenced by buildMetaObject().
| int QMetaObjectPrivate::revision |
Definition at line 118 of file qmetaobject_p.h.
Referenced by buildMetaObject(), computeOffsets(), and connect().
| int QMetaObjectPrivate::signalCount |
Definition at line 126 of file qmetaobject_p.h.
Referenced by computeOffsets(), and signalOffset().