Since Qt provides a mechanism for preventing type casts from const char * to QString, it would be nice if the ModelTest code compiled in such an environment. It's a simple change around line 382:
This line:
Q_ASSERT(model->setData(QModelIndex(), "foo", Qt::DisplayRole) == false);
Changes to this line:
Q_ASSERT(model->setData(QModelIndex(), QLatin1String("foo"), Qt::DisplayRole) == false);
Is there any chance this change could get checked into the subversion repository?