From 2bd1d46734533d3c2eed0e60c7c130f1952a589c Mon Sep 17 00:00:00 2001 From: Gerald Combs Date: Fri, 31 Oct 2014 16:12:47 -0700 Subject: 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 --- ui/qt/follow_stream_dialog.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'ui') diff --git a/ui/qt/follow_stream_dialog.cpp b/ui/qt/follow_stream_dialog.cpp index 86f63b17bf..03d0a613bd 100644 --- a/ui/qt/follow_stream_dialog.cpp +++ b/ui/qt/follow_stream_dialog.cpp @@ -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 client pkt(s), ", "", client_packet_count_) + .arg(ColorUtils::fromColorT(prefs.st_client_fg).name()) + .arg(ColorUtils::fromColorT(prefs.st_client_bg).name()) + + tr("%Ln server 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) { -- cgit v1.2.3