show server name in the server list in bold font if it is a permanent server

This commit is contained in:
Volker Fischer 2016-02-15 17:35:49 +00:00
parent 0dad4efd37
commit 1b29d8034c
2 changed files with 7 additions and 1 deletions

View file

@ -4,6 +4,7 @@
- removed old CELT library (minimum compatible version is now 3.3.1) - removed old CELT library (minimum compatible version is now 3.3.1)
- show server name in the server list in bold font if it is a permanent server

View file

@ -268,8 +268,13 @@ void CConnectDlg::SetServerList ( const CHostAddress& InetAddr,
} }
} }
// show server name in bold font if it is a permanent server
QFont CurServerNameFont = pNewListViewItem->font ( 0 );
CurServerNameFont.setBold ( vecServerInfo[iIdx].bPermanentOnline );
pNewListViewItem->setFont ( 0, CurServerNameFont );
// the ping time shall be shown in bold font // the ping time shall be shown in bold font
QFont CurPingTimeFont = pNewListViewItem->font ( 3 ); QFont CurPingTimeFont = pNewListViewItem->font ( 1 );
CurPingTimeFont.setBold ( true ); CurPingTimeFont.setBold ( true );
pNewListViewItem->setFont ( 1, CurPingTimeFont ); pNewListViewItem->setFont ( 1, CurPingTimeFont );