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

#include <qgraphicsanchorlayout_p.h>

Inheritance diagram for QGraphicsAnchorPrivate:
QObjectPrivate QObjectData

Public Functions

 QGraphicsAnchorPrivate (int version=QObjectPrivateVersion)
 
void setSizePolicy (QSizePolicy::Policy policy)
 
void setSpacing (qreal value)
 
qreal spacing () const
 
void unsetSpacing ()
 
 ~QGraphicsAnchorPrivate ()
 
- 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
 

Public Variables

AnchorDatadata
 
uint hasSize: 1
 
QGraphicsAnchorLayoutPrivatelayoutPrivate
 
qreal preferredSize
 
QSizePolicy::Policy sizePolicy
 
- 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 **)
 
- 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)
 

Detailed Description

Warning
This function is not part of the public interface.

Definition at line 341 of file qgraphicsanchorlayout_p.h.

Constructors and Destructors

◆ QGraphicsAnchorPrivate()

QGraphicsAnchorPrivate::QGraphicsAnchorPrivate ( int  version = QObjectPrivateVersion)
explicit

Definition at line 64 of file qgraphicsanchorlayout_p.cpp.

65  : QObjectPrivate(version), layoutPrivate(0), data(0),
67  hasSize(true)
68 {
69 }
QGraphicsAnchorLayoutPrivate * layoutPrivate
QObjectPrivate(int version=QObjectPrivateVersion)
Definition: qobject.cpp:133
QSizePolicy::Policy sizePolicy

◆ ~QGraphicsAnchorPrivate()

QGraphicsAnchorPrivate::~QGraphicsAnchorPrivate ( )

Definition at line 71 of file qgraphicsanchorlayout_p.cpp.

72 {
73  if (data) {
74  // The QGraphicsAnchor was already deleted at this moment. We must clean
75  // the dangling pointer to avoid double deletion in the AnchorData dtor.
76  data->graphicsAnchor = 0;
77 
79  }
80 }
QGraphicsAnchor * graphicsAnchor
QGraphicsAnchorLayoutPrivate * layoutPrivate
AnchorVertex * to
AnchorVertex * from
void removeAnchor(AnchorVertex *firstVertex, AnchorVertex *secondVertex)

Functions

◆ setSizePolicy()

void QGraphicsAnchorPrivate::setSizePolicy ( QSizePolicy::Policy  policy)

Definition at line 82 of file qgraphicsanchorlayout_p.cpp.

83 {
84  if (sizePolicy != policy) {
85  sizePolicy = policy;
86  layoutPrivate->q_func()->invalidate();
87  }
88 }
QGraphicsAnchorLayoutPrivate * layoutPrivate
QSizePolicy::Policy sizePolicy

◆ setSpacing()

void QGraphicsAnchorPrivate::setSpacing ( qreal  value)

Definition at line 90 of file qgraphicsanchorlayout_p.cpp.

91 {
92  if (!data) {
93  qWarning("QGraphicsAnchor::setSpacing: The anchor does not exist.");
94  return;
95  }
96 
97  if (hasSize && (preferredSize == value))
98  return;
99 
100  // The anchor has an user-defined size
101  hasSize = true;
102  preferredSize = value;
103 
104  layoutPrivate->q_func()->invalidate();
105 }
QGraphicsAnchorLayoutPrivate * layoutPrivate
Q_CORE_EXPORT void qWarning(const char *,...)

◆ spacing()

qreal QGraphicsAnchorPrivate::spacing ( ) const

Definition at line 120 of file qgraphicsanchorlayout_p.cpp.

121 {
122  if (!data) {
123  qWarning("QGraphicsAnchor::setSpacing: The anchor does not exist.");
124  return 0;
125  }
126 
127  return preferredSize;
128 }
Q_CORE_EXPORT void qWarning(const char *,...)

◆ unsetSpacing()

void QGraphicsAnchorPrivate::unsetSpacing ( )

Definition at line 107 of file qgraphicsanchorlayout_p.cpp.

108 {
109  if (!data) {
110  qWarning("QGraphicsAnchor::setSpacing: The anchor does not exist.");
111  return;
112  }
113 
114  // Return to standard direction
115  hasSize = false;
116 
117  layoutPrivate->q_func()->invalidate();
118 }
QGraphicsAnchorLayoutPrivate * layoutPrivate
Q_CORE_EXPORT void qWarning(const char *,...)

Properties

◆ data

AnchorData* QGraphicsAnchorPrivate::data

◆ hasSize

uint QGraphicsAnchorPrivate::hasSize

◆ layoutPrivate

QGraphicsAnchorLayoutPrivate* QGraphicsAnchorPrivate::layoutPrivate

◆ preferredSize

qreal QGraphicsAnchorPrivate::preferredSize

Definition at line 360 of file qgraphicsanchorlayout_p.h.

Referenced by AnchorData::refreshSizeHints(), setSpacing(), and spacing().

◆ sizePolicy

QSizePolicy::Policy QGraphicsAnchorPrivate::sizePolicy

Definition at line 359 of file qgraphicsanchorlayout_p.h.

Referenced by AnchorData::refreshSizeHints(), and setSizePolicy().


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