feat: add graph traversal function

This commit is contained in:
parker
2025-07-06 14:29:25 +01:00
parent 58ac608f84
commit d6b630bc08
7 changed files with 73 additions and 35 deletions

View File

@@ -72,10 +72,8 @@ private:
template<typename T>
QGraphicsItem* itemOfType(QList<QGraphicsItem*> items)
{
// std::cout << "count: " << items.size() << "\n";
for(QGraphicsItem* item : items)
{
std::cout << "item: " << typeid(*item).name() << "\n";
if(item && typeid(*item)==typeid(T))
{
return item;