comparison view/Pane.cpp @ 1172:ba379b4d4555 3.0-integration

Always accept wheel events
author Chris Cannam
date Wed, 30 Nov 2016 10:54:16 +0000
parents ee01a4062747
children e0ac21f07ab0
comparison
equal deleted inserted replaced
1171:84042e8c3c03 1172:ba379b4d4555
2269 void 2269 void
2270 Pane::wheelEvent(QWheelEvent *e) 2270 Pane::wheelEvent(QWheelEvent *e)
2271 { 2271 {
2272 cerr << "wheelEvent, delta " << e->delta() << ", angleDelta " << e->angleDelta().x() << "," << e->angleDelta().y() << ", pixelDelta " << e->pixelDelta().x() << "," << e->pixelDelta().y() << ", modifiers " << e->modifiers() << endl; 2272 cerr << "wheelEvent, delta " << e->delta() << ", angleDelta " << e->angleDelta().x() << "," << e->angleDelta().y() << ", pixelDelta " << e->pixelDelta().x() << "," << e->pixelDelta().y() << ", modifiers " << e->modifiers() << endl;
2273 2273
2274 e->accept(); // we never want wheel events on the pane to be propagated
2275
2274 int dx = e->angleDelta().x(); 2276 int dx = e->angleDelta().x();
2275 int dy = e->angleDelta().y(); 2277 int dy = e->angleDelta().y();
2276 2278
2277 if (dx == 0 && dy == 0) { 2279 if (dx == 0 && dy == 0) {
2278 return; 2280 return;