/**
- * @brief Baseclass for showing own and friends locations on the map.
- *
- * @author Ville Tiensuu - ville.tiensuu@ixonos.com
- * @author Sami Rämö - sami.ramo@ixonos.com
- */
+* @brief Baseclass for showing own and friends locations on the map.
+*
+* @author Ville Tiensuu - ville.tiensuu@ixonos.com
+* @author Sami Rämö - sami.ramo@ixonos.com
+*/
class BaseLocationItem : public QGraphicsPixmapItem, public QObject
-{
+{
+
public:
/**
* @brief Constructor of BaseLocationItem.
******************************************************************************/
public:
/**
- *@brief 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.
- *
- * @param zoomLevel Zoom level for which the sceneBoundingRect should be transformed
- * @return sceneBoundingRect transformed to given zoom level
- */
+ * @brief Return item rect transformed to given zoom level
+ *
+ * Because of using ItemIgnoresTransformations, and not scaling the item, the default
+ * sceneBoundingRect can't be used because it always returns the lowest map tile level scene
+ * bounding rect. This method does return rect scaled to given zoom level.
+ *
+ * @param zoomLevel Zoom level for which the sceneBoundingRect should be transformed
+ * @return sceneBoundingRect transformed to given zoom level
+ */
QRect sceneTransformedBoundingRect(int zoomLevel) const;
};