#include <QtGui/qpainter.h> #ifndef QPAINTER_H class QPainter{ /* Some contents are skipped to improve readability */ public: inline void drawLine(int x1, int y1, int x2, int y2); /* ... */ }; #endif // QPAINTER_H