10 #ifndef QWT_PAINT_BUFFER_H 
   11 #define QWT_PAINT_BUFFER_H 1 
   14 #if QT_VERSION < 0x040000 
   17 #include "qwt_global.h" 
   29 class QWT_EXPORT QwtPaintBuffer
 
   32     explicit QwtPaintBuffer();
 
   33     explicit QwtPaintBuffer(QPaintDevice *, 
const QRect &, QPainter *p = NULL);
 
   35     virtual ~QwtPaintBuffer();
 
   37     void open(QPaintDevice *, 
const QRect &, QPainter *p = NULL);
 
   41     const QPaintDevice *device();
 
   43     static void setEnabled(
bool enable);
 
   44     static bool isEnabled();
 
   47     const QPixmap &buffer()
 const { 
return d_pixBuffer; }
 
   56     QPaintDevice *d_device; 
 
   58     QPainter *d_devicePainter; 
 
   60     static bool d_enabled;
 
   63 #endif // QT_VERSION < 0x040000