QTfrontend/drawmapscene.cpp
changeset 4938 0985edac2ad7
parent 4937 55b9145fea94
child 4976 088d40d8aba2
equal deleted inserted replaced
4937:55b9145fea94 4938:0985edac2ad7
    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