Use QFontMetrics instead of QFontInfo.

This commit is contained in:
Florian Bruhin 2015-08-06 21:11:06 +02:00
parent e1c2250690
commit 58a9677af8

View File

@ -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))