Wireshark-commits: [Wireshark-commits] master-2.0 ad90cce: Qt: Disable setStretchLastSection in the
URL: https://code.wireshark.org/review/gitweb?p=wireshark.git;a=commit;h=ad90cce508267a89e0dfe68af36f2e008653936c
Submitter: Anders Broman (a.broman58@xxxxxxxxx)
Changed: branch: master-2.0
Repository: wireshark
Commits:
ad90cce by Gerald Combs (gerald@xxxxxxxxxxxxx):
Qt: Disable setStretchLastSection in the packet list.
QTreeView sets the stretchLastSection property of its header by default.
In our case this means that if the sum of our recent column widths
exceeds the width of the packet list viewport QHeaderView will shrink
the last column to fit.
Disable setStretchLastSection. We want its behavior when our columns are
too narrow so check for that in ::showEvent and temporarily enable it
there.
Bug: 11738
Change-Id: Ia4aad63e4f4bf899891bcebb7032dc5ebeb74cc7
Reviewed-on: https://code.wireshark.org/review/12392
Reviewed-by: Gerald Combs <gerald@xxxxxxxxxxxxx>
Petri-Dish: Gerald Combs <gerald@xxxxxxxxxxxxx>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@xxxxxxxxxxxxx>
Reviewed-by: Anders Broman <a.broman58@xxxxxxxxx>
(cherry picked from commit bdf8034fb1a4dc33cf87f67ecf6e4c2c6cfb08be)
Reviewed-on: https://code.wireshark.org/review/12398
Actions performed:
from 06a0e6f TDS: Sanity check number of columns to prevent crash.
adds ad90cce Qt: Disable setStretchLastSection in the packet list.
Summary of changes:
ui/qt/packet_list.cpp | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)