Baseclass for showing own and friends locations on the map. More...
#include <baselocationitem.h>
Public Member Functions | |
BaseLocationItem (QObject *parent=0) | |
Constructor of BaseLocationItem. Sets parent. | |
QRect | sceneTransformedBoundingRect (int zoomLevel) const |
Return item sceneBoundingRect transformed to given zoom level. |
Baseclass for showing own and friends locations on the map.
BaseLocationItem::BaseLocationItem | ( | QObject * | parent = 0 |
) |
Constructor of BaseLocationItem. Sets parent.
parent |
QRect BaseLocationItem::sceneTransformedBoundingRect | ( | int | zoomLevel | ) | const |
Return item sceneBoundingRect transformed to given zoom level.
Because of using ItemIgnoresTransformations, and not scaling the item, the default sceneBoundingRect does always return the lowest map tile level scene bounding rect which must be scaled to current zoom level.
zoomLevel | Zoom level for which the sceneBoundingRect should be transformed |