mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-01-20 12:21:37 -05:00
display Avatar icons on second item in MessengerWindow, when no Avatar pictures is available show a default one.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2742 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
a5fc5e88e8
commit
26a5d6d11a
@ -486,18 +486,21 @@ void MessengerWindow::insertPeers()
|
|||||||
avatar.loadFromData(data,size,"PNG") ;
|
avatar.loadFromData(data,size,"PNG") ;
|
||||||
QIcon avatar_icon(avatar);
|
QIcon avatar_icon(avatar);
|
||||||
QSize av_icon_size(100, 100);
|
QSize av_icon_size(100, 100);
|
||||||
gpg_item-> setIcon(0, avatar_icon);
|
gpg_item-> setIcon(1, avatar_icon);
|
||||||
delete[] data;
|
delete[] data;
|
||||||
|
|
||||||
}else
|
}else
|
||||||
if(it->status == RS_STATUS_ONLINE)
|
{
|
||||||
gpg_item -> setIcon(0,(QIcon(IMAGE_ONLINE)));
|
gpg_item -> setIcon(1,(QIcon(":/images/no_avatar.png")));
|
||||||
else
|
}
|
||||||
if(it->status == RS_STATUS_AWAY)
|
if(it->status == RS_STATUS_ONLINE)
|
||||||
gpg_item -> setIcon(0,(QIcon(IMAGE_AWAY)));
|
gpg_item -> setIcon(0,(QIcon(IMAGE_ONLINE)));
|
||||||
else
|
else
|
||||||
if(it->status == RS_STATUS_BUSY)
|
if(it->status == RS_STATUS_AWAY)
|
||||||
gpg_item -> setIcon(0,(QIcon(IMAGE_BUSY)));
|
gpg_item -> setIcon(0,(QIcon(IMAGE_AWAY)));
|
||||||
|
else
|
||||||
|
if(it->status == RS_STATUS_BUSY)
|
||||||
|
gpg_item -> setIcon(0,(QIcon(IMAGE_BUSY)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user