Mercurial > hg > svgui
comparison view/Pane.cpp @ 387:f329416bf1a5
* Permit holding Shift while dragging an instant or other edited thing,
to override the initial drag resistance (for #1928943 sticky time
instants)
* better handling of updates during progressive decode load
* ready() signal from model (used by vect)
author | Chris Cannam |
---|---|
date | Mon, 19 May 2008 17:23:11 +0000 |
parents | c0818f064e66 |
children | 46a6daf1119b |
comparison
equal
deleted
inserted
replaced
386:590b899b7e45 | 387:f329416bf1a5 |
---|---|
1555 } | 1555 } |
1556 } | 1556 } |
1557 | 1557 |
1558 if (!m_editing) { | 1558 if (!m_editing) { |
1559 | 1559 |
1560 bool resist = true; | |
1561 | |
1562 if ((e->modifiers() & Qt::ShiftModifier)) { | |
1563 m_shiftPressed = true; | |
1564 // ... but don't set it false if shift has been | |
1565 // released -- we want the state when we started | |
1566 // dragging to be used most of the time | |
1567 } | |
1568 | |
1569 if (m_shiftPressed) resist = false; | |
1570 | |
1560 DragMode newDragMode = updateDragMode | 1571 DragMode newDragMode = updateDragMode |
1561 (m_dragMode, | 1572 (m_dragMode, |
1562 m_clickPos, | 1573 m_clickPos, |
1563 e->pos(), | 1574 e->pos(), |
1564 true, // can move horiz | 1575 true, // can move horiz |
1565 true, // can move vert | 1576 true, // can move vert |
1566 true, // resist horiz | 1577 resist, // resist horiz |
1567 true); // resist vert | 1578 resist); // resist vert |
1568 | 1579 |
1569 if (newDragMode != UnresolvedDrag) { | 1580 if (newDragMode != UnresolvedDrag) { |
1570 | 1581 |
1571 m_editing = true; | 1582 m_editing = true; |
1572 | 1583 |