#include <QtGui/qpainter.h>
#ifndef QPAINTER_H
class QPainter{
   /* Some contents are skipped to improve readability */
   public: enum CompositionMode{
      /* ... */
      CompositionMode_Source = 3,
      /* ... */
   };
   /* ... */
};
#endif // QPAINTER_H