From 76e5876f0ae9c735db8c49b15039a61286be15da Mon Sep 17 00:00:00 2001 From: krepa098 Date: Sat, 27 Sep 2014 17:45:38 +0200 Subject: [PATCH] set default avatar to contact_dark.png, removed active/inactive avatar switching --- widget/friendwidget.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/widget/friendwidget.cpp b/widget/friendwidget.cpp index c15ee03cc..6cea7ad03 100644 --- a/widget/friendwidget.cpp +++ b/widget/friendwidget.cpp @@ -45,7 +45,7 @@ FriendWidget::FriendWidget(int FriendId, QString id) setLayoutDirection(Qt::LeftToRight); // parent might have set Qt::RightToLeft avatar = new MaskablePixmapWidget(this, QSize(40,40), ":/img/avatar_mask.png"); - avatar->setPixmap(QPixmap(":img/contact.png")); + avatar->setPixmap(QPixmap(":img/contact_dark.png")); name.setText(id); //statusPic.setAlignment(Qt::AlignHCenter); statusPic.setPixmap(QPixmap(":img/status/dot_away.png")); @@ -140,8 +140,6 @@ void FriendWidget::setAsActiveChatroom() QPalette pal3; pal3.setColor(QPalette::Background, Qt::white); this->setPalette(pal3); - if (isDefaultAvatar) - avatar->setPixmap(QPixmap(":img/contact_dark.png")); } void FriendWidget::setAsInactiveChatroom() @@ -160,9 +158,6 @@ void FriendWidget::setAsInactiveChatroom() QPalette pal3; pal3.setColor(QPalette::Background, QColor(65,65,65,255)); this->setPalette(pal3); - - if (isDefaultAvatar) - avatar->setPixmap(QPixmap(":img/contact.png")); } void FriendWidget::updateStatusLight()