#include <QHashIterator>
#include <QRect>
+#include "frienditemshandler.h"
#include "mapengine.h"
#include "maptile.h"
connect(m_mapZoomPanel, SIGNAL(zoomInPressed()), this, SLOT(zoomIn()));
connect(m_mapZoomPanel, SIGNAL(zoomOutPressed()), this, SLOT(zoomOut()));
- m_ownLocation = new OwnLocationItem(QPointF());
+ /// @todo VILLE: m_ownLocation ei poisteta mikäli ei koskaan saa tietoa sijainnista jolloin vasta
+ /// lisätään sceneen
+ m_ownLocation = new OwnLocationItem(QPointF());
+
+ m_friendItemsHandler = new FriendItemsHandler(this);
}
MapEngine::~MapEngine()
friendLocation->setUserId(friendsList.at(i)->userId());
m_friendItems.append(friendLocation);
m_mapScene->addItem(friendLocation);
+
+ m_friendItemsHandler->refactorFriendItems();
}
}