equal
deleted
inserted
replaced
84 emit pathChanged(); |
84 emit pathChanged(); |
85 } |
85 } |
86 |
86 |
87 void DrawMapScene::mouseReleaseEvent(QGraphicsSceneMouseEvent * mouseEvent) |
87 void DrawMapScene::mouseReleaseEvent(QGraphicsSceneMouseEvent * mouseEvent) |
88 { |
88 { |
89 Q_UNUSED(mouseEvent); |
89 QPainterPath path = m_currPath->path(); |
|
90 path.lineTo(mouseEvent->scenePos()); |
|
91 paths.first().append(mouseEvent->scenePos().toPoint()); |
|
92 m_currPath->setPath(path); |
90 |
93 |
91 simplifyLast(); |
94 simplifyLast(); |
92 |
95 |
93 m_currPath = 0; |
96 m_currPath = 0; |
94 } |
97 } |