#include <QtGui/qprogressdialog.h> #ifndef QPROGRESSDIALOG_H #ifndef QT_NO_PROGRESSDIALOG class QProgressDialog: public QDialog{ /* Some contents are skipped to improve readability */ protected: virtual void closeEvent(struct QCloseEvent*); /* ... */ }; #endif // QT_NO_PROGRESSDIALOG #endif // QPROGRESSDIALOG_H