#include <QtGui/qtextedit.h> #ifndef QTEXTEDIT_H #ifndef QT_NO_TEXTEDIT class QTextEdit: public QAbstractScrollArea{ /* Some contents are skipped to improve readability */ public: struct ExtraSelection{ /* ... */ public: class QTextCharFormat format; /* ... */ }; /* ... */ }; #endif // QT_NO_TEXTEDIT #endif // QTEXTEDIT_H