Qt: Explicitly set the byte view painter font.
authorGerald Combs <gerald@wireshark.org>
Fri, 23 Oct 2015 22:07:35 +0000 (15:07 -0700)
committerGerald Combs <gerald@wireshark.org>
Fri, 23 Oct 2015 23:25:13 +0000 (23:25 +0000)
commit8e8db9b917e1ad9cdfeca0fd92bc864fbd94fd1e
treeb45b941d1f6aa662edf7c2bf94fa66dc5b33a7cd
parent2d065bcd52de7e4fa8616e4ad719c585073111d0
Qt: Explicitly set the byte view painter font.

Set the painter font at the beginning of each paintEvent. It looks like
we either aren't calling setFont at the right time or the
QAbstractScrollArea viewport sometimes ignores its parent font.

Bug: 11594
Change-Id: Id4484f6b990be112bbc5728d5ad0e31a74a60201
Reviewed-on: https://code.wireshark.org/review/11231
Petri-Dish: Gerald Combs <gerald@wireshark.org>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Gerald Combs <gerald@wireshark.org>
ui/qt/byte_view_text.cpp