From 93f2e4b24ddfea04b0c08cd2af772ba65682dac8 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Tue, 15 Jul 2014 11:08:25 +0200 Subject: [PATCH] Cleanup. --- qutebrowser/widgets/tabwidget.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/qutebrowser/widgets/tabwidget.py b/qutebrowser/widgets/tabwidget.py index 02b08402d..55f337313 100644 --- a/qutebrowser/widgets/tabwidget.py +++ b/qutebrowser/widgets/tabwidget.py @@ -22,7 +22,7 @@ from math import ceil import functools -from PyQt5.QtCore import pyqtSlot, pyqtSignal, Qt, QSize, QRect, QRectF +from PyQt5.QtCore import pyqtSlot, pyqtSignal, Qt, QSize, QRect from PyQt5.QtWidgets import (QTabWidget, QTabBar, QSizePolicy, QCommonStyle, QStyle, QStylePainter, QStyleOptionTab) from PyQt5.QtGui import QIcon, QPalette, QColor @@ -351,7 +351,6 @@ class TabBarStyle(QCommonStyle): width = size.width() height = size.height() mid_height = ceil((opt.rect.height() - height) / 2) - mid_width = (opt.rect.width() - width) / 2 if sr == QStyle.SE_TabBarTabLeftButton: rect = QRect(opt.rect.x(), mid_height, width, height) else: