From a8120a23c4b24c203e07a8ca80105aa22c607e63 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Wed, 5 Jul 2017 22:13:24 +0200 Subject: Update comment for TabBarStyle --- qutebrowser/mainwindow/tabwidget.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/qutebrowser/mainwindow/tabwidget.py b/qutebrowser/mainwindow/tabwidget.py index 3dd0d28da..d1beea7c7 100644 --- a/qutebrowser/mainwindow/tabwidget.py +++ b/qutebrowser/mainwindow/tabwidget.py @@ -765,11 +765,9 @@ class TabBarStyle(QCommonStyle): # Otherwise, empty space will be shown after the last tab even # though the button width is set to 0 # - # In older PyQt-versions (5.2.1) QStyle does not have this - # attribute. + # QStyle.SE_TabBarScrollLeftButton was added in Qt 5.7 if sr == QStyle.SE_TabBarScrollLeftButton: return super().subElementRect(sr, opt, widget) - except AttributeError: pass -- cgit v1.2.3-54-g00ecf