aboutsummaryrefslogtreecommitdiffstats
path: root/ui/qt/byte_view_tab.cpp
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2018-01-18 08:31:58 -0800
committerAnders Broman <a.broman58@gmail.com>2018-01-21 14:19:10 +0000
commit3efcc9bd53c65844397fa81c96c2a86e71ac8ec4 (patch)
tree3662b93b024de3a1662874900efe5a22265e8c17 /ui/qt/byte_view_tab.cpp
parent064bec879791122aa8411de021d7c2a9444f8b33 (diff)
Qt: Create byte views at the proper zoom level.
Add a zoomed argument to WiresharkApplication::monospaceFont so that we can easily fetch the font at its current zoom level. Set the zoomed font when we create new ByteViewTexts. Change-Id: I1293f206e37bb798247b1ac4b314fdfe88d4c55c Reviewed-on: https://code.wireshark.org/review/25371 Reviewed-by: Gerald Combs <gerald@wireshark.org> Petri-Dish: Gerald Combs <gerald@wireshark.org> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'ui/qt/byte_view_tab.cpp')
-rw-r--r--ui/qt/byte_view_tab.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/qt/byte_view_tab.cpp b/ui/qt/byte_view_tab.cpp
index 7d54c8433f..36a21c0d1f 100644
--- a/ui/qt/byte_view_tab.cpp
+++ b/ui/qt/byte_view_tab.cpp
@@ -99,7 +99,7 @@ void ByteViewTab::addTab(const char *name, tvbuff_t *tvb) {
ByteViewText * byte_view_text = new ByteViewText(data, encoding, this);
byte_view_text->setAccessibleName(name);
- byte_view_text->setMonospaceFont(wsApp->monospaceFont());
+ byte_view_text->setMonospaceFont(wsApp->monospaceFont(true));
if ( tvb )
{