Fixed bug #5831: Friend groups do not always release friends when zooming in
[situare] / src / map / baselocationitem.h
index aa14dc7..72826a1 100644 (file)
 
 /**
 * @brief Baseclass for showing own and friends locations on the map.
-*        This class is abstract
 *
-* @class BaseLocationItem baselocationitem.h "map/baselocationitem.h"
-* @author Ville Tiensuu
+* @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.
@@ -47,35 +44,21 @@ public:
     */
     BaseLocationItem(QObject *parent = 0);
 
-    /*******************************************************************************
-    * MEMBER FUNCTIONS AND SLOTS
-    ******************************************************************************/
-    public:
-
+/*******************************************************************************
+ * MEMBER FUNCTIONS AND SLOTS
+ ******************************************************************************/
+public:
     /**
-    * @brief Hides item so that it is invisible on the map
+    * @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
     */
-    void hideLocation();
-
-    /**
-      *@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
-      */
     QRect sceneTransformedBoundingRect(int zoomLevel) const;
-
-    /**
-    * @brief Sets item to be visible on the map.
-    *        Item is visible by default, function is needed only when own location
-    *        needs to be set back visible after hideLocation function call.
-    */
-    void showLocation();
 };