Qt 4.8
|
#include <qabstractitemmodel_p.h>
Classes | |
struct | Change |
struct | Persistent |
Public Functions | |
bool | allowMove (const QModelIndex &srcParent, int srcFirst, int srcLast, const QModelIndex &destinationParent, int destinationChild, Qt::Orientation orientation) |
Returns whether a move operation is valid. More... | |
void | columnsAboutToBeInserted (const QModelIndex &parent, int first, int last) |
void | columnsAboutToBeRemoved (const QModelIndex &parent, int first, int last) |
void | columnsInserted (const QModelIndex &parent, int first, int last) |
void | columnsRemoved (const QModelIndex &parent, int first, int last) |
QModelIndex | createIndex (int row, int column, void *data=0) const |
QModelIndex | createIndex (int row, int column, int id) const |
bool | indexValid (const QModelIndex &index) const |
void | invalidatePersistentIndex (const QModelIndex &index) |
void | invalidatePersistentIndexes () |
void | itemsAboutToBeMoved (const QModelIndex &srcParent, int srcFirst, int srcLast, const QModelIndex &destinationParent, int destinationChild, Qt::Orientation) |
void | itemsMoved (const QModelIndex &srcParent, int srcFirst, int srcLast, const QModelIndex &destinationParent, int destinationChild, Qt::Orientation orientation) |
void | movePersistentIndexes (QVector< QPersistentModelIndexData *> indexes, int change, const QModelIndex &parent, Qt::Orientation orientation) |
Moves persistent indexes indexes by amount change. More... | |
QAbstractItemModelPrivate () | |
void | removePersistentIndexData (QPersistentModelIndexData *data) |
void | rowsAboutToBeInserted (const QModelIndex &parent, int first, int last) |
void | rowsAboutToBeRemoved (const QModelIndex &parent, int first, int last) |
void | rowsInserted (const QModelIndex &parent, int first, int last) |
void | rowsRemoved (const QModelIndex &parent, int first, int last) |
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 const QHash< int, QByteArray > & | defaultRoleNames () |
static QAbstractItemModel * | staticEmptyModel () |
static bool | variantLessThan (const QVariant &v1, const QVariant &v2) |
This function is used by our Q{Tree,Widget,Table}WidgetModel classes to sort. More... | |
Static Public Functions inherited from QObjectPrivate | |
static void | clearGuards (QObject *) |
static QObjectPrivate * | get (QObject *o) |
static void | resetCurrentSender (QObject *receiver, Sender *currentSender, Sender *previousSender) |
static Sender * | setCurrentSender (QObject *receiver, Sender *sender) |
static void | signalSignature (const QMetaMethod &signal, QVarLengthArray< char > *result) |
Public Variables | |
QStack< Change > | changes |
struct QAbstractItemModelPrivate::Persistent | persistent |
QHash< int, QByteArray > | roleNames |
Qt::DropActions | supportedDragActions |
Public Variables inherited from QObjectPrivate | |
union { | |
QObject * currentChildBeingDeleted | |
QAbstractDeclarativeData * declarativeData | |
}; | |
quint32 | connectedSignals [2] |
QObjectConnectionListVector * | connectionLists |
Sender * | currentSender |
QList< QPointer< QObject > > | eventFilters |
ExtraData * | extraData |
QString | objectName |
Connection * | senders |
QAtomicPointer< QtSharedPointer::ExternalRefCountData > | sharedRefcount |
QThreadData * | threadData |
void * | unused |
Public Variables inherited from QObjectData | |
uint | blockSig: 1 |
QObjectList | children |
uint | hasGuards: 1 |
uint | inEventHandler: 1 |
uint | inThreadChangeEvent: 1 |
uint | isWidget: 1 |
QMetaObject * | metaObject |
uint | ownObjectName: 1 |
QObject * | parent |
uint | pendTimer: 1 |
int | postedEvents |
QObject * | q_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 **) |
Definition at line 76 of file qabstractitemmodel_p.h.
|
inline |
Definition at line 81 of file qabstractitemmodel_p.h.
bool QAbstractItemModelPrivate::allowMove | ( | const QModelIndex & | srcParent, |
int | start, | ||
int | end, | ||
const QModelIndex & | destinationParent, | ||
int | destinationStart, | ||
Qt::Orientation | orientation | ||
) |
Returns whether a move operation is valid.
A move operation is not allowed if it moves a continuous range of rows to a destination within itself, or if it attempts to move a row to one of its own descendants.
Definition at line 2683 of file qabstractitemmodel.cpp.
void QAbstractItemModelPrivate::columnsAboutToBeInserted | ( | const QModelIndex & | parent, |
int | first, | ||
int | last | ||
) |
Definition at line 809 of file qabstractitemmodel.cpp.
void QAbstractItemModelPrivate::columnsAboutToBeRemoved | ( | const QModelIndex & | parent, |
int | first, | ||
int | last | ||
) |
Definition at line 846 of file qabstractitemmodel.cpp.
void QAbstractItemModelPrivate::columnsInserted | ( | const QModelIndex & | parent, |
int | first, | ||
int | last | ||
) |
Definition at line 827 of file qabstractitemmodel.cpp.
void QAbstractItemModelPrivate::columnsRemoved | ( | const QModelIndex & | parent, |
int | first, | ||
int | last | ||
) |
Definition at line 877 of file qabstractitemmodel.cpp.
|
inline |
Definition at line 99 of file qabstractitemmodel_p.h.
|
inline |
Definition at line 103 of file qabstractitemmodel_p.h.
|
static |
Definition at line 523 of file qabstractitemmodel.cpp.
|
inline |
Definition at line 107 of file qabstractitemmodel_p.h.
|
inline |
Definition at line 124 of file qabstractitemmodel_p.h.
|
inline |
Definition at line 111 of file qabstractitemmodel_p.h.
void QAbstractItemModelPrivate::itemsAboutToBeMoved | ( | const QModelIndex & | srcParent, |
int | srcFirst, | ||
int | srcLast, | ||
const QModelIndex & | destinationParent, | ||
int | destinationChild, | ||
Qt::Orientation | orientation | ||
) |
Definition at line 638 of file qabstractitemmodel.cpp.
void QAbstractItemModelPrivate::itemsMoved | ( | const QModelIndex & | srcParent, |
int | srcFirst, | ||
int | srcLast, | ||
const QModelIndex & | destinationParent, | ||
int | destinationChild, | ||
Qt::Orientation | orientation | ||
) |
Definition at line 734 of file qabstractitemmodel.cpp.
void QAbstractItemModelPrivate::movePersistentIndexes | ( | QVector< QPersistentModelIndexData *> | indexes, |
int | change, | ||
const QModelIndex & | parent, | ||
Qt::Orientation | orientation | ||
) |
Moves persistent indexes indexes by amount change.
The change will be either a change in row value or a change in column value depending on the value of orientation. The indexes may also be moved to a different parent if parent differs from the existing parent for the index.
Definition at line 706 of file qabstractitemmodel.cpp.
void QAbstractItemModelPrivate::removePersistentIndexData | ( | QPersistentModelIndexData * | data | ) |
Definition at line 575 of file qabstractitemmodel.cpp.
Referenced by QPersistentModelIndexData::destroy().
void QAbstractItemModelPrivate::rowsAboutToBeInserted | ( | const QModelIndex & | parent, |
int | first, | ||
int | last | ||
) |
Definition at line 600 of file qabstractitemmodel.cpp.
void QAbstractItemModelPrivate::rowsAboutToBeRemoved | ( | const QModelIndex & | parent, |
int | first, | ||
int | last | ||
) |
Definition at line 752 of file qabstractitemmodel.cpp.
void QAbstractItemModelPrivate::rowsInserted | ( | const QModelIndex & | parent, |
int | first, | ||
int | last | ||
) |
Definition at line 619 of file qabstractitemmodel.cpp.
void QAbstractItemModelPrivate::rowsRemoved | ( | const QModelIndex & | parent, |
int | first, | ||
int | last | ||
) |
Definition at line 782 of file qabstractitemmodel.cpp.
|
static |
Definition at line 502 of file qabstractitemmodel.cpp.
Referenced by QDataWidgetMapperPrivate::_q_modelDestroyed(), QAbstractItemViewPrivate::_q_modelDestroyed(), QComboBoxPrivate::_q_modelDestroyed(), QAbstractProxyModelPrivate::_q_sourceModelDestroyed(), QDataWidgetMapper::model(), QAbstractItemView::model(), QComboBox::model(), QAbstractProxyModel::QAbstractProxyModel(), QTableView::setModel(), QTreeView::setModel(), QHeaderView::setModel(), QAbstractItemView::setModel(), QAbstractProxyModel::setSourceModel(), and QAbstractProxyModel::sourceModel().
This function is used by our Q{Tree,Widget,Table}WidgetModel classes to sort.
Definition at line 562 of file qabstractitemmodel.cpp.
Referenced by QListWidgetItem::operator<(), QTableWidgetItem::operator<(), and QTreeWidgetItem::operator<().
Definition at line 158 of file qabstractitemmodel_p.h.
struct QAbstractItemModelPrivate::Persistent QAbstractItemModelPrivate::persistent |
QHash<int,QByteArray> QAbstractItemModelPrivate::roleNames |
Definition at line 170 of file qabstractitemmodel_p.h.
Qt::DropActions QAbstractItemModelPrivate::supportedDragActions |
Definition at line 168 of file qabstractitemmodel_p.h.