Skip to content

Commit 2ba71f7

Browse files
committed
Simplify text
1 parent 1d39c1d commit 2ba71f7

1 file changed

Lines changed: 4 additions & 23 deletions

File tree

src/connectdlg.cpp

Lines changed: 4 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -747,28 +747,9 @@ void CConnectDlg::UpdateAccessibleServerInfo()
747747
QString pingTime = pItem->text ( LVC_PING );
748748
QString musicians = pItem->text ( LVC_CLIENTS );
749749
QString location = pItem->text ( LVC_LOCATION );
750-
QString version = pItem->text ( LVC_VERSION );
750+
QString version = pItem->text ( LVC_VERSION );
751751

752-
// Build comprehensive text for the label
753-
QString labelText = tr ( "<b>Server:</b> %1" ).arg ( serverName );
754-
if ( !pingTime.isEmpty() )
755-
{
756-
labelText += tr ( "<br><b>Ping:</b> %1" ).arg ( pingTime );
757-
}
758-
if ( !musicians.isEmpty() )
759-
{
760-
labelText += tr ( " &nbsp; <b>Musicians:</b> %1" ).arg ( musicians );
761-
}
762-
if ( !location.isEmpty() )
763-
{
764-
labelText += tr ( "<br><b>Location:</b> %1" ).arg ( location );
765-
}
766-
if ( !version.isEmpty() )
767-
{
768-
labelText += tr ( " &nbsp; <b>Version:</b> %1" ).arg ( version );
769-
}
770-
771-
// Build text for screen readers (without HTML)
752+
// Build text for screen readers
772753
QString accessibleText = tr ( "Server: %1" ).arg ( serverName );
773754
if ( !pingTime.isEmpty() )
774755
{
@@ -788,7 +769,7 @@ void CConnectDlg::UpdateAccessibleServerInfo()
788769
}
789770

790771
// Update label
791-
lblAccessibleServerInfo->setText ( labelText );
772+
lblAccessibleServerInfo->setText ( accessibleText );
792773
lblAccessibleServerInfo->setAccessibleName ( tr ( "Selected server: %1" ).arg ( serverName ) );
793774
lblAccessibleServerInfo->setAccessibleDescription ( accessibleText );
794775

@@ -838,7 +819,7 @@ void CConnectDlg::UpdateAccessibleServerInfo()
838819
{
839820
// No server selected or musician child selected
840821
lblAccessibleServerInfo->setText ( tr ( "<i>No server selected or in musician selection</i>" ) );
841-
lblAccessibleServerInfo->setAccessibleName ( tr ( "No server selected" ) );
822+
lblAccessibleServerInfo->setAccessibleName ( tr ( "No server selected or in musician selection" ) );
842823
lblAccessibleServerInfo->setAccessibleDescription ( tr ( "No server selected. Use Previous/Next buttons or Alt+Up/Down to navigate servers." ) );
843824

844825
// Reset navigation buttons

0 commit comments

Comments
 (0)