mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-23 00:01:21 -04:00
Added two new images from defnax to SecurityItem for SEC_TYPE_CONNECT_ATTEMPT and SEC_TYPE_UNKNOWN_IN.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5060 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
b32fddb3e0
commit
fae86aff3b
5 changed files with 13 additions and 2 deletions
|
@ -39,6 +39,7 @@ AvatarWidget::AvatarWidget(QWidget *parent) :
|
|||
|
||||
mFlag.isOwnId = false;
|
||||
mFlag.isGpg = false;
|
||||
defaultAvatar = ":/images/no_avatar_background.png";
|
||||
|
||||
setFrameType(NO_FRAME);
|
||||
|
||||
|
@ -137,6 +138,12 @@ void AvatarWidget::setOwnId()
|
|||
setId(rsPeers->getOwnId(), false);
|
||||
}
|
||||
|
||||
void AvatarWidget::setDefaultAvatar(const QString &avatar)
|
||||
{
|
||||
defaultAvatar = avatar;
|
||||
updateAvatar(QString::fromStdString(mId));
|
||||
}
|
||||
|
||||
void AvatarWidget::refreshStatus()
|
||||
{
|
||||
switch (mFrameType) {
|
||||
|
@ -226,8 +233,6 @@ void AvatarWidget::updateStatus(const QString peerId, int status)
|
|||
|
||||
void AvatarWidget::updateAvatar(const QString &peerId)
|
||||
{
|
||||
QString defaultAvatar = ":/images/no_avatar_background.png";
|
||||
|
||||
if (mId.empty()) {
|
||||
QPixmap avatar(defaultAvatar);
|
||||
ui->avatar->setPixmap(avatar);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue