OpenStudio:model_editor
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Pages
Classes | Public Member Functions | Protected Slots | List of all members
ModelTest Class Reference

#include <modeltest.h>

+ Inheritance diagram for ModelTest:

Public Member Functions

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

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

Detailed Description

! Qt modeltest is a non-supported class from Qt which provides a way to check for common errors in the implementation of QAbstractItemModel.

This class is instantiated alongside any model, living the life of the model and continuously checking the model during the model's life, evaluating it as it changes and asserting errors in real-time.

Tarball downloaded from: http://labs.trolltech.com/page/Projects/Itemview/Modeltest

Constructor & Destructor Documentation

ModelTest::ModelTest ( QAbstractItemModel model,
QObject parent = nullptr 
)

Member Function Documentation

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