Removed the Point class and replace all instances by QPointF.

This commit is contained in:
Tats
2014-02-09 01:02:13 -05:00
parent 34156f4129
commit 195c426991
7 changed files with 102 additions and 103 deletions
+3 -3
View File
@@ -102,10 +102,10 @@ void ProjectWriter::writeShapeVertices(Shape *shape)
for (int i = 0; i < shape->nVertices(); i++)
{
Point *point = shape->getVertex(i);
const QPointF& point = shape->getVertex(i);
_xml.writeStartElement("vertex");
_xml.writeAttribute("x", QString::number(point->x()));
_xml.writeAttribute("y", QString::number(point->y()));
_xml.writeAttribute("x", QString::number(point.x()));
_xml.writeAttribute("y", QString::number(point.y()));
_xml.writeEndElement(); // vertex
}
}