lobby-userlist-contacts-bold

This commit is contained in:
retrop00h 2026-03-14 14:07:21 +03:00
parent b020001906
commit 122b6666f7

View File

@ -633,6 +633,15 @@ void ChatLobbyDialog::updateParticipantsList()
widgetitem->setData(COLUMN_NAME, Qt::ForegroundRole, QVariant());
}
// Mark contacts in bold
RsIdentityDetails detail;
bool isContact = rsIdentity->getIdDetails(it2->first, detail)
&& (detail.mFlags & RS_IDENTITY_FLAGS_IS_A_CONTACT);
QFont nameFont = widgetitem->font(COLUMN_NAME);
nameFont.setBold(isContact);
widgetitem->setFont(COLUMN_NAME, nameFont);
time_t tLastAct=widgetitem->text(COLUMN_ACTIVITY).toInt();
time_t now = time(NULL);