diff options
author | Mateusz Piekos <mateuszpiekos@gmail.com> | 2012-08-06 06:45:58 (GMT) |
---|---|---|
committer | Mateusz Piekos <mateuszpiekos@gmail.com> | 2012-08-06 06:45:58 (GMT) |
commit | 3bd331df2fc2ba7b6b201cd3a5dfda326ffb262d (patch) | |
tree | fb8710c51725e21a0895f7ec604b4f9a2b222108 /Swift/QtUI/Whiteboard/GView.cpp | |
parent | 75698ca17add2101fcbeac0e694044307474f924 (diff) | |
download | swift-contrib-3bd331df2fc2ba7b6b201cd3a5dfda326ffb262d.zip swift-contrib-3bd331df2fc2ba7b6b201cd3a5dfda326ffb262d.tar.bz2 |
Removed useless filledhandline icon
Diffstat (limited to 'Swift/QtUI/Whiteboard/GView.cpp')
-rw-r--r-- | Swift/QtUI/Whiteboard/GView.cpp | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/Swift/QtUI/Whiteboard/GView.cpp b/Swift/QtUI/Whiteboard/GView.cpp index d9c94a9..b26f0bb 100644 --- a/Swift/QtUI/Whiteboard/GView.cpp +++ b/Swift/QtUI/Whiteboard/GView.cpp @@ -190,16 +190,6 @@ namespace Swift { item->lineTo(newPoint); } } - else if (mode == FilledHandLine) { -/* 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);*/ - } else if (mode == Polygon) { QGraphicsPolygonItem* item = qgraphicsitem_cast<QGraphicsPolygonItem*>(lastItem); QPointF newPoint = this->mapToScene(event->pos()); @@ -279,17 +269,6 @@ namespace Swift { scene()->addItem(item); lastItem = item; } - else if (mode == FilledHandLine) { -/* QPointF point = this->mapToScene(event->pos()); - QPainterPath path; - QGraphicsPathItem* item = scene()->addPath(path, pen, brush); - QString id = getNewID(); - item->setZValue(10000000); - item->setData(0, point); - item->setData(100, id); - item->setData(101, items_.size()); - lastItem = item;*/ - } else if (mode == Text) { QPointF point = this->mapToScene(event->pos()); QGraphicsTextItem* item = scene()->addText(""); |