Public Member Functions | Protected Slots | Protected Member Functions | Properties

ctkModelTester Class Reference

#include <Libs/Core/ctkModelTester.h>

List of all members.

Public Member Functions

 ctkModelTester (QObject *parent=0)
 ctkModelTester (QAbstractItemModel *model, QObject *parent=0)
QAbstractItemModel * model () const
bool nestedInserts () const
void setModel (QAbstractItemModel *model)
void setNestedInserts (bool enable)
void setThrowOnError (bool throwException)
virtual void testData (const QModelIndex &index) const
virtual void testModel () const
virtual void testModelIndex (const QModelIndex &index) const
virtual void testParent (const QModelIndex &parent) const
virtual void testPersistentModelIndex (const QPersistentModelIndex &index) const
bool throwOnError () const

Protected Slots

void onColumnsAboutToBeInserted (const QModelIndex &parent, int start, int end)
void onColumnsAboutToBeRemoved (const QModelIndex &parent, int start, int end)
void onColumnsInserted (const QModelIndex &parent, int start, int end)
void onColumnsRemoved (const QModelIndex &parent, int start, int end)
void onDataChanged (const QModelIndex &topLeft, const QModelIndex &bottomRight)
void onHeaderDataChanged (Qt::Orientation orientation, int first, int last)
void onLayoutAboutToBeChanged ()
void onLayoutChanged ()
void onModelAboutToBeReset ()
void onModelReset ()
void onRowsAboutToBeInserted (const QModelIndex &parent, int start, int end)
void onRowsAboutToBeRemoved (const QModelIndex &parent, int start, int end)
void onRowsInserted (const QModelIndex &parent, int start, int end)
void onRowsRemoved (const QModelIndex &parent, int start, int end)

Protected Member Functions

virtual void onItemsAboutToBeInserted (const QModelIndex &parent, Qt::Orientation, int start, int end)
virtual void onItemsAboutToBeRemoved (const QModelIndex &parent, Qt::Orientation, int start, int end)
virtual void onItemsInserted (const QModelIndex &parent, Qt::Orientation, int start, int end)
virtual void onItemsRemoved (const QModelIndex &parent, Qt::Orientation, int start, int end)
QList< QPersistentModelIndex > persistentModelIndexes (const QModelIndex &index) const
virtual void test (bool result, const QString &errorString) const

Properties

bool nestedInserts

Detailed Description

Definition at line 37 of file ctkModelTester.h.


Constructor & Destructor Documentation

ctkModelTester::ctkModelTester ( QObject *  parent = 0  )  [explicit]

Definition at line 68 of file ctkModelTester.cpp.

ctkModelTester::ctkModelTester ( QAbstractItemModel *  model,
QObject *  parent = 0 
)

Definition at line 75 of file ctkModelTester.cpp.


Member Function Documentation

QAbstractItemModel * ctkModelTester::model (  )  const

Definition at line 124 of file ctkModelTester.cpp.

bool ctkModelTester::nestedInserts (  )  const
void ctkModelTester::onColumnsAboutToBeInserted ( const QModelIndex &  parent,
int  start,
int  end 
) [protected, slot]

Definition at line 278 of file ctkModelTester.cpp.

void ctkModelTester::onColumnsAboutToBeRemoved ( const QModelIndex &  parent,
int  start,
int  end 
) [protected, slot]

Definition at line 285 of file ctkModelTester.cpp.

void ctkModelTester::onColumnsInserted ( const QModelIndex &  parent,
int  start,
int  end 
) [protected, slot]

Definition at line 292 of file ctkModelTester.cpp.

void ctkModelTester::onColumnsRemoved ( const QModelIndex &  parent,
int  start,
int  end 
) [protected, slot]

Definition at line 299 of file ctkModelTester.cpp.

void ctkModelTester::onDataChanged ( const QModelIndex &  topLeft,
const QModelIndex &  bottomRight 
) [protected, slot]

Definition at line 306 of file ctkModelTester.cpp.

void ctkModelTester::onHeaderDataChanged ( Qt::Orientation  orientation,
int  first,
int  last 
) [protected, slot]

Definition at line 324 of file ctkModelTester.cpp.

void ctkModelTester::onItemsAboutToBeInserted ( const QModelIndex &  parent,
Qt::Orientation  orientation,
int  start,
int  end 
) [protected, virtual]

Definition at line 422 of file ctkModelTester.cpp.

void ctkModelTester::onItemsAboutToBeRemoved ( const QModelIndex &  parent,
Qt::Orientation  orientation,
int  start,
int  end 
) [protected, virtual]

Definition at line 447 of file ctkModelTester.cpp.

void ctkModelTester::onItemsInserted ( const QModelIndex &  parent,
Qt::Orientation  orientation,
int  start,
int  end 
) [protected, virtual]

Definition at line 487 of file ctkModelTester.cpp.

void ctkModelTester::onItemsRemoved ( const QModelIndex &  parent,
Qt::Orientation  orientation,
int  start,
int  end 
) [protected, virtual]

Definition at line 513 of file ctkModelTester.cpp.

void ctkModelTester::onLayoutAboutToBeChanged (  )  [protected, slot]

Definition at line 361 of file ctkModelTester.cpp.

void ctkModelTester::onLayoutChanged (  )  [protected, slot]

Definition at line 370 of file ctkModelTester.cpp.

void ctkModelTester::onModelAboutToBeReset (  )  [protected, slot]

Definition at line 382 of file ctkModelTester.cpp.

void ctkModelTester::onModelReset (  )  [protected, slot]

Definition at line 388 of file ctkModelTester.cpp.

void ctkModelTester::onRowsAboutToBeInserted ( const QModelIndex &  parent,
int  start,
int  end 
) [protected, slot]

Definition at line 394 of file ctkModelTester.cpp.

void ctkModelTester::onRowsAboutToBeRemoved ( const QModelIndex &  parent,
int  start,
int  end 
) [protected, slot]

Definition at line 401 of file ctkModelTester.cpp.

void ctkModelTester::onRowsInserted ( const QModelIndex &  parent,
int  start,
int  end 
) [protected, slot]

Definition at line 408 of file ctkModelTester.cpp.

void ctkModelTester::onRowsRemoved ( const QModelIndex &  parent,
int  start,
int  end 
) [protected, slot]

Definition at line 415 of file ctkModelTester.cpp.

QList< QPersistentModelIndex > ctkModelTester::persistentModelIndexes ( const QModelIndex &  index  )  const [protected]

Definition at line 344 of file ctkModelTester.cpp.

void ctkModelTester::setModel ( QAbstractItemModel *  model  ) 

Definition at line 83 of file ctkModelTester.cpp.

void ctkModelTester::setNestedInserts ( bool  enable  ) 

Definition at line 142 of file ctkModelTester.cpp.

void ctkModelTester::setThrowOnError ( bool  throwException  ) 

Definition at line 130 of file ctkModelTester.cpp.

void ctkModelTester::test ( bool  result,
const QString &  errorString 
) const [protected, virtual]

Definition at line 154 of file ctkModelTester.cpp.

void ctkModelTester::testData ( const QModelIndex &  index  )  const [virtual]

Definition at line 196 of file ctkModelTester.cpp.

void ctkModelTester::testModel (  )  const [virtual]

Definition at line 258 of file ctkModelTester.cpp.

void ctkModelTester::testModelIndex ( const QModelIndex &  index  )  const [virtual]

Definition at line 168 of file ctkModelTester.cpp.

void ctkModelTester::testParent ( const QModelIndex &  parent  )  const [virtual]

Definition at line 213 of file ctkModelTester.cpp.

void ctkModelTester::testPersistentModelIndex ( const QPersistentModelIndex &  index  )  const [virtual]

Definition at line 245 of file ctkModelTester.cpp.

bool ctkModelTester::throwOnError (  )  const

Definition at line 136 of file ctkModelTester.cpp.


Property Documentation

bool ctkModelTester::nestedInserts [read, write]

Definition at line 40 of file ctkModelTester.h.


The documentation for this class was generated from the following files:
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines