/**
-* @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.
- * Sets parent.
- *
- * @param parent
- */
+ * @brief Constructor of BaseLocationItem.
+ * Sets parent.
+ *
+ * @param parent
+ */
BaseLocationItem(QObject *parent = 0);
/*******************************************************************************
******************************************************************************/
public:
/**
- * @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
- */
+ * @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;
};