From b1d5d22ffe19b99ab3e87847c27d27aee6ef8805 Mon Sep 17 00:00:00 2001 From: Alex Merry Date: Tue, 8 Jan 2008 00:39:32 +0000 Subject: [PATCH] use the same co-ordinate system as when actually rotating; prevents an iritating jump svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=758485 --- applethandle.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/applethandle.cpp b/applethandle.cpp index 7b0426159..69f70a918 100644 --- a/applethandle.cpp +++ b/applethandle.cpp @@ -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;