equal
deleted
inserted
replaced
123 } |
123 } |
124 |
124 |
125 QRectF HbVgOutlineEffect::boundingRectFor(const QRectF &rect) const |
125 QRectF HbVgOutlineEffect::boundingRectFor(const QRectF &rect) const |
126 { |
126 { |
127 Q_D(const HbVgOutlineEffect); |
127 Q_D(const HbVgOutlineEffect); |
128 QSizeF mappedOutline = d->mapSize(QSizeF(d->outline.x(), d->outline.y())); |
128 QSizeF mappedOutline = d->mapSize(QSizeF(d->outline.x() + 2, d->outline.y() + 2)); |
129 QPointF mappedOffset = d->mapOffset(d->offset); |
129 QPointF mappedOffset = d->mapOffset(d->offset); |
130 |
130 |
131 qreal ox1 = rect.left() - mappedOutline.width() + mappedOffset.x(); |
131 qreal ox1 = rect.left() - mappedOutline.width() + mappedOffset.x(); |
132 qreal oy1 = rect.top() - mappedOutline.height() + mappedOffset.y(); |
132 qreal oy1 = rect.top() - mappedOutline.height() + mappedOffset.y(); |
133 qreal ox2 = rect.right() + mappedOutline.width() + mappedOffset.x(); |
133 qreal ox2 = rect.right() + mappedOutline.width() + mappedOffset.x(); |