Use self._style for overridden drawItemText
This commit is contained in:
parent
9b21f37659
commit
c3428db029
@ -280,8 +280,8 @@ class TabWidgetStyle(QCommonStyle):
|
|||||||
# pylint: disable=invalid-name
|
# pylint: disable=invalid-name
|
||||||
alignment &= ~Qt.AlignHCenter
|
alignment &= ~Qt.AlignHCenter
|
||||||
alignment |= Qt.AlignLeft
|
alignment |= Qt.AlignLeft
|
||||||
super().drawItemText(painter, rectangle, alignment, palette, enabled,
|
self._style.drawItemText(painter, rectangle, alignment, palette,
|
||||||
text, textRole)
|
enabled, text, textRole)
|
||||||
|
|
||||||
def drawControl(self, element, opt, p, widget=None):
|
def drawControl(self, element, opt, p, widget=None):
|
||||||
"""Override drawControl to draw odd tabs in a different color."""
|
"""Override drawControl to draw odd tabs in a different color."""
|
||||||
|
Loading…
Reference in New Issue
Block a user