Fix typo
This commit is contained in:
parent
0df4569502
commit
14dacbaa92
@ -435,7 +435,7 @@ class TabBar(QTabBar):
|
|||||||
A QSize of the smallest tab size we can make.
|
A QSize of the smallest tab size we can make.
|
||||||
"""
|
"""
|
||||||
text = '\u2026' if ellipsis else self.tabText(index)
|
text = '\u2026' if ellipsis else self.tabText(index)
|
||||||
# Don't ever shorten if text is shorter than the elipsis
|
# Don't ever shorten if text is shorter than the ellipsis
|
||||||
text_width = min(self.fontMetrics().width(text),
|
text_width = min(self.fontMetrics().width(text),
|
||||||
self.fontMetrics().width(self.tabText(index)))
|
self.fontMetrics().width(self.tabText(index)))
|
||||||
icon = self.tabIcon(index)
|
icon = self.tabIcon(index)
|
||||||
|
Loading…
Reference in New Issue
Block a user