Qt 4.8
|
#include <qabstractitemmodel_p.h>
Public Functions | |
void | insertMultiAtEnd (const QModelIndex &key, QPersistentModelIndexData *data) |
QHash::insertMulti insert the value before the old value. More... | |
Persistent () | |
Public Variables | |
QHash< QModelIndex, QPersistentModelIndexData * > | indexes |
QStack< QVector< QPersistentModelIndexData * > > | invalidated |
QStack< QVector< QPersistentModelIndexData * > > | moved |
Definition at line 160 of file qabstractitemmodel_p.h.
|
inline |
Definition at line 161 of file qabstractitemmodel_p.h.
void QAbstractItemModelPrivate::Persistent::insertMultiAtEnd | ( | const QModelIndex & | key, |
QPersistentModelIndexData * | data | ||
) |
QHash::insertMulti insert the value before the old value.
There should be only one instance QPersistentModelIndexData per index, but in some intermediate state there may be severals of PersistantModelIndex pointing to the same index, but one is already updated, and the other one is not. This make sure than when updating the first one we don't overwrite the second one in the hash, and the second one will be updated right later.
Definition at line 3698 of file qabstractitemmodel.cpp.
QHash<QModelIndex, QPersistentModelIndexData *> QAbstractItemModelPrivate::Persistent::indexes |
Definition at line 162 of file qabstractitemmodel_p.h.
QStack<QVector<QPersistentModelIndexData *> > QAbstractItemModelPrivate::Persistent::invalidated |
Definition at line 164 of file qabstractitemmodel_p.h.
QStack<QVector<QPersistentModelIndexData *> > QAbstractItemModelPrivate::Persistent::moved |
Definition at line 163 of file qabstractitemmodel_p.h.