Qt 4.8
Classes | Public Functions | Static Public Functions | Public Variables | List of all members
QDeclarativeVisualItemModelPrivate Class Reference
Inheritance diagram for QDeclarativeVisualItemModelPrivate:
QObjectPrivate QObjectData

Classes

class  Item
 

Public Functions

void emitChildrenChanged ()
 
int indexOf (QDeclarativeItem *item) const
 
void itemAppended ()
 
 QDeclarativeVisualItemModelPrivate ()
 
- 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 children_append (QDeclarativeListProperty< QDeclarativeItem > *prop, QDeclarativeItem *item)
 
static QDeclarativeItemchildren_at (QDeclarativeListProperty< QDeclarativeItem > *prop, int index)
 
static int children_count (QDeclarativeListProperty< QDeclarativeItem > *prop)
 
- 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

QList< Itemchildren
 
- 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 73 of file qdeclarativevisualitemmodel.cpp.

Constructors and Destructors

◆ QDeclarativeVisualItemModelPrivate()

QDeclarativeVisualItemModelPrivate::QDeclarativeVisualItemModelPrivate ( )
inline

Definition at line 77 of file qdeclarativevisualitemmodel.cpp.

77 : QObjectPrivate() {}
QObjectPrivate(int version=QObjectPrivateVersion)
Definition: qobject.cpp:133

Functions

◆ children_append()

static void QDeclarativeVisualItemModelPrivate::children_append ( QDeclarativeListProperty< QDeclarativeItem > *  prop,
QDeclarativeItem item 
)
inlinestatic

Definition at line 79 of file qdeclarativevisualitemmodel.cpp.

79  {
81  static_cast<QDeclarativeVisualItemModelPrivate *>(prop->data)->children.append(Item(item));
82  static_cast<QDeclarativeVisualItemModelPrivate *>(prop->data)->itemAppended();
84  }
void append(const T &t)
Inserts value at the end of the list.
Definition: qlist.h:507
The Item is the most basic of all visual items in QML.
void QDeclarative_setParent_noEvent(QObject *object, QObject *parent)
Makes the object a child of parent.

◆ children_at()

static QDeclarativeItem* QDeclarativeVisualItemModelPrivate::children_at ( QDeclarativeListProperty< QDeclarativeItem > *  prop,
int  index 
)
inlinestatic

Definition at line 90 of file qdeclarativevisualitemmodel.cpp.

90  {
91  return static_cast<QDeclarativeVisualItemModelPrivate *>(prop->data)->children.at(index).item;
92  }
const T & at(int i) const
Returns the item at index position i in the list.
Definition: qlist.h:468
quint16 index

◆ children_count()

static int QDeclarativeVisualItemModelPrivate::children_count ( QDeclarativeListProperty< QDeclarativeItem > *  prop)
inlinestatic

Definition at line 86 of file qdeclarativevisualitemmodel.cpp.

86  {
87  return static_cast<QDeclarativeVisualItemModelPrivate *>(prop->data)->children.count();
88  }
int count(const T &t) const
Returns the number of occurrences of value in the list.
Definition: qlist.h:891

◆ emitChildrenChanged()

void QDeclarativeVisualItemModelPrivate::emitChildrenChanged ( )
inline

Definition at line 102 of file qdeclarativevisualitemmodel.cpp.

Referenced by children_append().

102  {
104  emit q->childrenChanged();
105  }
#define Q_Q(Class)
Definition: qglobal.h:2483
#define emit
Definition: qobjectdefs.h:76

◆ indexOf()

int QDeclarativeVisualItemModelPrivate::indexOf ( QDeclarativeItem item) const
inline

Definition at line 107 of file qdeclarativevisualitemmodel.cpp.

107  {
108  for (int i = 0; i < children.count(); ++i)
109  if (children.at(i).item == item)
110  return i;
111  return -1;
112  }
int count(const T &t) const
Returns the number of occurrences of value in the list.
Definition: qlist.h:891
const T & at(int i) const
Returns the item at index position i in the list.
Definition: qlist.h:468

◆ itemAppended()

void QDeclarativeVisualItemModelPrivate::itemAppended ( )
inline

Definition at line 94 of file qdeclarativevisualitemmodel.cpp.

Referenced by children_append().

94  {
97  attached->setIndex(children.count()-1);
98  emit q->itemsInserted(children.count()-1, 1);
99  emit q->countChanged();
100  }
int count(const T &t) const
Returns the number of occurrences of value in the list.
Definition: qlist.h:891
#define Q_Q(Class)
Definition: qglobal.h:2483
#define emit
Definition: qobjectdefs.h:76
T & last()
Returns a reference to the last item in the list.
Definition: qlist.h:284
static QDeclarativeVisualItemModelAttached * properties(QObject *obj)

Properties

◆ children

QList<Item> QDeclarativeVisualItemModelPrivate::children

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