#include <QtGui/qtextedit.h> #ifndef QTEXTEDIT_H #ifndef QT_NO_TEXTEDIT class QTextEdit: public QAbstractScrollArea{ /* Some contents are skipped to improve readability */ protected: void currentCharFormatChanged(class QTextCharFormat const & format); /* ... */ }; #endif // QT_NO_TEXTEDIT #endif // QTEXTEDIT_H