#include <QtGui/qtextformat.h>
#ifndef QTEXTFORMAT_H
class QTextLength{
   /* Some contents are skipped to improve readability */
   public: enum Type{
      VariableLength = 0,
      FixedLength = 1,
      PercentageLength = 2,
   };
   /* ... */
};
#endif // QTEXTFORMAT_H