46#include <QtCore/QObject>
47#include <QtCore/QAbstractItemModel>
48#include <QtCore/QStack>
55 ModelTest(QAbstractItemModel* model, QObject* parent =
nullptr);
58 void nonDestructiveBasicTest();
71 void rowsInserted(
const QModelIndex &parent,
int start,
int end);
73 void rowsRemoved(
const QModelIndex &parent,
int start,
int end);
76 void checkChildren(
const QModelIndex &parent,
int currentDepth = 0);
78 QAbstractItemModel* model;
86 QStack<Changing> insert;
87 QStack<Changing> remove;
91 QList<QPersistentModelIndex> changing;
void rowsAboutToBeInserted(const QModelIndex &parent, int start, int end)
void rowsAboutToBeRemoved(const QModelIndex &parent, int start, int end)
void layoutAboutToBeChanged()
ModelTest(QAbstractItemModel *model, QObject *parent=nullptr)
void rowsRemoved(const QModelIndex &parent, int start, int end)
void rowsInserted(const QModelIndex &parent, int start, int end)