aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorStig Bjørlykke <stig@bjorlykke.org>2017-07-07 19:24:41 +0200
committerMichael Mann <mmann78@netscape.net>2017-07-07 23:16:30 +0000
commit7bacf534d8ad78e9c7506ff276cbe07303f62162 (patch)
tree829747cff30bd63680f9ce6a5be9b22b0aceb006 /ui
parenta7a66a18908924cc3a56605ea3ff389476b364c4 (diff)
Qt: Set tooltip on ByteViewTab
Set the tab name as tooltip on ByteViewTab. This is useful when having many tabs on a small screen. Change-Id: Idb375f0b7d510ecb9b42cfccc6ebc4dd798f463b Reviewed-on: https://code.wireshark.org/review/22549 Petri-Dish: Stig Bjørlykke <stig@bjorlykke.org> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'ui')
-rw-r--r--ui/qt/byte_view_tab.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/ui/qt/byte_view_tab.cpp b/ui/qt/byte_view_tab.cpp
index 8dffe1fb62..1398bc5d99 100644
--- a/ui/qt/byte_view_tab.cpp
+++ b/ui/qt/byte_view_tab.cpp
@@ -54,7 +54,8 @@ void ByteViewTab::addTab(const char *name, tvbuff_t *tvb, proto_tree *tree, QTre
byte_view_text->setMonospaceFont(mono_font_);
connect(this, SIGNAL(monospaceFontChanged(QFont)), byte_view_text, SLOT(setMonospaceFont(QFont)));
connect(byte_view_text, SIGNAL(byteFieldHovered(const QString&)), this, SIGNAL(byteFieldHovered(const QString&)));
- QTabWidget::addTab(byte_view_text, name);
+ int idx = QTabWidget::addTab(byte_view_text, name);
+ QTabWidget::setTabToolTip(idx, name);
}
void ByteViewTab::clear()