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 ) ) )
|
if ( !( vecHostAddresses[i].InetAddr == QHostAddress ( (quint32) 0 ) ) )
|
||||||
{
|
{
|
||||||
// IP, port number
|
// IP, port number
|
||||||
vecpListViewItems[i]->setText ( 0, QString("%1 : %2" ).
|
vecpListViewItems[i]->setText ( 0,
|
||||||
arg ( vecHostAddresses[i].InetAddr.toString() ).
|
vecHostAddresses[i].toString ( CHostAddress::SM_IP_PORT ) );
|
||||||
arg ( vecHostAddresses[i].iPort ) );
|
|
||||||
|
|
||||||
// name
|
// name
|
||||||
vecpListViewItems[i]->setText ( 1, vecsName[i] );
|
vecpListViewItems[i]->setText ( 1, vecsName[i] );
|
||||||
|
|
Loading…
Add table
Reference in a new issue