# HG changeset patch # User Chris Cannam # Date 1138901468 0 # Node ID 5da86cc182bd36eb82c78fe9025265b0923060cf # Parent 742e6882e18786fd69ce2d734c9394ee32277cda * Add natty segmentation display to time-value layer. Need to do the same for time-instants layer. * Make sure dense 3D model bin names are saved and restored properly. * Fix to chromagram normalization diff -r 742e6882e187 -r 5da86cc182bd base/View.cpp --- a/base/View.cpp Thu Feb 02 16:10:19 2006 +0000 +++ b/base/View.cpp Thu Feb 02 17:31:08 2006 +0000 @@ -516,17 +516,15 @@ m_playPointerFrame = f; if (!visible) return; - if (QApplication::keyboardModifiers() != Qt::NoModifier) { - std::cerr << "View::viewManagerPlaybackFrameChanged: modifiers == " - << QApplication::keyboardModifiers() - << std::endl; - } + bool modifierPressed = // we only care about these ones + ((QApplication::keyboardModifiers() & Qt::ShiftModifier) || + (QApplication::keyboardModifiers() & Qt::ControlModifier)); switch (m_followPlay) { case PlaybackScrollContinuous: if (QApplication::mouseButtons() == Qt::NoButton && - QApplication::keyboardModifiers() == Qt::NoModifier) { + !modifierPressed) { setCentreFrame(f, false); } break; @@ -568,7 +566,7 @@ if (xnew < width()/8 || xnew > (width()*7)/8) { if (QApplication::mouseButtons() == Qt::NoButton && - QApplication::keyboardModifiers() == Qt::NoModifier) { + !modifierPressed) { long offset = getFrameForX(width()/2) - getStartFrame(); long newCentre = sf + offset; bool changed = setCentreFrame(newCentre, false);