comparison view/Overview.cpp @ 817:24f18a7dd26d tonioni

Merge from default branch, and update to make sure we retain the DAW-style scrolling (page without moving playhead on scroll)
author Chris Cannam
date Wed, 02 Jul 2014 19:22:05 +0100
parents 40c6c9344ff6
children 8bb9320f78a4
comparison
equal deleted inserted replaced
816:7b6c5fce5f84 817:24f18a7dd26d
286 std::min(m_centreFrame, newCentreFrame) > int(m_zoomLevel)) { 286 std::min(m_centreFrame, newCentreFrame) > int(m_zoomLevel)) {
287 int rf = alignToReference(newCentreFrame); 287 int rf = alignToReference(newCentreFrame);
288 #ifdef DEBUG_OVERVIEW 288 #ifdef DEBUG_OVERVIEW
289 cerr << "Overview::mouseMoveEvent: x " << e->x() << " and click x " << m_clickPos.x() << " -> frame " << newCentreFrame << " -> rf " << rf << endl; 289 cerr << "Overview::mouseMoveEvent: x " << e->x() << " and click x " << m_clickPos.x() << " -> frame " << newCentreFrame << " -> rf " << rf << endl;
290 #endif 290 #endif
291 emit centreFrameChanged(rf, true, PlaybackScrollContinuous); 291 if (m_followPlay == PlaybackScrollContinuous ||
292 m_followPlay == PlaybackScrollPageWithCentre) {
293 emit centreFrameChanged(rf, true, PlaybackScrollContinuous);
294 } else {
295 emit centreFrameChanged(rf, true, PlaybackIgnore);
296 }
292 } 297 }
293 } 298 }
294 299
295 void 300 void
296 Overview::mouseDoubleClickEvent(QMouseEvent *e) 301 Overview::mouseDoubleClickEvent(QMouseEvent *e)