mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
Oops, forgot about groups
This commit is contained in:
parent
ebf4af830d
commit
6164426b13
|
@ -172,7 +172,7 @@ void FriendWidget::updateStatusLight()
|
||||||
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)
|
if (!f->getEventFlag())
|
||||||
statusPic.setMargin(3);
|
statusPic.setMargin(3);
|
||||||
else
|
else
|
||||||
statusPic.setMargin(0);
|
statusPic.setMargin(0);
|
||||||
|
|
|
@ -37,6 +37,7 @@ GroupWidget::GroupWidget(int GroupId, QString Name)
|
||||||
{
|
{
|
||||||
avatar->setPixmap(Style::scaleSvgImage(":img/group.svg", avatar->width(), avatar->height()), Qt::transparent);
|
avatar->setPixmap(Style::scaleSvgImage(":img/group.svg", avatar->width(), avatar->height()), Qt::transparent);
|
||||||
statusPic.setPixmap(QPixmap(":img/status/dot_online.svg"));
|
statusPic.setPixmap(QPixmap(":img/status/dot_online.svg"));
|
||||||
|
statusPic.setMargin(3);
|
||||||
nameLabel->setText(Name);
|
nameLabel->setText(Name);
|
||||||
|
|
||||||
Group* g = GroupList::findGroup(groupId);
|
Group* g = GroupList::findGroup(groupId);
|
||||||
|
@ -107,9 +108,15 @@ void GroupWidget::updateStatusLight()
|
||||||
Group *g = GroupList::findGroup(groupId);
|
Group *g = GroupList::findGroup(groupId);
|
||||||
|
|
||||||
if (!g->getEventFlag())
|
if (!g->getEventFlag())
|
||||||
|
{
|
||||||
statusPic.setPixmap(QPixmap(":img/status/dot_online.svg"));
|
statusPic.setPixmap(QPixmap(":img/status/dot_online.svg"));
|
||||||
|
statusPic.setMargin(3);
|
||||||
|
}
|
||||||
else
|
else
|
||||||
|
{
|
||||||
statusPic.setPixmap(QPixmap(":img/status/dot_online_notification.svg"));
|
statusPic.setPixmap(QPixmap(":img/status/dot_online_notification.svg"));
|
||||||
|
statusPic.setMargin(0);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void GroupWidget::setChatForm(Ui::MainWindow &ui)
|
void GroupWidget::setChatForm(Ui::MainWindow &ui)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user