mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-15 10:54:22 -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") ;
|
||||
QIcon avatar_icon(avatar);
|
||||
QSize av_icon_size(100, 100);
|
||||
gpg_item-> setIcon(0, avatar_icon);
|
||||
gpg_item-> setIcon(1, avatar_icon);
|
||||
delete[] data;
|
||||
|
||||
}else
|
||||
if(it->status == RS_STATUS_ONLINE)
|
||||
gpg_item -> setIcon(0,(QIcon(IMAGE_ONLINE)));
|
||||
else
|
||||
if(it->status == RS_STATUS_AWAY)
|
||||
gpg_item -> setIcon(0,(QIcon(IMAGE_AWAY)));
|
||||
else
|
||||
if(it->status == RS_STATUS_BUSY)
|
||||
gpg_item -> setIcon(0,(QIcon(IMAGE_BUSY)));
|
||||
{
|
||||
gpg_item -> setIcon(1,(QIcon(":/images/no_avatar.png")));
|
||||
}
|
||||
if(it->status == RS_STATUS_ONLINE)
|
||||
gpg_item -> setIcon(0,(QIcon(IMAGE_ONLINE)));
|
||||
else
|
||||
if(it->status == RS_STATUS_AWAY)
|
||||
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