summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swift/QtUI/Whiteboard/GView.cpp')
-rw-r--r--Swift/QtUI/Whiteboard/GView.cpp8
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());