#include <QtGui/qstylepainter.h> #ifndef QSTYLEPAINTER_H class QStylePainter: public QPainter{ /* Some contents are skipped to improve readability */ public: inline void drawPrimitive(enum QStyle::PrimitiveElement pe, struct QStyleOption const & opt); /* ... */ }; #endif // QSTYLEPAINTER_H