Rename option to opt.

This commit is contained in:
Florian Bruhin 2014-07-14 23:30:08 +02:00
parent 1d31f1eb48
commit 27d3c8d20f

View File

@ -283,7 +283,7 @@ class TabBarStyle(QCommonStyle):
else: else:
return self._style.pixelMetric(metric, option, widget) return self._style.pixelMetric(metric, option, widget)
def subElementRect(self, sr, option, widget=None): def subElementRect(self, sr, opt, widget=None):
"""Override subElementRect to use our own _tab_layout implementation. """Override subElementRect to use our own _tab_layout implementation.
Args: Args:
@ -295,10 +295,10 @@ class TabBarStyle(QCommonStyle):
A QRect. A QRect.
""" """
if sr == QStyle.SE_TabBarTabText: if sr == QStyle.SE_TabBarTabText:
text_rect, _icon_rect = self._tab_layout(option) text_rect, _icon_rect = self._tab_layout(opt)
return text_rect return text_rect
else: else:
return self._style.subElementRect(sr, option, widget) return self._style.subElementRect(sr, opt, widget)
def _tab_layout(self, opt): def _tab_layout(self, opt):
"""Compute the text/icon rect from the opt rect. """Compute the text/icon rect from the opt rect.