author | unc0rr |
Tue, 22 Mar 2011 19:27:14 +0300 | |
changeset 5040 | c6cd873ac13a |
parent 5039 | 2376d5899ff9 |
child 5041 | 3dc6ad20cbfe |
--- a/QTfrontend/drawmapscene.cpp Tue Mar 22 01:30:51 2011 -0400 +++ b/QTfrontend/drawmapscene.cpp Tue Mar 22 19:27:14 2011 +0300 @@ -86,7 +86,10 @@ void DrawMapScene::mouseReleaseEvent(QGraphicsSceneMouseEvent * mouseEvent) { - Q_UNUSED(mouseEvent); + QPainterPath path = m_currPath->path(); + path.lineTo(mouseEvent->scenePos()); + paths.first().append(mouseEvent->scenePos().toPoint()); + m_currPath->setPath(path); simplifyLast();