equal
deleted
inserted
replaced
32 { |
32 { |
33 if(m_currPath && (mouseEvent->buttons() & Qt::LeftButton)) |
33 if(m_currPath && (mouseEvent->buttons() & Qt::LeftButton)) |
34 { |
34 { |
35 QPainterPath path = m_currPath->path(); |
35 QPainterPath path = m_currPath->path(); |
36 |
36 |
37 if(mouseEvent->modifiers() & Qt::AltModifier) |
37 if(mouseEvent->modifiers() & Qt::ControlModifier) |
38 { |
38 { |
39 int c = path.elementCount(); |
39 int c = path.elementCount(); |
40 QPointF pos = mouseEvent->scenePos(); |
40 QPointF pos = mouseEvent->scenePos(); |
41 path.setElementPositionAt(c - 1, pos.x(), pos.y()); |
41 path.setElementPositionAt(c - 1, pos.x(), pos.y()); |
42 |
42 |