MCPcopy Create free account
hub / github.com/Theverat/NormalmapGenerator / mouseReleaseEvent

Method mouseReleaseEvent

src_gui/graphicsview.cpp:57–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55}
56
57void GraphicsView::mouseReleaseEvent(QMouseEvent *event) {
58 QGraphicsView::mouseReleaseEvent(event);
59
60 if(event->button() == Qt::RightButton) {
61 //rightclick -> reset image scale to 1:1
62 emit rightClick();
63 }
64 else if(event->button() == Qt::MiddleButton) {
65 //middle click -> fit image to view
66 emit middleClick();
67 }
68}
69
70void GraphicsView::wheelEvent(QWheelEvent *event) {
71 if(event->delta() > 0) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected