use the same co-ordinate system as when actually rotating; prevents an iritating jump

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=758485
This commit is contained in:
Alex Merry 2008-01-08 00:39:32 +00:00
parent 3328d293ae
commit b1d5d22ffe

View File

@ -239,7 +239,7 @@ void AppletHandle::mouseReleaseEvent(QGraphicsSceneMouseEvent *event)
moveBy((rect.width() - newWidth) / 2, (rect.height() - newHeight) / 2);
m_scaleWidth = m_scaleHeight = 0;
}
QRectF rect(boundingRect());
QRectF rect = QRectF(m_applet->pos(), m_applet->size());
QPointF center = rect.center();
QTransform matrix;