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

@@ -49,7 +49,7 @@ DiagramEventAddShape::~DiagramEventAddShape()
delete m_help_horiz;
delete m_help_verti;
foreach (QGraphicsView *v, m_diagram->views())
for (QGraphicsView *v: m_diagram->views())
v->setContextMenuPolicy(Qt::DefaultContextMenu);
}
@@ -191,7 +191,7 @@ bool DiagramEventAddShape::mouseDoubleClickEvent(QGraphicsSceneMouseEvent *event
void DiagramEventAddShape::init()
{
foreach (QGraphicsView *v, m_diagram->views())
for (QGraphicsView *v: m_diagram->views())
v->setContextMenuPolicy(Qt::NoContextMenu);
}