Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QAbstractItemModelTesterPrivate Class Reference
+ Inheritance diagram for QAbstractItemModelTesterPrivate:
+ Collaboration diagram for QAbstractItemModelTesterPrivate:

Public Member Functions

 QAbstractItemModelTesterPrivate (QAbstractItemModel *model, QAbstractItemModelTester::FailureReportingMode failureReportingMode)
 
void nonDestructiveBasicTest ()
 
void rowAndColumnCount ()
 
void hasIndex ()
 
void index ()
 
void parent ()
 
void data ()
 
void runAllTests ()
 
void layoutAboutToBeChanged ()
 
void layoutChanged ()
 
void modelAboutToBeReset ()
 
void modelReset ()
 
void columnsAboutToBeInserted (const QModelIndex &parent, int first, int last)
 
void columnsInserted (const QModelIndex &parent, int first, int last)
 
void columnsAboutToBeMoved (const QModelIndex &sourceParent, int sourceStart, int sourceEnd, const QModelIndex &destinationParent, int destinationColumn)
 
void columnsMoved (const QModelIndex &parent, int start, int end, const QModelIndex &destination, int column)
 
void columnsAboutToBeRemoved (const QModelIndex &parent, int first, int last)
 
void columnsRemoved (const QModelIndex &parent, int first, int last)
 
void rowsAboutToBeInserted (const QModelIndex &parent, int start, int end)
 
void rowsInserted (const QModelIndex &parent, int start, int end)
 
void rowsAboutToBeMoved (const QModelIndex &sourceParent, int sourceStart, int sourceEnd, const QModelIndex &destinationParent, int destinationRow)
 
void rowsMoved (const QModelIndex &parent, int start, int end, const QModelIndex &destination, int row)
 
void rowsAboutToBeRemoved (const QModelIndex &parent, int start, int end)
 
void rowsRemoved (const QModelIndex &parent, int start, int end)
 
void dataChanged (const QModelIndex &topLeft, const QModelIndex &bottomRight)
 
void headerDataChanged (Qt::Orientation orientation, int start, int end)
 
- Public Member Functions inherited from QObjectPrivate
void ensureExtraData ()
 
 QObjectPrivate (int version=QObjectPrivateVersion)
 
virtual ~QObjectPrivate ()
 
void deleteChildren ()
 
void clearBindingStorage ()
 
void checkForIncompatibleLibraryVersion (int version) const
 
void setParent_helper (QObject *)
 
void moveToThread_helper ()
 
void setThreadData_helper (QThreadData *currentData, QThreadData *targetData, QBindingStatus *status)
 
QObjectList receiverList (const char *signal) const
 
void ensureConnectionData ()
 
void addConnection (int signal, Connection *c)
 
int signalIndex (const char *signalName, const QMetaObject **meta=nullptr) const
 
bool isSignalConnected (uint signalIdx, bool checkDeclarative=true) const
 
bool maybeSignalConnected (uint signalIndex) const
 
bool isDeclarativeSignalConnected (uint signalIdx) const
 
void connectNotify (const QMetaMethod &signal)
 
void disconnectNotify (const QMetaMethod &signal)
 
void reinitBindingStorageAfterThreadMove ()
 
virtual std::string flagsForDumping () const
 
virtual void writeToDebugStream (QDebug &) const
 
QtPrivate::QPropertyAdaptorSlotObjectgetPropertyAdaptorSlotObject (const QMetaProperty &property)
 
- Public Member Functions inherited from QObjectData
 QObjectData ()=default
 
virtual ~QObjectData ()=0
 
QMetaObjectdynamicMetaObject () const
 

Additional Inherited Members

- Public Types inherited from QObjectPrivate
typedef void(* StaticMetaCallFunction) (QObject *, QMetaObject::Call, int, void **)
 
using ConnectionDataPointer = QExplicitlySharedDataPointer<ConnectionData>
 
- Static Public Member Functions inherited from QObjectPrivate
static bool removeConnection (Connection *c)
 
static QObjectPrivateget (QObject *o)
 
static const QObjectPrivateget (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)
 
- Public Attributes inherited from QObjectPrivate
ExtraDataextraData
 
QAtomicPointer< QThreadDatathreadData
 
QAtomicPointer< ConnectionDataconnections
 
union { 
 
   QObject *   currentChildBeingDeleted 
 
   QAbstractDeclarativeData *   declarativeData 
 
};  
 
QAtomicPointer< QtSharedPointer::ExternalRefCountDatasharedRefcount
 
- Public Attributes inherited from QObjectData
QObjectq_ptr
 
QObjectparent
 
QObjectList children
 
uint isWidget: 1
 
uint blockSig: 1
 
uint wasDeleted: 1
 
uint isDeletingChildren: 1
 
uint sendChildEvents: 1
 
uint receiveChildEvents: 1
 
uint isWindow: 1
 
uint deleteLaterCalled: 1
 
uint isQuickItem: 1
 
uint willBeWidget: 1
 
uint wasWidget: 1
 
uint receiveParentEvents: 1
 
uint unused: 20
 
QAtomicInt postedEvents
 
QDynamicMetaObjectDatametaObject
 
QBindingStorage bindingStorage
 

Detailed Description

Definition at line 31 of file qabstractitemmodeltester.cpp.

Constructor & Destructor Documentation

◆ QAbstractItemModelTesterPrivate()

QAbstractItemModelTesterPrivate::QAbstractItemModelTesterPrivate ( QAbstractItemModel * model,
QAbstractItemModelTester::FailureReportingMode failureReportingMode )

Definition at line 339 of file qabstractitemmodeltester.cpp.

Member Function Documentation

◆ columnsAboutToBeInserted()

void QAbstractItemModelTesterPrivate::columnsAboutToBeInserted ( const QModelIndex & parent,
int first,
int last )

Definition at line 678 of file qabstractitemmodeltester.cpp.

References QAbstractItemModel::data(), QAbstractItemModel::index(), MODELTESTER_COMPARE, parent(), qCDebug, and QAbstractItemModel::rowCount().

+ Here is the call graph for this function:

◆ columnsAboutToBeMoved()

void QAbstractItemModelTesterPrivate::columnsAboutToBeMoved ( const QModelIndex & sourceParent,
int sourceStart,
int sourceEnd,
const QModelIndex & destinationParent,
int destinationColumn )

Definition at line 704 of file qabstractitemmodeltester.cpp.

References QAbstractItemModel::data(), MODELTESTER_COMPARE, and qCDebug.

+ Here is the call graph for this function:

◆ columnsAboutToBeRemoved()

void QAbstractItemModelTesterPrivate::columnsAboutToBeRemoved ( const QModelIndex & parent,
int first,
int last )

Definition at line 736 of file qabstractitemmodeltester.cpp.

References QAbstractItemModel::data(), QAbstractItemModel::index(), MODELTESTER_COMPARE, parent(), qCDebug, and QAbstractItemModel::rowCount().

+ Here is the call graph for this function:

◆ columnsInserted()

void QAbstractItemModelTesterPrivate::columnsInserted ( const QModelIndex & parent,
int first,
int last )

Definition at line 692 of file qabstractitemmodeltester.cpp.

References QAbstractItemModel::data(), MODELTESTER_COMPARE, parent(), qCDebug, and QAbstractItemModel::rowCount().

+ Here is the call graph for this function:

◆ columnsMoved()

void QAbstractItemModelTesterPrivate::columnsMoved ( const QModelIndex & parent,
int start,
int end,
const QModelIndex & destination,
int column )

Definition at line 720 of file qabstractitemmodeltester.cpp.

References QAbstractItemModel::data(), MODELTESTER_COMPARE, and qCDebug.

+ Here is the call graph for this function:

◆ columnsRemoved()

void QAbstractItemModelTesterPrivate::columnsRemoved ( const QModelIndex & parent,
int first,
int last )

Definition at line 750 of file qabstractitemmodeltester.cpp.

References QAbstractItemModel::data(), MODELTESTER_COMPARE, parent(), qCDebug, and QAbstractItemModel::rowCount().

+ Here is the call graph for this function:

◆ data()

void QAbstractItemModelTesterPrivate::data ( )

Definition at line 629 of file qabstractitemmodeltester.cpp.

References Qt::AlignHorizontal_Mask, alignment, Qt::AlignVertical_Mask, QVariant::canConvert(), Qt::Checked, Qt::CheckStateRole, QAbstractItemModel::columnCount(), QAbstractItemModel::data(), Qt::DisplayRole, QAbstractItemModel::index(), QVariant::isValid(), MODELTESTER_COMPARE, MODELTESTER_VERIFY, Qt::PartiallyChecked, QAbstractItemModel::rowCount(), Qt::SizeHintRole, state, Qt::StatusTipRole, QTestPrivate::testDataGuiRoles(), Qt::TextAlignmentRole, Qt::ToolTipRole, Qt::Unchecked, variant, and Qt::WhatsThisRole.

Referenced by runAllTests().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ dataChanged()

void QAbstractItemModelTesterPrivate::dataChanged ( const QModelIndex & topLeft,
const QModelIndex & bottomRight )

Definition at line 946 of file qabstractitemmodeltester.cpp.

References QModelIndex::column(), QAbstractItemModel::columnCount(), QModelIndex::isValid(), MODELTESTER_COMPARE, MODELTESTER_VERIFY, QModelIndex::parent(), QModelIndex::row(), and QAbstractItemModel::rowCount().

+ Here is the call graph for this function:

◆ hasIndex()

void QAbstractItemModelTesterPrivate::hasIndex ( )

Definition at line 432 of file qabstractitemmodeltester.cpp.

References QAbstractItemModel::columnCount(), QAbstractItemModel::hasIndex(), MODELTESTER_VERIFY, and QAbstractItemModel::rowCount().

Referenced by runAllTests().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ headerDataChanged()

void QAbstractItemModelTesterPrivate::headerDataChanged ( Qt::Orientation orientation,
int start,
int end )

Definition at line 960 of file qabstractitemmodeltester.cpp.

References QAbstractItemModel::columnCount(), MODELTESTER_VERIFY, QAbstractItemModel::rowCount(), and Qt::Vertical.

+ Here is the call graph for this function:

◆ index()

void QAbstractItemModelTesterPrivate::index ( )

Definition at line 456 of file qabstractitemmodeltester.cpp.

References QAbstractItemModel::columnCount(), QAbstractItemModel::index(), MODELTESTER_COMPARE, MODELTESTER_VERIFY, and QAbstractItemModel::rowCount().

Referenced by runAllTests().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ layoutAboutToBeChanged()

void QAbstractItemModelTesterPrivate::layoutAboutToBeChanged ( )

Definition at line 856 of file qabstractitemmodeltester.cpp.

References QList< T >::append(), i, QAbstractItemModel::index(), MODELTESTER_COMPARE, qBound(), and QAbstractItemModel::rowCount().

+ Here is the call graph for this function:

◆ layoutChanged()

void QAbstractItemModelTesterPrivate::layoutChanged ( )

Definition at line 865 of file qabstractitemmodeltester.cpp.

References QList< T >::clear(), i, QAbstractItemModel::index(), MODELTESTER_COMPARE, and QList< T >::size().

+ Here is the call graph for this function:

◆ modelAboutToBeReset()

void QAbstractItemModelTesterPrivate::modelAboutToBeReset ( )

Definition at line 877 of file qabstractitemmodeltester.cpp.

References MODELTESTER_COMPARE.

◆ modelReset()

void QAbstractItemModelTesterPrivate::modelReset ( )

Definition at line 883 of file qabstractitemmodeltester.cpp.

References MODELTESTER_COMPARE.

◆ nonDestructiveBasicTest()

void QAbstractItemModelTesterPrivate::nonDestructiveBasicTest ( )

Definition at line 362 of file qabstractitemmodeltester.cpp.

References QAbstractItemModel::buddy(), cache, QAbstractItemModel::canFetchMore(), QAbstractItemModel::columnCount(), QAbstractItemModel::fetchMore(), QAbstractItemModel::flags(), QAbstractItemModel::hasChildren(), QAbstractItemModel::hasIndex(), QAbstractItemModel::index(), Qt::ItemIsDropEnabled, QAbstractItemModel::match(), QAbstractItemModel::mimeTypes(), MODELTESTER_VERIFY, QAbstractItemModel::parent, QAbstractItemModel::roleNames(), QAbstractItemModel::rowCount(), QAbstractItemModel::span(), and QAbstractItemModel::supportedDropActions().

Referenced by runAllTests().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ parent()

void QAbstractItemModelTesterPrivate::parent ( )

Definition at line 479 of file qabstractitemmodeltester.cpp.

References QAbstractItemModel::columnCount(), QAbstractItemModel::hasIndex(), QAbstractItemModel::index(), QModelIndex::isValid(), MODELTESTER_COMPARE, MODELTESTER_VERIFY, QAbstractItemModel::parent, and QAbstractItemModel::rowCount().

Referenced by columnsAboutToBeInserted(), columnsAboutToBeRemoved(), columnsInserted(), columnsRemoved(), rowsAboutToBeInserted(), rowsAboutToBeRemoved(), rowsInserted(), rowsRemoved(), and runAllTests().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ rowAndColumnCount()

void QAbstractItemModelTesterPrivate::rowAndColumnCount ( )

Definition at line 393 of file qabstractitemmodeltester.cpp.

References QAbstractItemModel::columnCount(), QAbstractItemModel::hasChildren(), QAbstractItemModel::index(), MODELTESTER_VERIFY, and QAbstractItemModel::rowCount().

Referenced by runAllTests().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ rowsAboutToBeInserted()

void QAbstractItemModelTesterPrivate::rowsAboutToBeInserted ( const QModelIndex & parent,
int start,
int end )

Definition at line 766 of file qabstractitemmodeltester.cpp.

References QAbstractItemModel::data(), QAbstractItemModel::index(), MODELTESTER_COMPARE, parent(), QStack< T >::push(), qCDebug, and QAbstractItemModel::rowCount().

+ Here is the call graph for this function:

◆ rowsAboutToBeMoved()

void QAbstractItemModelTesterPrivate::rowsAboutToBeMoved ( const QModelIndex & sourceParent,
int sourceStart,
int sourceEnd,
const QModelIndex & destinationParent,
int destinationRow )

Definition at line 825 of file qabstractitemmodeltester.cpp.

References QAbstractItemModel::data(), MODELTESTER_COMPARE, and qCDebug.

+ Here is the call graph for this function:

◆ rowsAboutToBeRemoved()

void QAbstractItemModelTesterPrivate::rowsAboutToBeRemoved ( const QModelIndex & parent,
int start,
int end )

Definition at line 894 of file qabstractitemmodeltester.cpp.

References QAbstractItemModel::columnCount(), QAbstractItemModel::data(), QAbstractItemModel::index(), QModelIndex::isValid(), MODELTESTER_COMPARE, MODELTESTER_VERIFY, parent(), QStack< T >::push(), qCDebug, and QAbstractItemModel::rowCount().

+ Here is the call graph for this function:

◆ rowsInserted()

void QAbstractItemModelTesterPrivate::rowsInserted ( const QModelIndex & parent,
int start,
int end )

Definition at line 790 of file qabstractitemmodeltester.cpp.

References QAbstractItemModel::data(), i, QAbstractItemModel::index(), MODELTESTER_COMPARE, parent(), QStack< T >::pop(), qCDebug, qDebug, and QAbstractItemModel::rowCount().

+ Here is the call graph for this function:

◆ rowsMoved()

void QAbstractItemModelTesterPrivate::rowsMoved ( const QModelIndex & parent,
int start,
int end,
const QModelIndex & destination,
int row )

Definition at line 841 of file qabstractitemmodeltester.cpp.

References QAbstractItemModel::data(), MODELTESTER_COMPARE, and qCDebug.

+ Here is the call graph for this function:

◆ rowsRemoved()

void QAbstractItemModelTesterPrivate::rowsRemoved ( const QModelIndex & parent,
int start,
int end )

Definition at line 927 of file qabstractitemmodeltester.cpp.

References QAbstractItemModel::data(), QAbstractItemModel::index(), MODELTESTER_COMPARE, parent(), QStack< T >::pop(), qCDebug, and QAbstractItemModel::rowCount().

+ Here is the call graph for this function:

◆ runAllTests()

void QAbstractItemModelTesterPrivate::runAllTests ( )

Definition at line 346 of file qabstractitemmodeltester.cpp.

References data(), hasIndex(), index(), nonDestructiveBasicTest(), parent(), and rowAndColumnCount().

+ Here is the call graph for this function:

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