diff options
author | Gerald Combs <gerald@wireshark.org> | 2014-10-31 16:12:47 -0700 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2014-10-31 23:13:56 +0000 |
commit | 2bd1d46734533d3c2eed0e60c7c130f1952a589c (patch) | |
tree | f41c21d467c6e5d5653098cb97a94bac110d1acf /ui | |
parent | 5a71cfddf3cb659f161f74dc9b81e39adfad40ab (diff) |
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>
Diffstat (limited to 'ui')
-rw-r--r-- | ui/qt/follow_stream_dialog.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
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 <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) { |