#include <modeltest.h>
Public Member Functions | |
ModelTest (QAbstractItemModel *model, QObject *parent=0) | |
Protected Slots | |
void | runAllTests () |
void | layoutAboutToBeChanged () |
void | layoutChanged () |
void | rowsAboutToBeInserted (const QModelIndex &parent, int start, int end) |
void | rowsInserted (const QModelIndex &parent, int start, int end) |
void | rowsAboutToBeRemoved (const QModelIndex &parent, int start, int end) |
void | rowsRemoved (const QModelIndex &parent, int start, int end) |
Private Slots | |
void | nonDestructiveBasicTest () |
void | rowCount () |
void | columnCount () |
void | hasIndex () |
void | index () |
void | parent () |
void | data () |
Private Member Functions | |
void | checkChildren (const QModelIndex &parent, int currentDepth=0) |
Private Attributes | |
QAbstractItemModel * | model |
QStack< Changing > | insert |
QStack< Changing > | remove |
bool | fetchingMore |
QList< QPersistentModelIndex > | changing |
Classes | |
struct | Changing |
ModelTest::ModelTest | ( | QAbstractItemModel * | model, | |
QObject * | parent = 0 | |||
) |
void ModelTest::nonDestructiveBasicTest | ( | ) | [private, slot] |
void ModelTest::rowCount | ( | ) | [private, slot] |
void ModelTest::columnCount | ( | ) | [private, slot] |
void ModelTest::hasIndex | ( | ) | [private, slot] |
void ModelTest::index | ( | ) | [private, slot] |
void ModelTest::parent | ( | ) | [private, slot] |
void ModelTest::data | ( | ) | [private, slot] |
void ModelTest::runAllTests | ( | ) | [protected, slot] |
void ModelTest::layoutAboutToBeChanged | ( | ) | [protected, slot] |
void ModelTest::layoutChanged | ( | ) | [protected, slot] |
void ModelTest::rowsAboutToBeInserted | ( | const QModelIndex & | parent, | |
int | start, | |||
int | end | |||
) | [protected, slot] |
void ModelTest::rowsInserted | ( | const QModelIndex & | parent, | |
int | start, | |||
int | end | |||
) | [protected, slot] |
void ModelTest::rowsAboutToBeRemoved | ( | const QModelIndex & | parent, | |
int | start, | |||
int | end | |||
) | [protected, slot] |
void ModelTest::rowsRemoved | ( | const QModelIndex & | parent, | |
int | start, | |||
int | end | |||
) | [protected, slot] |
void ModelTest::checkChildren | ( | const QModelIndex & | parent, | |
int | currentDepth = 0 | |||
) | [private] |
QAbstractItemModel* ModelTest::model [private] |
QStack<Changing> ModelTest::insert [private] |
QStack<Changing> ModelTest::remove [private] |
bool ModelTest::fetchingMore [private] |
QList<QPersistentModelIndex> ModelTest::changing [private] |