Replace foreach function by for, please try and report problem

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4900 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
scorpio810
2017-02-04 21:43:23 +00:00
parent 6ed750b355
commit 6422dd096f
98 changed files with 606 additions and 606 deletions

View File

@@ -259,7 +259,7 @@ QPainterPath QetShapeItem::shape() const
else
vector = m_polygon;
foreach(QRectF r, m_handler.handlerRect(vector))
for (QRectF r: m_handler.handlerRect(vector))
path.addRect(r);
}
@@ -562,7 +562,7 @@ bool QetShapeItem::fromXml(const QDomElement &e)
m_P2.setY(e.attribute("y2", 0).toDouble());
}
else
foreach(QDomElement de, QET::findInDomElement(e, "points", "point"))
for (QDomElement de: QET::findInDomElement(e, "points", "point"))
m_polygon << QPointF(de.attribute("x", 0).toDouble(), de.attribute("y", 0).toDouble());
return (true);
@@ -596,7 +596,7 @@ QDomElement QetShapeItem::toXml(QDomDocument &document) const
else
{
QDomElement points = document.createElement("points");
foreach(QPointF p, m_polygon)
for (QPointF p: m_polygon)
{
QDomElement point = document.createElement("point");
QPointF pf = mapToScene(p);