#include <QtGui/qitemdelegate.h> #ifndef QITEMDELEGATE_H #ifndef QT_NO_ITEMVIEWS class QItemDelegate: public QAbstractItemDelegate{ /* Some contents are skipped to improve readability */ public: void setClipping(bool clip); /* ... */ }; #endif // QT_NO_ITEMVIEWS #endif // QITEMDELEGATE_H