diff options
author | Stig Bjørlykke <stig@bjorlykke.org> | 2016-07-08 10:52:29 +0200 |
---|---|---|
committer | Stig Bjørlykke <stig@bjorlykke.org> | 2016-07-08 08:55:34 +0000 |
commit | 07ab40ebef4104b309088240c41598203c08affb (patch) | |
tree | 8d0199b80b983f9aec2904dcffaaeee8bc42c86f | |
parent | 3cf104840640a5727afd944b58ce22d0c2503e52 (diff) |
Qt: Update scrollbars when change byte view format
Update scrollbars when changing display format between hex and
bits view because the height of the phane will change.
Change-Id: I81556c8dbdfb0a34f6c97e76834646a40aed62bb
Reviewed-on: https://code.wireshark.org/review/16336
Reviewed-by: Stig Bjørlykke <stig@bjorlykke.org>
-rw-r--r-- | ui/qt/byte_view_text.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ui/qt/byte_view_text.cpp b/ui/qt/byte_view_text.cpp index 66a897ea30..78dee3826d 100644 --- a/ui/qt/byte_view_text.cpp +++ b/ui/qt/byte_view_text.cpp @@ -594,6 +594,7 @@ void ByteViewText::setHexDisplayFormat(QAction *action) recent.gui_bytes_view = action->data().value<bytes_view_type>(); row_width_ = recent.gui_bytes_view == BYTES_HEX ? 16 : 8; + updateScrollbars(); viewport()->update(); } |