#include <QtGui/qdatetimeedit.h> #ifndef QDATETIMEEDIT_H #ifndef QT_NO_DATETIMEEDIT class QDateTimeEdit: public QAbstractSpinBox{ /* Some contents are skipped to improve readability */ public: enum Section{ /* ... */ MinuteSection = 8, /* ... */ }; /* ... */ }; #endif // QT_NO_DATETIMEEDIT #endif // QDATETIMEEDIT_H