Mercurial > hg > svgui
comparison view/Pane.cpp @ 1207:f91cf4a60ad6 3.0-integration
Comment some debug output
author | Chris Cannam <cannam@all-day-breakfast.com> |
---|---|
date | Tue, 03 Jan 2017 15:14:31 +0000 |
parents | 6828735468c9 |
children | 0a13a1de1d7e |
comparison
equal
deleted
inserted
replaced
1206:67f437277069 | 1207:f91cf4a60ad6 |
---|---|
2267 } | 2267 } |
2268 | 2268 |
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 | 2274 e->accept(); // we never want wheel events on the pane to be propagated |
2275 | 2275 |
2276 int dx = e->angleDelta().x(); | 2276 int dx = e->angleDelta().x(); |
2277 int dy = e->angleDelta().y(); | 2277 int dy = e->angleDelta().y(); |
2383 } | 2383 } |
2384 | 2384 |
2385 void | 2385 void |
2386 Pane::wheelHorizontal(int sign, Qt::KeyboardModifiers mods) | 2386 Pane::wheelHorizontal(int sign, Qt::KeyboardModifiers mods) |
2387 { | 2387 { |
2388 cerr << "wheelHorizontal: sign = " << sign << endl; | 2388 // cerr << "wheelHorizontal: sign = " << sign << endl; |
2389 | 2389 |
2390 // Scroll left or right, rapidly | 2390 // Scroll left or right, rapidly |
2391 | 2391 |
2392 wheelHorizontalFine((width() / 4) * sign, mods); | 2392 wheelHorizontalFine((width() / 4) * sign, mods); |
2393 } | 2393 } |
2394 | 2394 |
2395 void | 2395 void |
2396 Pane::wheelHorizontalFine(int pixels, Qt::KeyboardModifiers) | 2396 Pane::wheelHorizontalFine(int pixels, Qt::KeyboardModifiers) |
2397 { | 2397 { |
2398 cerr << "wheelHorizontalFine: pixels = " << pixels << endl; | 2398 // cerr << "wheelHorizontalFine: pixels = " << pixels << endl; |
2399 | 2399 |
2400 // Scroll left or right by a fixed number of pixels | 2400 // Scroll left or right by a fixed number of pixels |
2401 | 2401 |
2402 if (getStartFrame() < 0 && | 2402 if (getStartFrame() < 0 && |
2403 getEndFrame() >= getModelsEndFrame()) return; | 2403 getEndFrame() >= getModelsEndFrame()) return; |