Qt 4.8
|
#include <qobject_p.h>
Classes | |
struct | Connection |
struct | ConnectionList |
struct | ExtraData |
struct | Sender |
Public Types | |
typedef void(* | StaticMetaCallFunction) (QObject *, QMetaObject::Call, int, void **) |
Public Functions | |
void | _q_reregisterTimers (void *pointer) |
void | addConnection (int signal, Connection *c) |
void | cleanConnectionLists () |
void | connectNotify (const char *signal) |
void | deleteChildren () |
void | disconnectNotify (const char *signal) |
bool | isSender (const QObject *receiver, const char *signal) const |
bool | isSignalConnected (uint signalIdx) const |
Returns true if the signal with index signal_index from object sender is connected. More... | |
void | moveToThread_helper () |
QObjectPrivate (int version=QObjectPrivateVersion) | |
QObjectList | receiverList (const char *signal) const |
QObjectList | senderList () const |
void | setParent_helper (QObject *) |
void | setThreadData_helper (QThreadData *currentData, QThreadData *targetData) |
int | signalIndex (const char *signalName) const |
Returns the signal index used in the internal connectionLists vector. More... | |
virtual | ~QObjectPrivate () |
Public Functions inherited from QObjectData | |
virtual | ~QObjectData ()=0 |
Static Public Functions | |
static void | clearGuards (QObject *) |
static QObjectPrivate * | get (QObject *o) |
static void | resetCurrentSender (QObject *receiver, Sender *currentSender, Sender *previousSender) |
static Sender * | setCurrentSender (QObject *receiver, Sender *sender) |
static void | signalSignature (const QMetaMethod &signal, QVarLengthArray< char > *result) |
Public Variables | |
union { | |
QObject * currentChildBeingDeleted | |
QAbstractDeclarativeData * declarativeData | |
}; | |
quint32 | connectedSignals [2] |
QObjectConnectionListVector * | connectionLists |
Sender * | currentSender |
QList< QPointer< QObject > > | eventFilters |
ExtraData * | extraData |
QString | objectName |
Connection * | senders |
QAtomicPointer< QtSharedPointer::ExternalRefCountData > | sharedRefcount |
QThreadData * | threadData |
void * | unused |
Public Variables inherited from QObjectData | |
uint | blockSig: 1 |
QObjectList | children |
uint | hasGuards: 1 |
uint | inEventHandler: 1 |
uint | inThreadChangeEvent: 1 |
uint | isWidget: 1 |
QMetaObject * | metaObject |
uint | ownObjectName: 1 |
QObject * | parent |
uint | pendTimer: 1 |
int | postedEvents |
QObject * | q_ptr |
uint | receiveChildEvents: 1 |
uint | sendChildEvents: 1 |
uint | unused: 22 |
uint | wasDeleted: 1 |
Definition at line 98 of file qobject_p.h.
typedef void(* QObjectPrivate::StaticMetaCallFunction) (QObject *, QMetaObject::Call, int, void **) |
Definition at line 113 of file qobject_p.h.
QObjectPrivate::QObjectPrivate | ( | int | version = QObjectPrivateVersion | ) |
Definition at line 133 of file qobject.cpp.
|
virtual |
Definition at line 161 of file qobject.cpp.
void QObjectPrivate::_q_reregisterTimers | ( | void * | pointer | ) |
Definition at line 1571 of file qobject.cpp.
void QObjectPrivate::addConnection | ( | int | signal, |
Connection * | c | ||
) |
Definition at line 330 of file qobject.cpp.
Referenced by QMetaObjectPrivate::connect().
void QObjectPrivate::cleanConnectionLists | ( | ) |
Definition at line 348 of file qobject.cpp.
Referenced by addConnection().
|
static |
Definition at line 467 of file qobject.cpp.
Referenced by QObject::~QObject(), and QWidget::~QWidget().
|
inline |
Definition at line 245 of file qobject_p.h.
Referenced by QDeclarativePropertyPrivate::connect().
void QObjectPrivate::deleteChildren | ( | ) |
Definition at line 1957 of file qobject.cpp.
Referenced by QObject::~QObject().
|
inline |
Definition at line 250 of file qobject_p.h.
Referenced by QDeclarativeNotifierEndpoint::disconnect().
|
inlinestatic |
Definition at line 177 of file qobject_p.h.
Referenced by QAbstractScrollAreaPrivate::_q_showOrHideScrollBars(), QDeclarativeGuardImpl::addGuard(), QDeclarativeEnginePrivate::cache(), QInternal::callFunction(), QMetaObject::changeGuard(), QDeclarativeTransitionManager::complete(), QDeclarativePropertyPrivate::connect(), QMetaObjectPrivate::connect(), QDeclarativeEngine::contextForObject(), QDeclarativeCompiledData::TypeReference::createInstance(), QScriptDeclarativeClass::createPersistentIdentifier(), destroy_current_thread_data(), QDeclarativeNotifierEndpoint::disconnect(), QDeclarativeBoundSignal::disconnect(), QMetaObjectPrivate::disconnect(), QScriptDebuggerLocalsItemDelegate::eventFilter(), QEventLoop::exec(), fastHasBinding(), flush_vme_signal(), QDeclarativeContextPrivate::get(), QDeclarativeComponentPrivate::get(), QDeclarativeData::get(), QDeclarativeExpressionPrivate::get(), QDeclarativeVisualDataModelPrivate::get(), QDeclarativeDebugServer::instance(), QDeclarativeMouseAreaPrivate::isDoubleClickConnected(), QDeclarativeMouseAreaPrivate::isPressAndHoldConnected(), QDeclarativeContextData::isValid(), QScriptDeclarativeClass::newObject(), QScriptDeclarativeClass::newObjectValue(), QDeclarativeObjectScriptClass::newQObject(), QDeclarativeContextData::ContextGuard::objectDestroyed(), QDeclarativeValueTypeScriptClass::property(), QDeclarativePrivate::qdeclarativeelement_destructor(), QDeclarativeOpenMetaObject::QDeclarativeOpenMetaObject(), QDeclarativeProxyMetaObject::QDeclarativeProxyMetaObject(), QDeclarativeVMEMetaObject::QDeclarativeVMEMetaObject(), qDeleteInEventHandler(), qt_adopted_thread_watcher_function(), QStateMachinePrivate::registerEventTransition(), QDeclarativeVisualDataModel::release(), QDeclarativeEngineDebugPrivate::remove(), QMetaObject::removeGuard(), QDeclarativeVME::run(), QDeclarativeStateGroupPrivate::setCurrentStateInternal(), QDeclarativeConnectionsParser::setCustomData(), QDeclarativePropertyChangesParser::setCustomData(), QDeclarativeEngineDebugService::setMethodBody(), QAbstractScrollAreaPrivate::setSingleFingerPanEnabled(), QComboBox::showPopup(), QTimerInfoList::unregisterTimer(), QEventDispatcherMac::unregisterTimer(), QEventDispatcherWin32Private::unregisterTimer(), QTimerInfoList::unregisterTimers(), QEventDispatcherMac::unregisterTimers(), and QGraphicsItem::~QGraphicsItem().
bool QObjectPrivate::isSender | ( | const QObject * | receiver, |
const char * | signal | ||
) | const |
Definition at line 275 of file qobject.cpp.
|
inline |
Returns true if the signal with index signal_index from object sender is connected.
Signals with indices above a certain range are always considered connected (see connectedSignals in QObjectPrivate). If a signal spy is installed, all signals are considered connected.
signal_index must be the index returned by QObjectPrivate::signalIndex;
Definition at line 237 of file qobject_p.h.
Referenced by QGraphicsScenePrivate::_q_emitUpdated(), QDeclarativeMouseAreaPrivate::isDoubleClickConnected(), QDeclarativeMouseAreaPrivate::isPressAndHoldConnected(), QGraphicsItem::prepareGeometryChange(), QVariantAnimationPrivate::setCurrentValueForProgress(), and QObject::~QObject().
void QObjectPrivate::moveToThread_helper | ( | ) |
Definition at line 1513 of file qobject.cpp.
Referenced by QObject::moveToThread().
QObjectList QObjectPrivate::receiverList | ( | const char * | signal | ) | const |
Definition at line 298 of file qobject.cpp.
|
inlinestatic |
Definition at line 277 of file qobject_p.h.
Referenced by QMetaObject::activate(), QInternal::callFunction(), and QObject::event().
QObjectList QObjectPrivate::senderList | ( | ) | const |
Definition at line 321 of file qobject.cpp.
|
inlinestatic |
Definition at line 269 of file qobject_p.h.
Referenced by QMetaObject::activate(), QInternal::callFunction(), and QObject::event().
void QObjectPrivate::setParent_helper | ( | QObject * | o | ) |
Definition at line 1974 of file qobject.cpp.
Referenced by QWidgetPrivate::isBackgroundInherited(), isServerProcess(), q_createNativeChildrenAndSetParent(), QObject::setParent(), QWidgetPrivate::setParent_sys(), and QObject::~QObject().
void QObjectPrivate::setThreadData_helper | ( | QThreadData * | currentData, |
QThreadData * | targetData | ||
) |
Definition at line 1524 of file qobject.cpp.
int QObjectPrivate::signalIndex | ( | const char * | signalName | ) | const |
Returns the signal index used in the internal connectionLists vector.
It is different from QMetaObject::indexOfSignal(): indexOfSignal is the same as indexOfMethod while QObjectPrivate::signalIndex is smaller because it doesn't give index to slots.
Definition at line 3719 of file qobject.cpp.
Referenced by QGraphicsScenePrivate::init(), QDeclarativeMouseAreaPrivate::isDoubleClickConnected(), QDeclarativeMouseAreaPrivate::isPressAndHoldConnected(), isSender(), receiverList(), QObject::receivers(), QStateMachinePrivate::registerSignalTransition(), QVariantAnimationPrivate::setCurrentValueForProgress(), and QStateMachinePrivate::unregisterSignalTransition().
|
inlinestatic |
Definition at line 255 of file qobject_p.h.
Referenced by QDeclarativePropertyPrivate::connect(), QObject::connect(), QDeclarativeNotifierEndpoint::disconnect(), QDeclarativeBoundSignal::disconnect(), and QObject::disconnect().
union { ... } |
|
mutable |
Definition at line 201 of file qobject_p.h.
Referenced by QMetaObjectPrivate::connect(), and QObjectPrivate().
QObjectConnectionListVector* QObjectPrivate::connectionLists |
Definition at line 197 of file qobject_p.h.
Referenced by addConnection(), cleanConnectionLists(), QMetaObjectPrivate::connect(), QMetaObjectPrivate::disconnect(), QObject::dumpObjectInfo(), isSender(), receiverList(), QObject::receivers(), and QObject::~QObject().
QObject* QObjectPrivate::currentChildBeingDeleted |
Definition at line 213 of file qobject_p.h.
Referenced by setParent_helper().
Sender* QObjectPrivate::currentSender |
Definition at line 200 of file qobject_p.h.
Referenced by QInternal::callFunction(), QSignalEventGenerator::qt_metacall(), QDBusAdaptorConnector::relaySlot(), QObject::sender(), QObject::senderSignalIndex(), and QObject::~QObject().
QAbstractDeclarativeData* QObjectPrivate::declarativeData |
Definition at line 214 of file qobject_p.h.
Referenced by QDeclarativeEngine::contextForObject(), QDeclarativeCompiledData::TypeReference::createInstance(), fastHasBinding(), flush_vme_signal(), QDeclarativeData::get(), QDeclarativePrivate::qdeclarativeelement_destructor(), QDeclarativeVisualDataModel::release(), QDeclarativeVME::run(), QObject::setObjectName(), QGraphicsItem::~QGraphicsItem(), and QObject::~QObject().
Definition at line 211 of file qobject_p.h.
Referenced by QObject::installEventFilter(), QStateMachinePrivate::registerEventTransition(), and QObject::removeEventFilter().
ExtraData* QObjectPrivate::extraData |
Definition at line 194 of file qobject_p.h.
Referenced by QObject::dynamicPropertyNames(), QObject::property(), QObjectPrivate(), QObject::setProperty(), QObject::setUserData(), QObject::userData(), and ~QObjectPrivate().
QString QObjectPrivate::objectName |
Definition at line 193 of file qobject_p.h.
Referenced by QObject::setObjectName(), and QObjectPrivate::Connection::~Connection().
Connection* QObjectPrivate::senders |
Definition at line 199 of file qobject_p.h.
Referenced by QMetaObjectPrivate::connect(), QObject::dumpObjectInfo(), QObject::sender(), senderList(), QObject::senderSignalIndex(), and QObject::~QObject().
QAtomicPointer<QtSharedPointer::ExternalRefCountData> QObjectPrivate::sharedRefcount |
Definition at line 219 of file qobject_p.h.
Referenced by QObject::~QObject().
QThreadData* QObjectPrivate::threadData |
Definition at line 195 of file qobject_p.h.
Referenced by QAbstractSocketPrivate::_q_connectToNextAddress(), QAbstractSocketPrivate::_q_testConnection(), QObject::event(), QAbstractSocketPrivate::initSocketLayer(), QObject::installEventFilter(), QObject::killTimer(), make_widget_eventUPP(), QObject::moveToThread(), QCoreApplication::notifyInternal(), processPostedEvents(), QObject::QObject(), qt_create_commandline(), qt_internal_proc(), QSettings::registerFormat(), QObject::startTimer(), and ~QObjectPrivate().
void* QObjectPrivate::unused |
Definition at line 208 of file qobject_p.h.
Referenced by QDesktopWidgetPrivate::init(), QPrintDialogPrivate::openCarbonPrintPanel(), QTimerInfoList::QTimerInfoList(), QApplication::qwsProcessEvent(), and QDateTimeEditPrivate::updateCache().