#include <modeltest.h>
Classes | |
| struct | Changing |
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) |
Definition at line 33 of file modeltest.h.
| ModelTest::ModelTest | ( | QAbstractItemModel * | _model, | |
| QObject * | parent = 0 | |||
| ) |
Connect to all of the models signals. Whenever anything happens recheck everything.
Definition at line 33 of file modeltest.cpp.
| void ModelTest::layoutAboutToBeChanged | ( | ) | [protected, slot] |
Definition at line 498 of file modeltest.cpp.
| void ModelTest::layoutChanged | ( | ) | [protected, slot] |
Definition at line 504 of file modeltest.cpp.
| void ModelTest::rowsAboutToBeInserted | ( | const QModelIndex & | parent, | |
| int | start, | |||
| int | end | |||
| ) | [protected, slot] |
Store what is about to be inserted to make sure it actually happens
Definition at line 465 of file modeltest.cpp.
| void ModelTest::rowsAboutToBeRemoved | ( | const QModelIndex & | parent, | |
| int | start, | |||
| int | end | |||
| ) | [protected, slot] |
Store what is about to be inserted to make sure it actually happens
Definition at line 519 of file modeltest.cpp.
| void ModelTest::rowsInserted | ( | const QModelIndex & | parent, | |
| int | start, | |||
| int | end | |||
| ) | [protected, slot] |
Confirm that what was said was going to happen actually did
Definition at line 481 of file modeltest.cpp.
| void ModelTest::rowsRemoved | ( | const QModelIndex & | parent, | |
| int | start, | |||
| int | end | |||
| ) | [protected, slot] |
Confirm that what was said was going to happen actually did
Definition at line 534 of file modeltest.cpp.
| void ModelTest::runAllTests | ( | ) | [protected, slot] |
Definition at line 79 of file modeltest.cpp.
1.6.3