#include <QtGui/qlistwidget.h> #ifndef QLISTWIDGET_H #ifndef QT_NO_LISTWIDGET class QListWidgetItem{ /* Some contents are skipped to improve readability */ public: enum ItemType{ /* ... */ Type = 0, /* ... */ }; /* ... */ }; #endif // QT_NO_LISTWIDGET #endif // QLISTWIDGET_H