Mercurial > hg > svgui
diff widgets/Pane.cpp @ 19:46d8f5add6f0
* Introduce potentially-separate read and write ring buffers, so we can swap
in a new set when something changes -- thus allowing us to respond quickly
when something changes during playback, without losing the long buffers
* Some fixes for display & editing
author | Chris Cannam |
---|---|
date | Fri, 27 Jan 2006 18:04:07 +0000 |
parents | 7c767d41bcee |
children | 1deb5f87a18c |
line wrap: on
line diff
--- a/widgets/Pane.cpp Thu Jan 26 18:01:38 2006 +0000 +++ b/widgets/Pane.cpp Fri Jan 27 18:04:07 2006 +0000 @@ -227,12 +227,14 @@ } if (m_clickedInRange && m_shiftPressed) { - //!!! be nice if this looked a bit more in keeping with the - //selection block - paint.setPen(Qt::blue); - paint.drawRect(m_clickPos.x(), m_clickPos.y(), - m_mousePos.x() - m_clickPos.x(), - m_mousePos.y() - m_clickPos.y()); + if (m_manager && (m_manager->getToolMode() == ViewManager::NavigateMode)) { + //!!! be nice if this looked a bit more in keeping with the + //selection block + paint.setPen(Qt::blue); + paint.drawRect(m_clickPos.x(), m_clickPos.y(), + m_mousePos.x() - m_clickPos.x(), + m_mousePos.y() - m_clickPos.y()); + } } paint.end(); @@ -578,6 +580,7 @@ Layer *layer = getSelectedLayer(); if (layer) { layer->drawDrag(e); + update(); } } else if (mode == ViewManager::EditMode) { @@ -585,6 +588,7 @@ Layer *layer = getSelectedLayer(); if (layer) { layer->editDrag(e); + update(); } } } @@ -680,7 +684,7 @@ break; case ViewManager::EditMode: - setCursor(Qt::SizeAllCursor); + setCursor(Qt::UpArrowCursor); break; case ViewManager::DrawMode: