MCPcopy Create free account
hub / github.com/KDE/labplot / mousePressEvent

Method mousePressEvent

src/backend/worksheet/ResizeItem.cpp:69–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67}
68
69void ResizeItem::HandleItem::mousePressEvent(QGraphicsSceneMouseEvent* event) {
70 m_parent->container()->setUndoAware(false);
71 m_oldRect = m_parent->container()->rect();
72 m_lastMousePos = event->scenePos();
73}
74
75void ResizeItem::HandleItem::mouseReleaseEvent(QGraphicsSceneMouseEvent*) {
76 m_parent->container()->setUndoAware(true);

Callers

nothing calls this directly

Calls 3

setUndoAwareMethod · 0.80
containerMethod · 0.80
rectMethod · 0.80

Tested by

no test coverage detected