Cute Chess  0.1
Classes | Public Member Functions | Protected Slots | List of all members
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 ( QAbstractItemModel _model,
QObject parent = 0 
)

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

Member Function Documentation

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()
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()
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()
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: