#include <QtGui/qprogressbar.h> #ifndef QPROGRESSBAR_H #ifndef QT_NO_PROGRESSBAR class QProgressBar: public QWidget{ /* Some contents are skipped to improve readability */ public: void setMaximum(int maximum); /* ... */ }; #endif // QT_NO_PROGRESSBAR #endif // QPROGRESSBAR_H