#include <QtGui/qpaintdevice.h> #ifndef QPAINTDEVICE_H class QPaintDevice{ /* Some contents are skipped to improve readability */ public: enum PaintDeviceMetric{ /* ... */ PdmWidthMM = 3, /* ... */ }; /* ... */ }; #endif // QPAINTDEVICE_H