use toString function instead of showing IP:port separately

This commit is contained in:
Volker Fischer 2011-05-05 20:54:04 +00:00
parent 0fecef8aa8
commit ef661255a4

View File

@ -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] );