use toString function instead of showing IP:port separately
This commit is contained in:
parent
0fecef8aa8
commit
ef661255a4
1 changed files with 2 additions and 3 deletions
|
@ -318,9 +318,8 @@ void CLlconServerDlg::OnTimer()
|
|||
if ( !( vecHostAddresses[i].InetAddr == QHostAddress ( (quint32) 0 ) ) )
|
||||
{
|
||||
// IP, port number
|
||||
vecpListViewItems[i]->setText ( 0, QString("%1 : %2" ).
|
||||
arg ( vecHostAddresses[i].InetAddr.toString() ).
|
||||
arg ( vecHostAddresses[i].iPort ) );
|
||||
vecpListViewItems[i]->setText ( 0,
|
||||
vecHostAddresses[i].toString ( CHostAddress::SM_IP_PORT ) );
|
||||
|
||||
// name
|
||||
vecpListViewItems[i]->setText ( 1, vecsName[i] );
|
||||
|
|
Loading…
Reference in a new issue