Also snaps to the original size.

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=741943
This commit is contained in:
Kevin Ottens 2007-11-26 19:44:40 +00:00
parent 0cbf8a7a48
commit 1d7f16296d

View File

@ -277,6 +277,10 @@ void AppletHandle::mouseMoveEvent(QGraphicsSceneMouseEvent *event)
m_scale = _k_distanceForPoint(event->pos()-center) / _k_distanceForPoint(pressPos-center);
if (qAbs(m_scale-1.0)<=0.1) {
m_scale = 1.0;
}
QTransform matrix;
matrix.translate(center.x(), center.y());
matrix.rotateRadians(m_angle);