This isn't a tree model.
QAbstractTableModel's hasChildren() is a bit stupid about asking the
model, I'll fix that in Qt: https://codereview.qt-project.org/258965
Still, this is more correct.
Caught by QAbstractItemModelTester, but probably harmless with
the view used here.