#include <QtGui/qtextformat.h>
#ifndef QTEXTFORMAT_H
class QTextLength{
   /* Some contents are skipped to improve readability */
   private: enum QTextLength::Type lengthType;
   /* ... */
};
#endif // QTEXTFORMAT_H