|
|
|
@ -45,7 +45,7 @@ FriendWidget::FriendWidget(int FriendId, QString id)
@@ -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()
@@ -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()
@@ -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() |
|
|
|
|