QtBase  v6.3.1
Classes | Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
QObjectPrivate Class Reference

#include <qobject_p.h>

Inheritance diagram for QObjectPrivate:
Inheritance graph
[legend]
Collaboration diagram for QObjectPrivate:
Collaboration graph
[legend]

Classes

struct  Connection
 
struct  ConnectionData
 
struct  ConnectionList
 
struct  ConnectionOrSignalVector
 
struct  ExtraData
 
struct  Sender
 
struct  SignalVector
 

Public Types

typedef void(* StaticMetaCallFunction) (QObject *, QMetaObject::Call, int, void **)
 
using ConnectionDataPointer = QExplicitlySharedDataPointer< ConnectionData >
 

Public Member Functions

 QObjectPrivate (int version=QObjectPrivateVersion)
 
virtual ~QObjectPrivate ()
 
void deleteChildren ()
 
void clearBindingStorage ()
 
void checkForIncompatibleLibraryVersion (int version) const
 
void setParent_helper (QObject *)
 
void moveToThread_helper ()
 
void setThreadData_helper (QThreadData *currentData, QThreadData *targetData)
 
void _q_reregisterTimers (void *pointer)
 
bool isSender (const QObject *receiver, const char *signal) const
 
QObjectList receiverList (const char *signal) const
 
QObjectList senderList () const
 
void addConnection (int signal, Connection *c)
 
int signalIndex (const char *signalName, const QMetaObject **meta=nullptr) const
 
bool isSignalConnected (uint signalIdx, bool checkDeclarative=true) const
 
bool maybeSignalConnected (uint signalIndex) const
 
bool isDeclarativeSignalConnected (uint signalIdx) const
 
void connectNotify (const QMetaMethod &signal)
 
void disconnectNotify (const QMetaMethod &signal)
 
void ensureConnectionData ()
 
- Public Member Functions inherited from QObjectData
 QObjectData ()=default
 
virtual ~QObjectData ()=0
 
QMetaObjectdynamicMetaObject () const
 

Static Public Member Functions

static QObjectPrivateget (QObject *o)
 
static const QObjectPrivateget (const QObject *o)
 
template<typename Func1 , typename Func2 >
static QMetaObject::Connection connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiverPrivate, Func2 slot, Qt::ConnectionType type=Qt::AutoConnection)
 
template<typename Func1 , typename Func2 >
static bool disconnect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiverPrivate, Func2 slot)
 
static QMetaObject::Connection connectImpl (const QObject *sender, int signal_index, const QObject *receiver, void **slot, QtPrivate::QSlotObjectBase *slotObj, int type, const int *types, const QMetaObject *senderMetaObject)
 
static QMetaObject::Connection connect (const QObject *sender, int signal_index, QtPrivate::QSlotObjectBase *slotObj, Qt::ConnectionType type)
 
static QMetaObject::Connection connect (const QObject *sender, int signal_index, const QObject *receiver, QtPrivate::QSlotObjectBase *slotObj, Qt::ConnectionType type)
 
static bool disconnect (const QObject *sender, int signal_index, void **slot)
 
static bool disconnect (const QObject *sender, int signal_index, const QObject *receiver, void **slot)
 
static bool disconnect (Connection *c)
 

Public Attributes

ExtraDataextraData
 
QAtomicPointer< QThreadDatathreadData
 
QAtomicPointer< ConnectionDataconnections
 
union {
   QObject *   currentChildBeingDeleted
 
   QAbstractDeclarativeData *   declarativeData
 
}; 
 
QAtomicPointer< QtSharedPointer::ExternalRefCountDatasharedRefcount
 
- Public Attributes inherited from QObjectData
QObjectq_ptr
 
QObjectparent
 
QObjectList children
 
uint isWidget: 1
 
uint blockSig: 1
 
uint wasDeleted: 1
 
uint isDeletingChildren: 1
 
uint sendChildEvents: 1
 
uint receiveChildEvents: 1
 
uint isWindow: 1
 
uint deleteLaterCalled: 1
 
uint unused: 24
 
int postedEvents
 
QDynamicMetaObjectDatametaObject
 
QBindingStorage bindingStorage
 

Detailed Description

Definition at line 98 of file qobject_p.h.

Member Typedef Documentation

◆ ConnectionDataPointer

Definition at line 422 of file qobject_p.h.

◆ StaticMetaCallFunction

typedef void(* QObjectPrivate::StaticMetaCallFunction) (QObject *, QMetaObject::Call, int, void **)

Definition at line 127 of file qobject_p.h.

Constructor & Destructor Documentation

◆ QObjectPrivate()

QObjectPrivate::QObjectPrivate ( int  version = QObjectPrivateVersion)

Definition at line 182 of file qobject.cpp.

Here is the call graph for this function:

◆ ~QObjectPrivate()

QObjectPrivate::~QObjectPrivate ( )
virtual

Definition at line 203 of file qobject.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ _q_reregisterTimers()

void QObjectPrivate::_q_reregisterTimers ( void pointer)

Definition at line 1711 of file qobject.cpp.

Here is the call graph for this function:

◆ addConnection()

void QObjectPrivate::addConnection ( int  signal,
Connection c 
)

Definition at line 313 of file qobject.cpp.

Here is the call graph for this function:

◆ checkForIncompatibleLibraryVersion()

void QObjectPrivate::checkForIncompatibleLibraryVersion ( int  version) const
inline

Definition at line 444 of file qobject_p.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ clearBindingStorage()

void QObjectPrivate::clearBindingStorage ( )

Definition at line 954 of file qobject.cpp.

◆ connect() [1/3]

QMetaObject::Connection QObjectPrivate::connect ( const QObject sender,
int  signal_index,
const QObject receiver,
QtPrivate::QSlotObjectBase slotObj,
Qt::ConnectionType  type 
)
static

Definition at line 5222 of file qobject.cpp.

Here is the call graph for this function:

◆ connect() [2/3]

QMetaObject::Connection QObjectPrivate::connect ( const QObject sender,
int  signal_index,
QtPrivate::QSlotObjectBase slotObj,
Qt::ConnectionType  type 
)
static

Definition at line 5207 of file qobject.cpp.

Here is the call graph for this function:

◆ connect() [3/3]

template<typename Func1 , typename Func2 >
QMetaObject::Connection QObjectPrivate::connect ( const typename QtPrivate::FunctionPointer< Func1 >::Object sender,
Func1  signal,
const typename QtPrivate::FunctionPointer< Func2 >::Object receiverPrivate,
Func2  slot,
Qt::ConnectionType  type = Qt::AutoConnection 
)
inlinestatic

Definition at line 533 of file qobject_p.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ connectImpl()

QMetaObject::Connection QObjectPrivate::connectImpl ( const QObject sender,
int  signal_index,
const QObject receiver,
void **  slot,
QtPrivate::QSlotObjectBase slotObj,
int  type,
const int *  types,
const QMetaObject senderMetaObject 
)
static

Definition at line 5015 of file qobject.cpp.

Here is the call graph for this function:

◆ connectNotify()

void QObjectPrivate::connectNotify ( const QMetaMethod signal)
inline

Definition at line 465 of file qobject_p.h.

Here is the call graph for this function:

◆ deleteChildren()

void QObjectPrivate::deleteChildren ( )

Definition at line 2115 of file qobject.cpp.

Here is the call graph for this function:

◆ disconnect() [1/4]

bool QObjectPrivate::disconnect ( QObjectPrivate::Connection c)
static

Definition at line 5279 of file qobject.cpp.

◆ disconnect() [2/4]

bool QObjectPrivate::disconnect ( const QObject sender,
int  signal_index,
const QObject receiver,
void **  slot 
)
static

Definition at line 5265 of file qobject.cpp.

◆ disconnect() [3/4]

bool QObjectPrivate::disconnect ( const QObject sender,
int  signal_index,
void **  slot 
)
static

Definition at line 5248 of file qobject.cpp.

Here is the call graph for this function:

◆ disconnect() [4/4]

template<typename Func1 , typename Func2 >
bool QObjectPrivate::disconnect ( const typename QtPrivate::FunctionPointer< Func1 >::Object sender,
Func1  signal,
const typename QtPrivate::FunctionPointer< Func2 >::Object receiverPrivate,
Func2  slot 
)
inlinestatic

Definition at line 562 of file qobject_p.h.

Here is the caller graph for this function:

◆ disconnectNotify()

void QObjectPrivate::disconnectNotify ( const QMetaMethod signal)
inline

Definition at line 470 of file qobject_p.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ensureConnectionData()

void QObjectPrivate::ensureConnectionData ( )
inline

Definition at line 404 of file qobject_p.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ get() [1/2]

static const QObjectPrivate* QObjectPrivate::get ( const QObject o)
inlinestatic

Definition at line 369 of file qobject_p.h.

Here is the caller graph for this function:

◆ get() [2/2]

static QObjectPrivate* QObjectPrivate::get ( QObject o)
inlinestatic

Definition at line 368 of file qobject_p.h.

Here is the caller graph for this function:

◆ isDeclarativeSignalConnected()

bool QObjectPrivate::isDeclarativeSignalConnected ( uint  signalIdx) const
inline

Definition at line 459 of file qobject_p.h.

Here is the caller graph for this function:

◆ isSender()

bool QObjectPrivate::isSender ( const QObject receiver,
const char *  signal 
) const

Definition at line 249 of file qobject.cpp.

Here is the call graph for this function:

◆ isSignalConnected()

bool QObjectPrivate::isSignalConnected ( uint  signalIdx,
bool  checkDeclarative = true 
) const

Definition at line 460 of file qobject.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ maybeSignalConnected()

bool QObjectPrivate::maybeSignalConnected ( uint  signalIndex) const

Definition at line 486 of file qobject.cpp.

Here is the call graph for this function:

◆ moveToThread_helper()

void QObjectPrivate::moveToThread_helper ( )

Definition at line 1638 of file qobject.cpp.

Here is the call graph for this function:

◆ receiverList()

QObjectList QObjectPrivate::receiverList ( const char *  signal) const

Definition at line 270 of file qobject.cpp.

Here is the call graph for this function:

◆ senderList()

QObjectList QObjectPrivate::senderList ( ) const

Definition at line 291 of file qobject.cpp.

◆ setParent_helper()

void QObjectPrivate::setParent_helper ( QObject o)

Definition at line 2132 of file qobject.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setThreadData_helper()

void QObjectPrivate::setThreadData_helper ( QThreadData currentData,
QThreadData targetData 
)

Definition at line 1649 of file qobject.cpp.

Here is the call graph for this function:

◆ signalIndex()

int QObjectPrivate::signalIndex ( const char *  signalName,
const QMetaObject **  meta = nullptr 
) const

Definition at line 4018 of file qobject.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ 

union { ... }

◆ connections

QAtomicPointer<ConnectionData> QObjectPrivate::connections

Definition at line 423 of file qobject_p.h.

◆ currentChildBeingDeleted

QObject* QObjectPrivate::currentChildBeingDeleted

Definition at line 426 of file qobject_p.h.

◆ declarativeData

QAbstractDeclarativeData* QObjectPrivate::declarativeData

Definition at line 427 of file qobject_p.h.

◆ extraData

ExtraData* QObjectPrivate::extraData
mutable

Definition at line 414 of file qobject_p.h.

◆ sharedRefcount

QAtomicPointer<QtSharedPointer::ExternalRefCountData> QObjectPrivate::sharedRefcount

Definition at line 432 of file qobject_p.h.

◆ threadData

QAtomicPointer<QThreadData> QObjectPrivate::threadData

Definition at line 420 of file qobject_p.h.


The documentation for this class was generated from the following files: