diff options
author | Jay Kamat <jaygkamat@gmail.com> | 2017-10-20 15:40:11 -0400 |
---|---|---|
committer | Florian Bruhin <git@the-compiler.org> | 2017-10-31 07:06:55 +0100 |
commit | 7dc82407e8237ff9dc92d0d1873103cb3bc67c03 (patch) | |
tree | e8046f16f6f53a115ba3628fddb5c54427616093 | |
parent | 0becdfa6b07168b0f030308f5f78af16cf1fd475 (diff) | |
download | qutebrowser-7dc82407e8237ff9dc92d0d1873103cb3bc67c03.tar.gz qutebrowser-7dc82407e8237ff9dc92d0d1873103cb3bc67c03.zip |
Rename _minimum_tab_size_hint_helper
(cherry picked from commit e705ea7e568535528c8cf8200684214bf9364687)
-rw-r--r-- | qutebrowser/mainwindow/tabwidget.py | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/qutebrowser/mainwindow/tabwidget.py b/qutebrowser/mainwindow/tabwidget.py index 55bd76f79..56f5fd91f 100644 --- a/qutebrowser/mainwindow/tabwidget.py +++ b/qutebrowser/mainwindow/tabwidget.py @@ -434,13 +434,14 @@ class TabBar(QTabBar): Return: A QSize of the smallest tab size we can make. """ - return self.__minimumTabSizeHintHelper(self.tabText(index), - self.tabIcon(index), ellipsis) + return self._minimum_tab_size_hint_helper(self.tabText(index), + self.tabIcon(index), + ellipsis) @functools.lru_cache(maxsize=100) - def __minimumTabSizeHintHelper(self, tab_text: str, - icon, - ellipsis: bool) -> QSize: + def _minimum_tab_size_hint_helper(self, tab_text: str, + icon, + ellipsis: bool) -> QSize: """Helper function to cache tab results.""" text = '\u2026' if ellipsis else tab_text # Don't ever shorten if text is shorter than the ellipsis |