#include <QtGui/qcalendarwidget.h> #ifndef QCALENDARWIDGET_H #ifndef QT_NO_CALENDARWIDGET class QCalendarWidget: public QWidget{ /* Some contents are skipped to improve readability */ public: enum SelectionMode{ /* ... */ NoSelection = 0, /* ... */ }; /* ... */ }; #endif // QT_NO_CALENDARWIDGET #endif // QCALENDARWIDGET_H