Changeset View
Changeset View
Standalone View
Standalone View
plugins/chartshape/Legend.cpp
Show First 20 Lines • Show All 313 Lines • ▼ Show 20 Line(s) | |||||
314 | { | 314 | { | ||
315 | //painter.save(); | 315 | //painter.save(); | ||
316 | 316 | | |||
317 | // First of all, scale the painter's coordinate system to fit the current zoom level | 317 | // First of all, scale the painter's coordinate system to fit the current zoom level | ||
318 | applyConversion(painter, converter); | 318 | applyConversion(painter, converter); | ||
319 | 319 | | |||
320 | // Calculate the clipping rect | 320 | // Calculate the clipping rect | ||
321 | QRectF paintRect = QRectF(QPointF(0, 0), size()); | 321 | QRectF paintRect = QRectF(QPointF(0, 0), size()); | ||
322 | //clipRect.intersect(paintRect); | 322 | //clipRect.intersected(paintRect); | ||
323 | painter.setClipRect(paintRect, Qt::IntersectClip); | 323 | painter.setClipRect(paintRect, Qt::IntersectClip); | ||
324 | 324 | | |||
325 | // Get the current zoom level | 325 | // Get the current zoom level | ||
326 | QPointF zoomLevel; | 326 | QPointF zoomLevel; | ||
327 | converter.zoom(&zoomLevel.rx(), &zoomLevel.ry()); | 327 | converter.zoom(&zoomLevel.rx(), &zoomLevel.ry()); | ||
328 | 328 | | |||
329 | // Only repaint the pixmap if it is scheduled, the zoom level changed or the shape was resized | 329 | // Only repaint the pixmap if it is scheduled, the zoom level changed or the shape was resized | ||
330 | /*if ( d->pixmapRepaintRequested | 330 | /*if ( d->pixmapRepaintRequested | ||
▲ Show 20 Lines • Show All 247 Lines • Show Last 20 Lines |