#include <QtGui/qimage.h> #ifndef QIMAGE_H class QImage: public QPaintDevice{ /* Some contents are skipped to improve readability */ public: enum InvertMode{ InvertRgb = 0, InvertRgba = 1, }; /* ... */ }; #endif // QIMAGE_H