@@ -460,6 +460,12 @@ void CConnectDlg::SetServerList ( const CHostAddress& InetAddr, const CVector<CS
460460 {
461461 lvwServers->expandItem ( pNewListViewItem );
462462 }
463+
464+ // accessibility
465+ for ( int i = 0 ; i < lvwServers->columnCount (); i++ )
466+ {
467+ lvwServers->setItemWidget ( pNewListViewItem, i, new QPushButton ( pNewListViewItem->text ( i ) ) );
468+ }
463469 }
464470
465471 // immediately issue the ping measurements and start the ping timer since
@@ -883,6 +889,7 @@ void CConnectDlg::SetPingTimeAndNumClientsResult ( const CHostAddress& InetAddr,
883889 // 4 is sufficient since the maximum width is ">500") (#201)
884890 pCurListViewItem->setText ( LVC_PING, QString ( " %1 ms" ).arg ( iMinPingTime, 4 , 10 , QLatin1Char ( ' ' ) ) );
885891 }
892+ dynamic_cast <QPushButton*> ( lvwServers->itemWidget ( pCurListViewItem, 1 ) )->setText ( pCurListViewItem->text ( 1 ) );
886893
887894 // update number of clients text
888895 if ( pCurListViewItem->text ( LVC_CLIENTS_MAX_HIDDEN ).toInt () == 0 )
@@ -898,6 +905,7 @@ void CConnectDlg::SetPingTimeAndNumClientsResult ( const CHostAddress& InetAddr,
898905 {
899906 pCurListViewItem->setText ( LVC_CLIENTS, QString ().setNum ( iNumClients ) + " /" + pCurListViewItem->text ( LVC_CLIENTS_MAX_HIDDEN ) );
900907 }
908+ dynamic_cast <QPushButton*> ( lvwServers->itemWidget ( pCurListViewItem, 2 ) )->setText ( pCurListViewItem->text ( 2 ) );
901909
902910 // check if the number of child list items matches the number of
903911 // connected clients, if not then request the client names
0 commit comments