MCPcopy Create free account
hub / github.com/TeXworks/texworks / mouseReleaseEvent

Method mouseReleaseEvent

modules/QtPDF/src/PDFDocumentTools.cpp:55–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53}
54
55void AbstractTool::mouseReleaseEvent(QMouseEvent * event)
56{
57 // If the last mouse button was released, we arm the tool corresponding to the
58 // left mouse button by default
59 Qt::MouseButtons buttons = event->buttons();
60 if (buttons == Qt::NoButton)
61 buttons |= Qt::LeftButton;
62
63 if (_parent)
64 _parent->maybeArmTool(buttons | event->modifiers());
65}
66
67
68// ZoomIn

Callers

nothing calls this directly

Calls 12

maybeArmToolMethod · 0.80
zoomInMethod · 0.80
zoomOutMethod · 0.80
boundingRectMethod · 0.80
hideMethod · 0.80
zoomToRectMethod · 0.80
viewportMethod · 0.80
foreachFunction · 0.70
typeMethod · 0.45
pageNumMethod · 0.45
mapToPageMethod · 0.45

Tested by

no test coverage detected