diff options
author | Gerald Combs <gerald@zing.org> | 2014-10-26 18:48:14 -0700 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2014-10-27 02:05:13 +0000 |
commit | 1c159818fd9a1cbc667d7aa675ed776e3c202523 (patch) | |
tree | cd0c77b30818d1cfdd609bfd1395e529c0dbffb9 /ui/qt/byte_view_tab.cpp | |
parent | c33deaa92f0bf607778d7b20668c3bba23446c2e (diff) | |
download | wireshark-1c159818fd9a1cbc667d7aa675ed776e3c202523.tar.gz |
Qt: ByteViewText hover information.
When the user hovers over a byte view field, highlight it and show a
description in the status bar.
Add a "byte" status bar context and fix a label stack pop bug.
Keep proto_find_field_from_offset from matching generated items.
Otherwise hovering and selecting finds things like GeoIP entries and
checksum validation information. This affects the GTK+ UI as well.
Change-Id: Ic81c0d8159510a72d30c41f961807d8a48d05e16
Reviewed-on: https://code.wireshark.org/review/4943
Reviewed-by: Gerald Combs <gerald@wireshark.org>
Diffstat (limited to 'ui/qt/byte_view_tab.cpp')
-rw-r--r-- | ui/qt/byte_view_tab.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ui/qt/byte_view_tab.cpp b/ui/qt/byte_view_tab.cpp index 61b3af1238..20d0df4455 100644 --- a/ui/qt/byte_view_tab.cpp +++ b/ui/qt/byte_view_tab.cpp @@ -37,6 +37,7 @@ void ByteViewTab::addTab(const char *name, tvbuff_t *tvb, proto_tree *tree, QTre byte_view_text->setAccessibleName(name); byte_view_text->setMonospaceFont(mono_font_); connect(this, SIGNAL(monospaceFontChanged(QFont)), byte_view_text, SLOT(setMonospaceFont(QFont))); + connect(byte_view_text, SIGNAL(byteFieldHovered(QString&)), this, SIGNAL(byteFieldHovered(QString&))); QTabWidget::addTab(byte_view_text, name); } |