MCPcopy Create free account
hub / github.com/PyQt5/PyQt / sizeFromContents

Method sizeFromContents

QProxyStyle/Lib/TabBarStyle.py:18–23  ·  view source on GitHub ↗
(self, types, option, size, widget)

Source from the content-addressed store, hash-verified

16class TabBarStyle(QProxyStyle):
17
18 def sizeFromContents(self, types, option, size, widget):
19 size = super(TabBarStyle, self).sizeFromContents(
20 types, option, size, widget)
21 if types == self.CT_TabBarTab:
22 size.transpose()
23 return size
24
25 def drawControl(self, element, option, painter, widget):
26 if element == self.CE_TabBarTabLabel:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected