Hej,
I've subclassed QAbstractListModel() but not reimplemented hasChildren(). The test »Q_ASSERT(model->hasChildren(topIndex) == true);« in »ModelTest::rowCount()« fails and I don't quite get why.
My rowCount() implementation looks like this:
int MyModel::rowCount(const QModelIndex &parent) const
{
Q_UNUSED(parent);
return entries->count();
}
entries is a QList<Entry>*.
What am I getting wrong here?
TIA,
Max