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:
defnax 2010-04-20 14:34:44 +00:00
parent a5fc5e88e8
commit 26a5d6d11a

View File

@ -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)));
}
}
}