#include <QtGui/qpaintengine.h> #ifndef QPAINTENGINE_H class QPaintEngineState{ /* Some contents are skipped to improve readability */ friend class QPainter; /* ... */ }; #endif // QPAINTENGINE_H