MCPcopy Create free account
hub / github.com/OpenMS/OpenMS / wheelEvent

Method wheelEvent

src/openms_gui/source/VISUAL/PlotCanvas.cpp:167–177  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

165 }
166
167 void PlotCanvas::wheelEvent(QWheelEvent* e)
168 {
169 /* Supressed warning int QWheelEvent::x() const and y() deprecated
170 * Use position() instead, from Qt 5.14; CONTRIB_UPDATE_Qt_5.14
171 */
172#pragma GCC diagnostic push
173#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
174 zoom_(e->x(), e->y(), e->delta() > 0);
175#pragma GCC diagnostic pop
176 e->accept();
177 }
178
179 void PlotCanvas::zoom_(int x, int y, bool zoom_in)
180 {

Callers

nothing calls this directly

Calls 1

deltaMethod · 0.80

Tested by

no test coverage detected