#include <QtCore/qabstractitemmodel.h> #ifndef QABSTRACTITEMMODEL_H class QAbstractListModel: public QAbstractItemModel{ /* Some contents are skipped to improve readability */ private: virtual bool hasChildren(class QModelIndex const & parent) const /* ... */ }; #endif // QABSTRACTITEMMODEL_H