Fixed bug #5867.
[situare] / src / map / friendlocationitem.h
index 4cfbb9b..1e2526d 100644 (file)
@@ -99,6 +99,16 @@ public:
 
 protected:
     /**
+    * @brief method that detects when friend icon is moved
+    *
+    * Disables m_clickEvent flag if press and release where not
+    * in same area.
+    *
+    * @param event detects the mouse move (or touch in Maemo)
+    */
+    void mouseMoveEvent(QGraphicsSceneMouseEvent *event);
+
+    /**
     * @brief method that detects when friend icon is clicked
     *
     * @param event detects the mouse click (or touch in Maemo)
@@ -131,6 +141,7 @@ private:
     const QString m_userId; ///< Friends user ID. Can't be changed afterwards
     QUrl m_profileImageUrl; ///< Friends Facebook profile image URL
     QPoint m_mousePressPosition; ///< Mouse press position
+    bool m_clickEvent;          ///< Flag to mark click event
 };
 
 #endif // FRIENDLOCATIONITEM_H