removed some dead code after recent code change
svn path=/trunk/KDE/kdelibs/; revision=896893
This commit is contained in:
parent
eee1671b3c
commit
073c56b8de
@ -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();
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user