From 58a9677af858751dcdf753345bde975a1297d26a Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Thu, 6 Aug 2015 21:11:06 +0200 Subject: [PATCH] Use QFontMetrics instead of QFontInfo. --- qutebrowser/mainwindow/tabwidget.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qutebrowser/mainwindow/tabwidget.py b/qutebrowser/mainwindow/tabwidget.py index ffd33de7d..d0fc3f931 100644 --- a/qutebrowser/mainwindow/tabwidget.py +++ b/qutebrowser/mainwindow/tabwidget.py @@ -309,7 +309,7 @@ class TabBar(QTabBar): def set_font(self): """Set the tab bar font.""" self.setFont(config.get('fonts', 'tabbar')) - size = self.fontInfo().pixelSize() - 1 + size = self.fontMetrics().height() - 1 self.setIconSize(QSize(size, size))