![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <qabstractitemmodel_p.h>
Classes | |
| struct | Change |
| struct | Persistent |
Static Public Member Functions | |
| static const QAbstractItemModelPrivate * | get (const QAbstractItemModel *model) |
| static QAbstractItemModel * | staticEmptyModel () |
| static const QHash< int, QByteArray > & | defaultRoleNames () |
| Static Public Member Functions inherited from QObjectPrivate | |
| static bool | removeConnection (Connection *c) |
| static QObjectPrivate * | get (QObject *o) |
| static const QObjectPrivate * | get (const QObject *o) |
| template<typename Func1, typename Func2> | |
| static QMetaObject::Connection | connect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiverPrivate, Func2 slot, Qt::ConnectionType type=Qt::AutoConnection) |
| template<typename Func1, typename Func2> | |
| static bool | disconnect (const typename QtPrivate::FunctionPointer< Func1 >::Object *sender, Func1 signal, const typename QtPrivate::FunctionPointer< Func2 >::Object *receiverPrivate, Func2 slot) |
| static QMetaObject::Connection | connectImpl (const QObject *sender, int signal_index, const QObject *receiver, void **slot, QtPrivate::QSlotObjectBase *slotObj, int type, const int *types, const QMetaObject *senderMetaObject) |
| static QMetaObject::Connection | connect (const QObject *sender, int signal_index, QtPrivate::QSlotObjectBase *slotObj, Qt::ConnectionType type) |
| static QMetaObject::Connection | connect (const QObject *sender, int signal_index, const QObject *receiver, QtPrivate::QSlotObjectBase *slotObj, Qt::ConnectionType type) |
| static bool | disconnect (const QObject *sender, int signal_index, void **slot) |
| static bool | disconnect (const QObject *sender, int signal_index, const QObject *receiver, void **slot) |
Additional Inherited Members | |
| Public Types inherited from QObjectPrivate | |
| typedef void(* | StaticMetaCallFunction) (QObject *, QMetaObject::Call, int, void **) |
| using | ConnectionDataPointer = QExplicitlySharedDataPointer<ConnectionData> |
Definition at line 61 of file qabstractitemmodel_p.h.
| QAbstractItemModelPrivate::QAbstractItemModelPrivate | ( | ) |
Definition at line 710 of file qabstractitemmodel.cpp.
| QAbstractItemModelPrivate::~QAbstractItemModelPrivate | ( | ) |
Definition at line 715 of file qabstractitemmodel.cpp.
| 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 3048 of file qabstractitemmodel.cpp.
| void QAbstractItemModelPrivate::columnsAboutToBeInserted | ( | const QModelIndex & | parent, |
| int | first, | ||
| int | last ) |
Definition at line 1104 of file qabstractitemmodel.cpp.
| void QAbstractItemModelPrivate::columnsAboutToBeRemoved | ( | const QModelIndex & | parent, |
| int | first, | ||
| int | last ) |
Definition at line 1137 of file qabstractitemmodel.cpp.
| void QAbstractItemModelPrivate::columnsInserted | ( | const QModelIndex & | parent, |
| int | first, | ||
| int | last ) |
Definition at line 1120 of file qabstractitemmodel.cpp.
| void QAbstractItemModelPrivate::columnsRemoved | ( | const QModelIndex & | parent, |
| int | first, | ||
| int | last ) |
Definition at line 1166 of file qabstractitemmodel.cpp.
|
inline |
Definition at line 97 of file qabstractitemmodel_p.h.
|
inline |
Definition at line 93 of file qabstractitemmodel_p.h.
|
static |
Definition at line 756 of file qabstractitemmodel.cpp.
| bool QAbstractItemModelPrivate::dropOnItem | ( | const QModelIndex & | index, |
| QDataStream & | stream ) |
Definition at line 4092 of file qabstractitemmodel.cpp.
|
virtual |
see QTBUG-94546
Reimplemented in QTreeModelPrivate.
Definition at line 3078 of file qabstractitemmodel.cpp.
|
inlinestatic |
Definition at line 69 of file qabstractitemmodel_p.h.
|
inline |
Definition at line 101 of file qabstractitemmodel_p.h.
| void QAbstractItemModelPrivate::invalidatePersistentIndex | ( | const QModelIndex & | index | ) |
Clean the QPersistentModelIndex relative to the index if there is one. To be used before an index is invalided
Definition at line 736 of file qabstractitemmodel.cpp.
| void QAbstractItemModelPrivate::invalidatePersistentIndexes | ( | ) |
Definition at line 724 of file qabstractitemmodel.cpp.
| void QAbstractItemModelPrivate::itemsAboutToBeMoved | ( | const QModelIndex & | srcParent, |
| int | srcFirst, | ||
| int | srcLast, | ||
| const QModelIndex & | destinationParent, | ||
| int | destinationChild, | ||
| Qt::Orientation | orientation ) |
Definition at line 952 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 1034 of file qabstractitemmodel.cpp.
| void QAbstractItemModelPrivate::movePersistentIndexes | ( | const QList< 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 1012 of file qabstractitemmodel.cpp.
| void QAbstractItemModelPrivate::removePersistentIndexData | ( | QPersistentModelIndexData * | data | ) |
Definition at line 893 of file qabstractitemmodel.cpp.
| void QAbstractItemModelPrivate::rowsAboutToBeInserted | ( | const QModelIndex & | parent, |
| int | first, | ||
| int | last ) |
Definition at line 918 of file qabstractitemmodel.cpp.
| void QAbstractItemModelPrivate::rowsAboutToBeRemoved | ( | const QModelIndex & | parent, |
| int | first, | ||
| int | last ) |
Definition at line 1052 of file qabstractitemmodel.cpp.
| void QAbstractItemModelPrivate::rowsInserted | ( | const QModelIndex & | parent, |
| int | first, | ||
| int | last ) |
Definition at line 935 of file qabstractitemmodel.cpp.
| void QAbstractItemModelPrivate::rowsRemoved | ( | const QModelIndex & | parent, |
| int | first, | ||
| int | last ) |
Definition at line 1080 of file qabstractitemmodel.cpp.
|
static |
Definition at line 719 of file qabstractitemmodel.cpp.
Return {true} if value contains a numerical type.
This function is used by our Q{Tree,Widget,Table}WidgetModel classes to sort.
Definition at line 880 of file qabstractitemmodel.cpp.
Definition at line 132 of file qabstractitemmodel_p.h.
| struct QAbstractItemModelPrivate::Persistent QAbstractItemModelPrivate::persistent |
| bool QAbstractItemModelPrivate::resetting = false |
Definition at line 142 of file qabstractitemmodel_p.h.