2 Situare - A location system for Facebook
3 Copyright (C) 2010 Ixonos Plc. Authors:
5 Ville Tiensuu - ville.tiensuu@ixonos.com
6 Sami Rämö - sami.ramo@ixonos.com
8 Situare is free software; you can redistribute it and/or
9 modify it under the terms of the GNU General Public License
10 version 2 as published by the Free Software Foundation.
12 Situare is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with Situare; if not, write to the Free Software
19 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
24 #include "friendlocationitem.h"
25 #include "mapcommon.h"
27 FriendLocationItem::FriendLocationItem(const QPixmap &icon,
29 : BaseLocationItem(parent),
32 qDebug() << __PRETTY_FUNCTION__;
35 setPos(UNDEFINED, UNDEFINED);
36 setZValue(FRIEND_LOCATION_ICON_Z_LEVEL);
37 setOffset(-icon.width()/2, -icon.height()/2);
40 bool FriendLocationItem::isPartOfGroup() const
45 void FriendLocationItem::mousePressEvent(QGraphicsSceneMouseEvent *event)
47 qDebug() << __PRETTY_FUNCTION__;
49 qDebug() << "Friends user ID is " << m_userId.toAscii();
50 emit iconClicked(m_userId);
53 void FriendLocationItem::setPartOfGroup(bool value)
55 m_partOfGroup = value;
63 QString FriendLocationItem::userId() const
65 qDebug() << __PRETTY_FUNCTION__;
69 void FriendLocationItem::setUserId(const QString &userId)
71 qDebug() << __PRETTY_FUNCTION__;
75 void FriendLocationItem::setProfileImageUrl(const QUrl &url)
77 qDebug() << __PRETTY_FUNCTION__;
78 m_profileImageUrl = url;
81 QUrl FriendLocationItem::profileImageUrl() const
83 qDebug() << __PRETTY_FUNCTION__;
84 return m_profileImageUrl;