#include <QtGui/qstandarditemmodel.h> #ifndef QSTANDARDITEMMODEL_H #ifndef QT_NO_STANDARDITEMMODEL class QStandardItem{ /* Some contents are skipped to improve readability */ public: enum ItemType{ /* ... */ UserType = 1000, /* ... */ }; /* ... */ }; #endif // QT_NO_STANDARDITEMMODEL #endif //QSTANDARDITEMMODEL_H