Changeset View
Changeset View
Standalone View
Standalone View
interfaces/modeltest.cpp
Context not available. | |||||
30 | /*! | 30 | /*! | ||
---|---|---|---|---|---|
31 | Connect to all of the models signals. Whenever anything happens recheck everything. | 31 | Connect to all of the models signals. Whenever anything happens recheck everything. | ||
32 | */ | 32 | */ | ||
33 | ModelTest::ModelTest(QAbstractItemModel *_model, QObject *parent) : QObject(parent), model(_model), fetchingMore(false) | 33 | ModelTest::ModelTest(QAbstractItemModel *_model, QObject* parent) : QObject(parent), model(_model), fetchingMore(false) | ||
34 | { | 34 | { | ||
35 | Q_ASSERT(model); | 35 | Q_ASSERT(model); | ||
36 | 36 | | |||
Context not available. | |||||
215 | Q_ASSERT(model->index(rows, columns) == QModelIndex()); | 215 | Q_ASSERT(model->index(rows, columns) == QModelIndex()); | ||
216 | Q_ASSERT(model->index(0, 0).isValid() == true); | 216 | Q_ASSERT(model->index(0, 0).isValid() == true); | ||
217 | 217 | | |||
218 | // Make sure that the same index is *always* returned | 218 | // Make sure that the same index is* always* returned | ||
219 | QModelIndex a = model->index(0, 0); | 219 | QModelIndex a = model->index(0, 0); | ||
220 | QModelIndex b = model->index(0, 0); | 220 | QModelIndex b = model->index(0, 0); | ||
221 | Q_ASSERT(a == b); | 221 | Q_ASSERT(a == b); | ||
Context not available. |