Qt 4.8
|
#include <qmetaobject_p.h>
Public Types | |
enum | DisconnectType { DisconnectAll, DisconnectOne } |
Static Public Functions | |
static bool | connect (const QObject *sender, int signal_index, const QObject *receiver, int method_index_relative, const QMetaObject *rmeta=0, int type=0, int *types=0) |
static bool | disconnect (const QObject *sender, int signal_index, const QObject *receiver, int method_index, DisconnectType=DisconnectAll) |
static bool | disconnectHelper (QObjectPrivate::Connection *c, const QObject *receiver, int method_index, QMutex *senderMutex, DisconnectType) |
static const QMetaObjectPrivate * | get (const QMetaObject *metaobject) |
static int | indexOfSignalRelative (const QMetaObject **baseObject, const char *name, bool normalizeStringData) |
Same as QMetaObject::indexOfSignal, but the result is the local offset to the base object. More... | |
static int | indexOfSlotRelative (const QMetaObject **m, const char *slot, bool normalizeStringData) |
static void | memberIndexes (const QObject *obj, const QMetaMethod &member, int *signalIndex, int *methodIndex) |
This helper function calculates signal and method index for the given member in the specified class. More... | |
static int | originalClone (const QMetaObject *obj, int local_method_index) |
Public Variables | |
int | classInfoCount |
int | classInfoData |
int | className |
int | constructorCount |
int | constructorData |
int | enumeratorCount |
int | enumeratorData |
int | flags |
int | methodCount |
int | methodData |
int | propertyCount |
int | propertyData |
int | revision |
int | signalCount |
Definition at line 109 of file qmetaobject_p.h.
|
static |
method_index is relative to the rmeta metaobject, if rmeta is null, then it is absolute index
Definition at line 3209 of file qobject.cpp.
Referenced by QObject::connect(), QMetaObject::connect(), and QMetaObject::connectSlotsByName().
|
static |
Definition at line 3342 of file qobject.cpp.
Referenced by QObject::disconnect(), QMetaObject::disconnect(), and QMetaObject::disconnectOne().
|
inlinestatic |
Definition at line 3302 of file qobject.cpp.
|
inlinestatic |
Definition at line 123 of file qmetaobject_p.h.
Referenced by computeOffsets(), connect(), and QMetaMethod::invoke().
|
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 0 if the signal is not found
Definition at line 648 of file qmetaobject.cpp.
Referenced by QObject::connect(), QObject::disconnect(), get(), QMetaObject::indexOfSignal(), and QObjectPrivate::signalIndex().
|
static |
Definition at line 685 of file qmetaobject.cpp.
Referenced by QObject::connect(), get(), and QMetaObject::indexOfSlot().
|
static |
This helper function calculates signal and method index for the given member in the specified class.
If member.mobj is 0 then both signalIndex and methodIndex are set to -1.
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 2468 of file qobject.cpp.
Referenced by QObject::connect(), and QObject::disconnect().
|
static |
Example: if the index of "destroyed()" is passed, the index of "destroyed(QObject*)" is returned
Definition at line 2883 of file qmetaobject.cpp.
Referenced by QMetaObject::activate(), QObject::connect(), QObject::disconnect(), get(), methodIndexToSignalIndex(), and QObjectPrivate::signalIndex().
int QMetaObjectPrivate::classInfoCount |
Definition at line 113 of file qmetaobject_p.h.
Referenced by buildMetaObject(), QMetaObject::classInfo(), QMetaObject::classInfoCount(), QMetaObject::classInfoOffset(), QMetaObjectBuilder::deserialize(), and QMetaObject::indexOfClassInfo().
int QMetaObjectPrivate::classInfoData |
Definition at line 113 of file qmetaobject_p.h.
Referenced by buildMetaObject(), QMetaObject::classInfo(), and QMetaObject::indexOfClassInfo().
int QMetaObjectPrivate::className |
Definition at line 112 of file qmetaobject_p.h.
Referenced by buildMetaObject().
int QMetaObjectPrivate::constructorCount |
Definition at line 117 of file qmetaobject_p.h.
Referenced by buildMetaObject(), QMetaObject::constructor(), QMetaObject::constructorCount(), QMetaObjectBuilder::deserialize(), and QMetaObject::indexOfConstructor().
int QMetaObjectPrivate::constructorData |
Definition at line 117 of file qmetaobject_p.h.
Referenced by buildMetaObject(), QMetaObject::constructor(), and QMetaObject::indexOfConstructor().
int QMetaObjectPrivate::enumeratorCount |
Definition at line 116 of file qmetaobject_p.h.
Referenced by buildMetaObject(), QMetaObjectBuilder::deserialize(), QMetaObject::enumerator(), QMetaObject::enumeratorCount(), QMetaObject::enumeratorOffset(), and QMetaObject::indexOfEnumerator().
int QMetaObjectPrivate::enumeratorData |
Definition at line 116 of file qmetaobject_p.h.
Referenced by buildMetaObject(), QMetaObject::enumerator(), and QMetaObject::indexOfEnumerator().
int QMetaObjectPrivate::flags |
Definition at line 118 of file qmetaobject_p.h.
Referenced by buildMetaObject(), QMetaObject::indexOfProperty(), QMetaPropertyBuilderPrivate::QMetaPropertyBuilderPrivate(), and QMetaObjectBuilder::setFlags().
int QMetaObjectPrivate::methodCount |
Definition at line 114 of file qmetaobject_p.h.
Referenced by buildMetaObject(), computeOffsets(), QMetaObjectBuilder::deserialize(), indexOfMethodRelative(), QMetaObject::method(), QMetaObject::methodCount(), QMetaObject::methodOffset(), and QMetaMethod::revision().
int QMetaObjectPrivate::methodData |
Definition at line 114 of file qmetaobject_p.h.
Referenced by buildMetaObject(), indexOfMethodRelative(), QMetaMethod::invoke(), QMetaObject::method(), QMetaMethod::methodIndex(), and QMetaMethod::revision().
int QMetaObjectPrivate::propertyCount |
Definition at line 115 of file qmetaobject_p.h.
Referenced by buildMetaObject(), QMetaObjectBuilder::deserialize(), QMetaObject::indexOfProperty(), QMetaProperty::notifySignalIndex(), QMetaObject::property(), QMetaObject::propertyCount(), QMetaObject::propertyOffset(), and QMetaProperty::revision().
int QMetaObjectPrivate::propertyData |
Definition at line 115 of file qmetaobject_p.h.
Referenced by buildMetaObject(), QMetaProperty::hasStdCppSet(), QMetaObject::indexOfProperty(), QMetaProperty::isEnumType(), QMetaProperty::name(), QMetaProperty::notifySignalIndex(), QMetaObject::property(), QMetaProperty::read(), QMetaProperty::revision(), QMetaProperty::type(), QMetaProperty::typeName(), and QMetaProperty::write().
int QMetaObjectPrivate::revision |
Definition at line 111 of file qmetaobject_p.h.
Referenced by QMetaObjectBuilder::addMetaObject(), buildMetaObject(), computeOffsets(), connect(), QMetaObject::constructor(), QMetaObject::constructorCount(), QMetaObject::indexOfConstructor(), indexOfMethodRelative(), QMetaObject::indexOfProperty(), QMetaMethod::invoke(), QMetaObject_findMetaObject(), and QMetaObject::static_metacall().
int QMetaObjectPrivate::signalCount |
Definition at line 119 of file qmetaobject_p.h.
Referenced by computeOffsets(), and indexOfMethodRelative().