diff options
author | Gerald Combs <gerald@wireshark.org> | 2018-01-18 08:31:58 -0800 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2018-01-21 14:19:10 +0000 |
commit | 3efcc9bd53c65844397fa81c96c2a86e71ac8ec4 (patch) | |
tree | 3662b93b024de3a1662874900efe5a22265e8c17 /ui/qt/wireshark_application.h | |
parent | 064bec879791122aa8411de021d7c2a9444f8b33 (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/wireshark_application.h')
-rw-r--r-- | ui/qt/wireshark_application.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ui/qt/wireshark_application.h b/ui/qt/wireshark_application.h index a10928fb8c..186a676e72 100644 --- a/ui/qt/wireshark_application.h +++ b/ui/qt/wireshark_application.h @@ -101,7 +101,7 @@ public: void setLastOpenDir(const char *dir_name); void setLastOpenDir(QString dir_str); void helpTopicAction(topic_action_e action); - const QFont monospaceFont() const { return mono_font_; } + const QFont monospaceFont(bool zoomed = false) const; void setMonospaceFont(const char *font_string); int monospaceTextSize(const char *str); void setConfigurationProfile(const gchar *profile_name, bool write_recent = true); @@ -134,6 +134,7 @@ private: bool initialized_; bool is_reloading_lua_; QFont mono_font_; + QFont zoomed_font_; QTimer recent_timer_; QTimer addr_resolv_timer_; QTimer tap_update_timer_; |