#include <QtSql/qsqlquerymodel.h>
#ifndef QSQLQUERYMODEL_H
class QSqlQueryModel: public QAbstractTableModel{
   /* Some contents are skipped to improve readability */
   protected: class QModelIndex indexInQuery(class QModelIndex const & item) const
   /* ... */
};
#endif // QSQLQUERYMODEL_H