Remove Q_ASSERT from qitemmodel autotest

If populateTestData() is passed an unknown type of model, report a
meaningful fatal error rather than failing silently in a release build
and aborting with an uninformative error message in a debug build.

Change-Id: I7ee8d1262bbced304f9f24c2ec9b40a38704d982
Task-number: QTBUG-17582
Reviewed-by: Rohan McGovern
(cherry picked from commit 6b2e89843a573cd7c143bca17cec8e69209d2fbd)
bb10
Jason McDonald 2011-05-06 15:22:07 +10:00 committed by Rohan McGovern
parent 72fb879764
commit 6354d890f3
1 changed files with 1 additions and 1 deletions

View File

@ -372,7 +372,7 @@ QModelIndex ModelsToTest::populateTestArea(QAbstractItemModel *model)
return QModelIndex();
}
Q_ASSERT(false);
qFatal("%s: unknown type of model", Q_FUNC_INFO);
return QModelIndex();
}