Fix NewFriendList item Font defined in QSS

This commit is contained in:
Phenom 2021-02-17 11:52:29 +01:00
parent 36b64696a1
commit 1293da2206
3 changed files with 9 additions and 2 deletions

View file

@ -608,6 +608,10 @@ QVariant RsFriendListModel::fontRole(const EntryIndex& e, int col) const
case RS_STATUS_INACTIVE:
{
QFont font ;
QTreeView* myParent = dynamic_cast<QTreeView*>(QAbstractItemModel::parent());
if (myParent)
font = myParent->font();
font.setBold(true);
return QVariant(font);