#include <QtGui/qitemdelegate.h> #ifndef QITEMDELEGATE_H #ifndef QT_NO_ITEMVIEWS class QItemDelegate: public QAbstractItemDelegate{ /* Some contents are skipped to improve readability */ public: static struct QMetaObject const staticMetaObject; /* ... */ }; #endif // QT_NO_ITEMVIEWS #endif // QITEMDELEGATE_H