#include <QtGui/qfontdialog.h> #ifndef QFONTDIALOG_H #ifndef QT_NO_FONTDIALOG class QFontDialog: public QDialog{ /* Some contents are skipped to improve readability */ private: class QFont font() const /* ... */ }; #endif // QT_NO_FONTDIALOG #endif // QFONTDIALOG_H