Qt: Better Follow Stream hints.

Show the client and server colors in the hint text.

Change-Id: Iddcda8c3f4f7dc0d8919749aeffc8c09c6445c17
Reviewed-on: https://code.wireshark.org/review/5035
Reviewed-by: Gerald Combs <gerald@wireshark.org>
This commit is contained in:
Gerald Combs 2014-10-31 16:12:47 -07:00
parent 5a71cfddf3
commit 2bd1d46734
1 changed files with 6 additions and 2 deletions

View File

@ -146,8 +146,12 @@ void FollowStreamDialog::fillHintLabel(int text_pos)
hint = QString(tr("Packet %1. ")).arg(pkt);
}
hint += tr("%Ln client pkt(s), ", "", client_packet_count_)
+ tr("%Ln server pkt(s), ", "", server_packet_count_)
hint += tr("%Ln <span style=\"color: %1; background-color:%2\">client</span> pkt(s), ", "", client_packet_count_)
.arg(ColorUtils::fromColorT(prefs.st_client_fg).name())
.arg(ColorUtils::fromColorT(prefs.st_client_bg).name())
+ tr("%Ln <span style=\"color: %1; background-color:%2\">server</span> pkt(s), ", "", server_packet_count_)
.arg(ColorUtils::fromColorT(prefs.st_server_fg).name())
.arg(ColorUtils::fromColorT(prefs.st_server_bg).name())
+ tr("%Ln turn(s).", "", turns_);
if (pkt > 0) {