QPointF coordinates(userMap["longitude"].toReal(), userMap["latitude"].toReal());
QUrl imageUrl = userMap["profile_pic"].toUrl();
- qWarning() << "JOOO1" << imageUrl;
QUrl imageUrlBig = userMap["pic_big"].toUrl();
- qWarning() << "JOOO2" << imageUrlBig;
if(imageUrl.isEmpty()) {
// user doesn't have profile image, so we need to get him a silhouette image
if(m_user->profileImageUrlBig() == url) {
m_user->setProfileImageBig(AvatarImage::create(image));
- qWarning() << "OTETTIIN VASTAAN SUURI PROFIILIKUVA";
}
for(int i=0;i<m_friendsList.count();i++) {
emit fetchImage(QUrl(SILHOUETTE_URL));
}
- if(!m_user->profileImageUrl().isEmpty() && m_user->profileImageUrl().isValid()) {
+ if(!m_user->profileImageUrl().isEmpty() && m_user->profileImageUrl().isValid())
emit fetchImage(m_user->profileImageUrl());
- qWarning() << "PROFILE IMAGE URL: " << m_user->profileImageUrl();
- }
if(!m_user->profileImageUrlBig().isEmpty() && m_user->profileImageUrlBig().isValid()) {
emit fetchImage(m_user->profileImageUrlBig());
- qWarning() << "PROFILE IMAGE URL BIG: " << m_user->profileImageUrlBig();
}
for(int i=0;i<m_friendsList.count();i++) {