Also snaps to the original size.
svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=741943
This commit is contained in:
parent
0cbf8a7a48
commit
1d7f16296d
@ -277,6 +277,10 @@ void AppletHandle::mouseMoveEvent(QGraphicsSceneMouseEvent *event)
|
|||||||
|
|
||||||
m_scale = _k_distanceForPoint(event->pos()-center) / _k_distanceForPoint(pressPos-center);
|
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;
|
QTransform matrix;
|
||||||
matrix.translate(center.x(), center.y());
|
matrix.translate(center.x(), center.y());
|
||||||
matrix.rotateRadians(m_angle);
|
matrix.rotateRadians(m_angle);
|
||||||
|
Loading…
Reference in New Issue
Block a user