#include <QtGui/qstandarditemmodel.h> #ifndef QSTANDARDITEMMODEL_H #ifndef QT_NO_STANDARDITEMMODEL class QStandardItemModel: public QAbstractItemModel{ /* Some contents are skipped to improve readability */ public: int sortRole() const /* ... */ }; #endif // QT_NO_STANDARDITEMMODEL #endif //QSTANDARDITEMMODEL_H