aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
Diffstat (limited to 'ui')
-rw-r--r--ui/qt/byte_view_text.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/ui/qt/byte_view_text.cpp b/ui/qt/byte_view_text.cpp
index 092a2118cd..85566c1680 100644
--- a/ui/qt/byte_view_text.cpp
+++ b/ui/qt/byte_view_text.cpp
@@ -130,8 +130,6 @@ const guint8 *ByteViewText::dataAndLength(guint *data_len_ptr)
void ByteViewText::setMonospaceFont(const QFont &mono_font)
{
mono_font_ = mono_font;
-// mono_bold_font_ = QFont(mono_font);
-// mono_bold_font_.setBold(true);
const QFontMetricsF fm(mono_font);
font_width_ = fm.width('M');
@@ -149,6 +147,7 @@ void ByteViewText::paintEvent(QPaintEvent *)
{
QPainter painter(viewport());
painter.translate(-horizontalScrollBar()->value() * font_width_, 0);
+ painter.setFont(font());
// Pixel offset of this row
int row_y = 0;