Mercurial > hg > svgui
comparison view/Pane.cpp @ 339:ac954fc0ec6f
* Fix #1844539 confusing waveform navigator with secondary files
author | Chris Cannam |
---|---|
date | Wed, 12 Dec 2007 17:42:23 +0000 |
parents | 1d3b27e69bf0 |
children | 998786b3174f |
comparison
equal
deleted
inserted
replaced
338:1d3b27e69bf0 | 339:ac954fc0ec6f |
---|---|
387 if (e) r = e->rect(); | 387 if (e) r = e->rect(); |
388 | 388 |
389 View::paintEvent(e); | 389 View::paintEvent(e); |
390 | 390 |
391 paint.begin(this); | 391 paint.begin(this); |
392 | 392 setPaintFont(paint); |
393 QFont font(paint.font()); | |
394 font.setPointSize(Preferences::getInstance()->getViewFontSize()); | |
395 paint.setFont(font); | |
396 | 393 |
397 if (e) paint.setClipRect(r); | 394 if (e) paint.setClipRect(r); |
398 | 395 |
399 ViewManager::ToolMode toolMode = m_manager->getToolMode(); | 396 ViewManager::ToolMode toolMode = m_manager->getToolMode(); |
400 | 397 |
1676 newCentreFrame -= frameOff; | 1673 newCentreFrame -= frameOff; |
1677 } else { | 1674 } else { |
1678 newCentreFrame = 0; | 1675 newCentreFrame = 0; |
1679 } | 1676 } |
1680 | 1677 |
1678 std::cerr << "Pane::dragTopLayer: newCentreFrame = " << newCentreFrame << | |
1679 ", models end frame = " << getModelsEndFrame() << std::endl; | |
1680 | |
1681 if (newCentreFrame >= getModelsEndFrame()) { | 1681 if (newCentreFrame >= getModelsEndFrame()) { |
1682 newCentreFrame = getModelsEndFrame(); | 1682 newCentreFrame = getModelsEndFrame(); |
1683 if (newCentreFrame > 0) --newCentreFrame; | 1683 if (newCentreFrame > 0) --newCentreFrame; |
1684 } | 1684 } |
1685 | 1685 |