MCPcopy Create free account
hub / github.com/computationalpathologygroup/ASAP / mousePressEvent

Method mousePressEvent

ASAP/MiniMap.cpp:54–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52}
53
54void MiniMap::mousePressEvent(QMouseEvent *event) {
55 float posX = event->pos().x();
56 float posY = event->pos().y();
57 QPointF pos((_overview.width() * posX) / width() + 1, (_overview.height() * posY) / height() + 1);
58 emit positionClicked(pos);
59}
60
61void MiniMap::mouseMoveEvent(QMouseEvent *event) {
62 // Implement later, should pan like main image

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected