Rename _minimum_tab_size_hint_helper
This commit is contained in:
parent
f6cc9d53b8
commit
e705ea7e56
@ -447,11 +447,12 @@ class TabBar(QTabBar):
|
|||||||
Return:
|
Return:
|
||||||
A QSize of the smallest tab size we can make.
|
A QSize of the smallest tab size we can make.
|
||||||
"""
|
"""
|
||||||
return self.__minimumTabSizeHintHelper(self.tabText(index),
|
return self._minimum_tab_size_hint_helper(self.tabText(index),
|
||||||
self.tabIcon(index), ellipsis)
|
self.tabIcon(index),
|
||||||
|
ellipsis)
|
||||||
|
|
||||||
@functools.lru_cache(maxsize=100)
|
@functools.lru_cache(maxsize=100)
|
||||||
def __minimumTabSizeHintHelper(self, tab_text: str,
|
def _minimum_tab_size_hint_helper(self, tab_text: str,
|
||||||
icon,
|
icon,
|
||||||
ellipsis: bool) -> QSize:
|
ellipsis: bool) -> QSize:
|
||||||
"""Helper function to cache tab results."""
|
"""Helper function to cache tab results."""
|
||||||
|
Loading…
Reference in New Issue
Block a user