Cute Chess 0.1
ModelTest Class Reference
Inheritance diagram for ModelTest:
QObject

Public Member Functions

 ModelTest (QAbstractItemModel *model, QObject *parent=0)

Protected Slots

void layoutAboutToBeChanged ()
void layoutChanged ()
void rowsAboutToBeInserted (const QModelIndex &parent, int start, int end)
void rowsAboutToBeRemoved (const QModelIndex &parent, int start, int end)
void rowsInserted (const QModelIndex &parent, int start, int end)
void rowsRemoved (const QModelIndex &parent, int start, int end)
void runAllTests ()

Constructor & Destructor Documentation

◆ ModelTest()

ModelTest::ModelTest ( QAbstractItemModel * _model,
QObject * parent = 0 )

Connect to all of the models signals. Whenever anything happens recheck everything.

Member Function Documentation

◆ rowsAboutToBeInserted

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

Store what is about to be inserted to make sure it actually happens

See also
rowsInserted()

◆ rowsAboutToBeRemoved

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

Store what is about to be inserted to make sure it actually happens

See also
rowsRemoved()

◆ rowsInserted

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

Confirm that what was said was going to happen actually did

See also
rowsAboutToBeInserted()

◆ rowsRemoved

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

Confirm that what was said was going to happen actually did

See also
rowsAboutToBeRemoved()

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