show server name in the server list in bold font if it is a permanent server
This commit is contained in:
parent
0dad4efd37
commit
1b29d8034c
2 changed files with 7 additions and 1 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -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 );
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue