42 #ifndef QDECLARATIVEGUARD_P_H 43 #define QDECLARATIVEGUARD_P_H 56 #include <QtCore/qglobal.h> 57 #include <QtCore/qvariant.h> 58 #include <private/qdeclarativedata_p.h> 92 inline T *object()
const;
93 inline void setObject(T *g);
99 {
return static_cast<T*
>(
const_cast<QObject*
>(
o)); }
101 {
return *
static_cast<T*
>(
const_cast<QObject*
>(
o)); }
102 inline operator T*()
const 103 {
return static_cast<T*
>(
const_cast<QObject*
>(
o)); }
105 {
return static_cast<T*
>(
const_cast<QObject*
>(
o)); }
197 return static_cast<T *
>(
o);
214 #endif // QDECLARATIVEGUARD_P_H
static QDeclarativeData * get(const QObject *object, bool create=false)
#define QT_END_NAMESPACE
This macro expands to.
virtual ~QDeclarativeGuard()
The QObject class is the base class of all Qt objects.
static QObjectPrivate * get(QObject *o)
QDeclarativeGuard< T > & operator=(const QDeclarativeGuard< T > &o)
QDeclarativeGuardImpl ** prev
#define QT_BEGIN_NAMESPACE
This macro expands to.
static const char * data(const QByteArray &arr)
QDeclarativeGuardImpl * next
virtual void objectDestroyed(T *)
QDeclarativeGuardImpl * guards