Update comment for TabBarStyle
This commit is contained in:
parent
df6b8b7ff5
commit
a8120a23c4
@ -765,11 +765,9 @@ class TabBarStyle(QCommonStyle):
|
|||||||
# Otherwise, empty space will be shown after the last tab even
|
# Otherwise, empty space will be shown after the last tab even
|
||||||
# though the button width is set to 0
|
# though the button width is set to 0
|
||||||
#
|
#
|
||||||
# In older PyQt-versions (5.2.1) QStyle does not have this
|
# QStyle.SE_TabBarScrollLeftButton was added in Qt 5.7
|
||||||
# attribute.
|
|
||||||
if sr == QStyle.SE_TabBarScrollLeftButton:
|
if sr == QStyle.SE_TabBarScrollLeftButton:
|
||||||
return super().subElementRect(sr, opt, widget)
|
return super().subElementRect(sr, opt, widget)
|
||||||
|
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user