From 1b29d8034c9f93103b1b397643065bb9a68bb7ea Mon Sep 17 00:00:00 2001 From: Volker Fischer Date: Mon, 15 Feb 2016 17:35:49 +0000 Subject: [PATCH] show server name in the server list in bold font if it is a permanent server --- ChangeLog | 1 + src/connectdlg.cpp | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 3dc0767e..b3acb3cf 100644 --- a/ChangeLog +++ b/ChangeLog @@ -4,6 +4,7 @@ - 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 diff --git a/src/connectdlg.cpp b/src/connectdlg.cpp index 692612c7..bad50099 100755 --- a/src/connectdlg.cpp +++ b/src/connectdlg.cpp @@ -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 - QFont CurPingTimeFont = pNewListViewItem->font ( 3 ); + QFont CurPingTimeFont = pNewListViewItem->font ( 1 ); CurPingTimeFont.setBold ( true ); pNewListViewItem->setFont ( 1, CurPingTimeFont );