22 #if QT_VERSION < 0x040000
25 #include <QtGui/QPaintEngine>
26 #include <QtGui/QPixmap>
35 #if QT_VERSION < 0x040000
38 bool QwtPaintBuffer::d_enabled =
true;
65 open(device, rect, painter);
127 if ( device == 0 || !rect.
isValid() )
139 if (
d_device->devType() == QInternal::Widget )
159 if (
d_device->devType() == QInternal::Widget )
161 #if QT_VERSION < 0x040000
163 if ( w->
testWFlags( Qt::WRepaintNoErase | Qt::WResizeNoErase) )
190 #if QT_VERSION < 0x040000
193 QPaintEngine * pe = device -> paintEngine ();
195 if ( type != QPaintEngine::PostScript )
eraseRect(int x, int y, int w, int h)
fill(const QColor &fillColor=Qt::white)
static void setEnabled(bool enable)
const QPaintDevice * device()
QwtPaintBuffer()
Default constructor.
drawPixmap(int x, int y, const QPixmap &pixmap, int sx=0, int sy=0, int sw=-1, int sh=-1)
PyArray_TYPES type(numeric::array arr)
void open(QPaintDevice *, const QRect &, QPainter *painter=NULL)
QPainter * d_devicePainter
translate(double dx, double dy)
begin(const QPaintDevice *pd, bool unclipped=FALSE)
virtual ~QwtPaintBuffer()