mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
Fix #1204
This commit is contained in:
parent
de423571eb
commit
ebf4af830d
|
@ -44,6 +44,7 @@ FriendWidget::FriendWidget(int FriendId, QString id)
|
||||||
{
|
{
|
||||||
avatar->setPixmap(QPixmap(":img/contact.svg"), Qt::transparent);
|
avatar->setPixmap(QPixmap(":img/contact.svg"), Qt::transparent);
|
||||||
statusPic.setPixmap(QPixmap(":img/status/dot_offline.svg"));
|
statusPic.setPixmap(QPixmap(":img/status/dot_offline.svg"));
|
||||||
|
statusPic.setMargin(3);
|
||||||
nameLabel->setText(id);
|
nameLabel->setText(id);
|
||||||
nameLabel->setTextFormat(Qt::PlainText);
|
nameLabel->setTextFormat(Qt::PlainText);
|
||||||
statusMessageLabel->setTextFormat(Qt::PlainText);
|
statusMessageLabel->setTextFormat(Qt::PlainText);
|
||||||
|
@ -170,6 +171,11 @@ void FriendWidget::updateStatusLight()
|
||||||
statusPic.setPixmap(QPixmap(":img/status/dot_offline.svg"));
|
statusPic.setPixmap(QPixmap(":img/status/dot_offline.svg"));
|
||||||
else if (status == Status::Offline && f->getEventFlag() == 1)
|
else if (status == Status::Offline && f->getEventFlag() == 1)
|
||||||
statusPic.setPixmap(QPixmap(":img/status/dot_offline_notification.svg"));
|
statusPic.setPixmap(QPixmap(":img/status/dot_offline_notification.svg"));
|
||||||
|
|
||||||
|
if (f->getEventFlag() == 0)
|
||||||
|
statusPic.setMargin(3);
|
||||||
|
else
|
||||||
|
statusPic.setMargin(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
void FriendWidget::setChatForm(Ui::MainWindow &ui)
|
void FriendWidget::setChatForm(Ui::MainWindow &ui)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user