Commit e1446da0 authored by Friedemann Kleint's avatar Friedemann Kleint
Browse files

QmlDesigner: Avoid value-list creation when iterating over maps.



Change-Id: I945344f671515fc8a8104063e95fdac546f5635b
Reviewed-by: default avatarMarco Bubke <marco.bubke@digia.com>
parent dc6b2836
......@@ -46,20 +46,20 @@ SelectionIndicator::~SelectionIndicator()
void SelectionIndicator::show()
{
foreach (QGraphicsPolygonItem *item, m_indicatorShapeHash.values())
foreach (QGraphicsPolygonItem *item, m_indicatorShapeHash)
item->show();
}
void SelectionIndicator::hide()
{
foreach (QGraphicsPolygonItem *item, m_indicatorShapeHash.values())
foreach (QGraphicsPolygonItem *item, m_indicatorShapeHash)
item->hide();
}
void SelectionIndicator::clear()
{
if (m_layerItem) {
foreach (QGraphicsItem *item, m_indicatorShapeHash.values()) {
foreach (QGraphicsItem *item, m_indicatorShapeHash) {
m_layerItem->scene()->removeItem(item);
delete item;
}
......@@ -120,7 +120,7 @@ void SelectionIndicator::setCursor(const QCursor &cursor)
{
m_cursor = cursor;
foreach (QGraphicsItem *item, m_indicatorShapeHash.values())
foreach (QGraphicsItem *item, m_indicatorShapeHash)
item->setCursor(cursor);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment