From 07ab40ebef4104b309088240c41598203c08affb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stig=20Bj=C3=B8rlykke?= Date: Fri, 8 Jul 2016 10:52:29 +0200 Subject: Qt: Update scrollbars when change byte view format MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- ui/qt/byte_view_text.cpp | 1 + 1 file changed, 1 insertion(+) 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(); row_width_ = recent.gui_bytes_view == BYTES_HEX ? 16 : 8; + updateScrollbars(); viewport()->update(); } -- cgit v1.2.3