p->save();
//sets default style on the painter
//### not the most optimal way
- mapSourceToTarget(p, bounds);
+ mapSourceToTarget(p, bounds, QRectF());
QPen pen(Qt::NoBrush, 1, Qt::SolidLine, Qt::FlatCap, Qt::SvgMiterJoin);
pen.setMiterLimit(4);
p->setPen(pen);
p->save();
- const QRectF elementBounds = node->transformedBounds();
-
- mapSourceToTarget(p, bounds, elementBounds);
+ mapSourceToTarget(p, bounds, node->transformedBounds());
QTransform originalTransform = p->worldTransform();
//XXX set default style on the painter
void setCurrentFrame(int);
void setFramesPerSecond(int num);
private:
- void mapSourceToTarget(QPainter *p, const QRectF &targetRect, const QRectF &sourceRect = QRectF());
+ void mapSourceToTarget(QPainter *p, const QRectF &targetRect, const QRectF &sourceRect);
QSize m_size;