diff options
author | Mateusz Piekos <mateuszpiekos@gmail.com> | 2012-07-24 08:53:00 (GMT) |
---|---|---|
committer | Mateusz Piekos <mateuszpiekos@gmail.com> | 2012-07-24 08:53:00 (GMT) |
commit | ed208c8ce62dea1bdec51e904d51afa5229363c5 (patch) | |
tree | dfbbcb7404f47b0868dc547d6e48b476fd40727e /Swift/QtUI/Whiteboard/GView.cpp | |
parent | 8b01b8de0477d7c6bb8dd7dd834fd147c7f9b86d (diff) | |
download | swift-contrib-ed208c8ce62dea1bdec51e904d51afa5229363c5.zip swift-contrib-ed208c8ce62dea1bdec51e904d51afa5229363c5.tar.bz2 |
Commented out code handling filled hand line
Diffstat (limited to 'Swift/QtUI/Whiteboard/GView.cpp')
-rw-r--r-- | Swift/QtUI/Whiteboard/GView.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Swift/QtUI/Whiteboard/GView.cpp b/Swift/QtUI/Whiteboard/GView.cpp index 8d5e2bc..5f10329 100644 --- a/Swift/QtUI/Whiteboard/GView.cpp +++ b/Swift/QtUI/Whiteboard/GView.cpp @@ -181,14 +181,14 @@ namespace Swift { } } else if (mode == FilledHandLine) { - QGraphicsPathItem* item = qgraphicsitem_cast<QGraphicsPathItem*>(lastItem); +/* QGraphicsPathItem* item = qgraphicsitem_cast<QGraphicsPathItem*>(lastItem); QPainterPath path; path = item->path(); if (path.isEmpty()) path.moveTo(item->data(0).toPointF()); QPointF newPoint = this->mapToScene(event->pos()); path.lineTo(newPoint); - item->setPath(path); + item->setPath(path);*/ } else if (mode == Polygon) { QGraphicsPolygonItem* item = qgraphicsitem_cast<QGraphicsPolygonItem*>(lastItem); @@ -276,7 +276,7 @@ namespace Swift { lastItem = item; } else if (mode == FilledHandLine) { - QPointF point = this->mapToScene(event->pos()); +/* QPointF point = this->mapToScene(event->pos()); QPainterPath path; QGraphicsPathItem* item = scene()->addPath(path, pen, brush); QString id = getNewID(); @@ -284,7 +284,7 @@ namespace Swift { item->setData(0, point); item->setData(100, id); item->setData(101, items_.size()); - lastItem = item; + lastItem = item;*/ } else if (mode == Text) { QPointF point = this->mapToScene(event->pos()); |