Debugger: Some infrastructure for stricter watch model testing

Targeting re-use for tooltips, and potentially sorting.

Change-Id: I1ce8f4da73ab5ca13cd70d7c651bc76c67f91a39
Reviewed-by: hjk <hjk121@nokiamail.com>
This commit is contained in:
hjk
2014-06-02 10:43:26 +02:00
parent c3cb944eec
commit 99271c2343
8 changed files with 67 additions and 19 deletions

View File

@@ -119,6 +119,9 @@ void ModelTest::nonDestructiveBasicTest()
QVariant cache;
model->match(QModelIndex(), -1, cache);
model->mimeTypes();
QModelIndex m1 = model->parent(QModelIndex());
QModelIndex m2 = QModelIndex();
Q_ASSERT(m1 == m2);
Q_ASSERT(model->parent(QModelIndex()) == QModelIndex());
Q_ASSERT(model->rowCount() >= 0);
QVariant variant;