Qt 4.8
Public Functions | Static Public Functions | Public Variables | List of all members
QGraphicsTransformPrivate Class Reference

#include <qgraphicstransform_p.h>

Inheritance diagram for QGraphicsTransformPrivate:
QObjectPrivate QObjectData QDeclarativeTranslatePrivate QGraphicsRotationPrivate QGraphicsScalePrivate

Public Functions

 QGraphicsTransformPrivate ()
 
void setItem (QGraphicsItem *item)
 
- Public Functions inherited from QObjectPrivate
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 updateItem (QGraphicsItem *item)
 
- Static Public Functions inherited from QObjectPrivate
static void clearGuards (QObject *)
 
static QObjectPrivateget (QObject *o)
 
static void resetCurrentSender (QObject *receiver, Sender *currentSender, Sender *previousSender)
 
static SendersetCurrentSender (QObject *receiver, Sender *sender)
 
static void signalSignature (const QMetaMethod &signal, QVarLengthArray< char > *result)
 

Public Variables

QGraphicsItemitem
 
- Public Variables inherited from QObjectPrivate
union {
   QObject *   currentChildBeingDeleted
 
   QAbstractDeclarativeData *   declarativeData
 
}; 
 
quint32 connectedSignals [2]
 
QObjectConnectionListVectorconnectionLists
 
SendercurrentSender
 
QList< QPointer< QObject > > eventFilters
 
ExtraDataextraData
 
QString objectName
 
Connectionsenders
 
QAtomicPointer< QtSharedPointer::ExternalRefCountData > sharedRefcount
 
QThreadDatathreadData
 
void * unused
 
- Public Variables inherited from QObjectData
uint blockSig: 1
 
QObjectList children
 
uint hasGuards: 1
 
uint inEventHandler: 1
 
uint inThreadChangeEvent: 1
 
uint isWidget: 1
 
QMetaObjectmetaObject
 
uint ownObjectName: 1
 
QObjectparent
 
uint pendTimer: 1
 
int postedEvents
 
QObjectq_ptr
 
uint receiveChildEvents: 1
 
uint sendChildEvents: 1
 
uint unused: 22
 
uint wasDeleted: 1
 

Additional Inherited Members

- Public Types inherited from QObjectPrivate
typedef void(* StaticMetaCallFunction) (QObject *, QMetaObject::Call, int, void **)
 

Detailed Description

Definition at line 62 of file qgraphicstransform_p.h.

Constructors and Destructors

◆ QGraphicsTransformPrivate()

QGraphicsTransformPrivate::QGraphicsTransformPrivate ( )
inline

Definition at line 66 of file qgraphicstransform_p.h.

67  : QObjectPrivate(), item(0) {}
QObjectPrivate(int version=QObjectPrivateVersion)
Definition: qobject.cpp:133

Functions

◆ setItem()

void QGraphicsTransformPrivate::setItem ( QGraphicsItem item)

Definition at line 102 of file qgraphicstransform.cpp.

103 {
104  if (item == i)
105  return;
106 
107  if (item) {
109  QGraphicsItemPrivate *d_ptr = item->d_ptr.data();
110 
111  item->prepareGeometryChange();
112  Q_ASSERT(d_ptr->transformData);
114  d_ptr->dirtySceneTransform = 1;
115  item = 0;
116  }
117 
118  item = i;
119 }
QScopedPointer< QGraphicsItemPrivate > d_ptr
T * data() const
Returns the value of the pointer referenced by this object.
#define Q_ASSERT(cond)
Definition: qglobal.h:1823
#define Q_Q(Class)
Definition: qglobal.h:2483
void prepareGeometryChange()
Prepares the item for a geometry change.
QList< QGraphicsTransform * > graphicsTransforms
TransformData * transformData
The QGraphicsTransform class is an abstract base class for building advanced transformations on QGrap...
int removeAll(const T &t)
Removes all occurrences of value in the list and returns the number of entries removed.
Definition: qlist.h:770

◆ updateItem()

void QGraphicsTransformPrivate::updateItem ( QGraphicsItem item)
static

Definition at line 121 of file qgraphicstransform.cpp.

122 {
123  item->prepareGeometryChange();
124  item->d_ptr->dirtySceneTransform = 1;
125 }
QScopedPointer< QGraphicsItemPrivate > d_ptr
void prepareGeometryChange()
Prepares the item for a geometry change.

Properties

◆ item

QGraphicsItem* QGraphicsTransformPrivate::item

Definition at line 69 of file qgraphicstransform_p.h.

Referenced by setItem().


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