Qt: Fixup byte view context menus

Shorten text similar to other context menus.

Change-Id: I8806ed4dddb6fc3c51ddbd4150d9090f5b2ca787
Reviewed-on: https://code.wireshark.org/review/16238
Reviewed-by: Gerald Combs <gerald@wireshark.org>
Petri-Dish: Gerald Combs <gerald@wireshark.org>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Michael Mann <mmann78@netscape.net>
This commit is contained in:
Gerald Combs 2016-07-01 10:35:22 -07:00 committed by Michael Mann
parent 1f28e683f9
commit 3bb019f095
1 changed files with 5 additions and 3 deletions

View File

@ -26,6 +26,8 @@
#include <epan/charsets.h>
#include <wsutil/utf8_entities.h>
#include "color_utils.h"
#include "wireshark_application.h"
#include "ui/recent.h"
@ -74,7 +76,7 @@ ByteViewText::ByteViewText(QWidget *parent, tvbuff_t *tvb, proto_tree *tree, QTr
if (recent.gui_bytes_view == BYTES_HEX) {
action->setChecked(true);
}
action = format_actions_->addAction(tr("Show bytes as bits"));
action = format_actions_->addAction(tr(UTF8_HORIZONTAL_ELLIPSIS "as bits"));
action->setData(qVariantFromValue(BYTES_BITS));
action->setCheckable(true);
if (recent.gui_bytes_view == BYTES_BITS) {
@ -86,13 +88,13 @@ ByteViewText::ByteViewText(QWidget *parent, tvbuff_t *tvb, proto_tree *tree, QTr
ctx_menu_.addSeparator();
action = encoding_actions_->addAction(tr("Show bytes as ASCII"));
action = encoding_actions_->addAction(tr(UTF8_HORIZONTAL_ELLIPSIS "as ASCII"));
action->setData(qVariantFromValue(PACKET_CHAR_ENC_CHAR_ASCII));
action->setCheckable(true);
if (encoding_ == PACKET_CHAR_ENC_CHAR_ASCII) {
action->setChecked(true);
}
action = encoding_actions_->addAction(tr("Show bytes as EBCDIC"));
action = encoding_actions_->addAction(tr(UTF8_HORIZONTAL_ELLIPSIS "as EBCDIC"));
action->setData(qVariantFromValue(PACKET_CHAR_ENC_CHAR_EBCDIC));
action->setCheckable(true);
if (encoding_ == PACKET_CHAR_ENC_CHAR_EBCDIC) {