#include <QtGui/qtextformat.h>
#ifndef QTEXTFORMAT_H
class QTextCharFormat: public QTextFormat{
   /* Some contents are skipped to improve readability */
   public: enum UnderlineStyle{
      NoUnderline = 0,
      SingleUnderline = 1,
      DashUnderline = 2,
      DotLine = 3,
      DashDotLine = 4,
      DashDotDotLine = 5,
      WaveUnderline = 6,
      SpellCheckUnderline = 7,
   };
   /* ... */
};
#endif // QTEXTFORMAT_H