21 QPainter* painter,
const QRect& canvasRect,
31 painter->setRenderHint( QPainter::Antialiasing,
33 seriesItem->
drawSeries( painter, xMap, yMap, canvasRect, from, to );
175 if ( seriesItem == NULL || seriesItem->
plot() == NULL )
178 QWidget* canvas = seriesItem->
plot()->
canvas();
179 const QRect canvasRect = canvas->contentsRect();
181 QwtPlotCanvas* plotCanvas = qobject_cast< QwtPlotCanvas* >( canvas );
185 QPainter painter(
const_cast< QPixmap*
>( plotCanvas->
backingStore() ) );
196 plotCanvas->repaint();
201 bool immediatePaint =
true;
202 if ( !canvas->testAttribute( Qt::WA_WState_InPaintEvent ) )
204 #if QT_VERSION < 0x050000
205 if ( !canvas->testAttribute( Qt::WA_PaintOutsidePaintEvent ) )
207 immediatePaint =
false;
210 if ( immediatePaint )
217 canvas->installEventFilter(
this );
255 canvas->installEventFilter(
this );
257 canvas->removeEventFilter(
this );
268 QWidget* w =
static_cast< QWidget*
>(
m_data->
painter.device() );
270 w->removeEventFilter(
this );
279 if ( event->type() == QEvent::Paint )
285 const QPaintEvent* pe =
static_cast< QPaintEvent*
>( event );
289 QPainter painter( canvas );
290 painter.setClipRegion( pe->region() );
297 qobject_cast< QwtPlotCanvas* >( canvas );
303 painter.drawPixmap( plotCanvas->rect().topLeft(),