diff --git a/private/applethandle.cpp b/private/applethandle.cpp index f42bdcbb4..4b445b038 100644 --- a/private/applethandle.cpp +++ b/private/applethandle.cpp @@ -460,18 +460,6 @@ void AppletHandle::mousePressEvent(QGraphicsSceneMouseEvent *event) m_pos = pos(); } - if (m_pressedButton == ResizeButton) { - QRectF rect = QRectF(m_applet->pos(), m_applet->size()); - m_originalSize = rect.size(); - if (m_buttonsOnRight) { - m_resizeAnchor = rect.bottomLeft(); - m_resizeOffset = event->pos() - rect.topRight(); - } else { - m_resizeAnchor = rect.bottomRight(); - m_resizeOffset = event->pos() - rect.topLeft(); - } - } - event->accept(); update(); diff --git a/private/applethandle_p.h b/private/applethandle_p.h index 76116fbfa..f448be9c4 100644 --- a/private/applethandle_p.h +++ b/private/applethandle_p.h @@ -130,8 +130,6 @@ class AppletHandle : public QObject, public QGraphicsItem QPointF m_entryPos; //where the hover in event occurred QPointF m_pos; //current position of applet in sceneCoords qreal m_zValue; //current zValue of the applet, so it can be restored after drag. - QPointF m_resizeAnchor; - QPointF m_resizeOffset; QSizeF m_originalSize; bool m_buttonsOnRight : 1;