Hi all, There's currently this [1]:
/*! \internal Returns the number of columns in the list with the given \a parent. \sa rowCount() */ int QAbstractListModel::columnCount(const QModelIndex &parent) const { return parent.isValid() ? 0 : 1; } bool QAbstractListModel::hasChildren(const QModelIndex &parent) const { return parent.isValid() ? false : (rowCount() > 0); } which means rowCount/columnCount don't show up in the docs for QAbstractListModel under "Reimplemented Public Functions". Shouldn't both of these be given /*! \reimp */ comments? Or should I not rely on QAbstractListModel taking care of these for me? (..and their implementation there is just an undocumented precaution against sloppy model authors?). Elvis [1] https://github.com/qtproject/qtbase/blob/dev/src/corelib/itemmodels/qabstractitemmodel.cpp#L3560-L3576 _______________________________________________ Interest mailing list Interest@qt-project.org http://lists.qt-project.org/mailman/listinfo/interest