Commit 1669de48 authored by Marco Bubke's avatar Marco Bubke Committed by Kai Koehne
Browse files

Remove old function

parent 749047aa
......@@ -122,35 +122,5 @@ void GraphicsSceneNodeInstance::setVisible(bool /*isVisible*/)
}
QList<NodeInstance> GraphicsSceneNodeInstance::instancesInRegions(const QList<QRectF> &regions)
{
QRectF combinedRect;
foreach (const QRectF &rect, regions) {
combinedRect = combinedRect.united(rect);
}
QList<QGraphicsItem*> itemList;
// collect list of possibly changed items
// (actually QGraphicsScene could export this)
foreach (QGraphicsItem *item, graphicsScene()->items(combinedRect.adjusted(0, 0, 1, 1), Qt::ContainsItemBoundingRect)) {
if (!itemList.contains(item))
itemList.append(item);
}
QList<NodeInstance> instances;
if (!itemList.isEmpty()) {
foreach (const NodeInstance &nodeInstance, nodeInstanceView()->instances()) {
foreach (QGraphicsItem *gvItem, itemList) {
if (nodeInstance.equalGraphicsItem(gvItem)) {
instances += nodeInstance;
}
}
}
}
return instances;
}
}
}
......@@ -63,8 +63,6 @@ public:
bool isVisible() const;
void setVisible(bool isVisible);
QList<NodeInstance> instancesInRegions(const QList<QRectF> &region);
protected:
GraphicsSceneNodeInstance(QGraphicsScene *scene);
QGraphicsScene *graphicsScene() const;
......
Supports Markdown
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