Show tab titles as tooltip

Closes #3535
This commit is contained in:
Florian Bruhin 2018-01-30 07:11:48 +01:00
parent d01a0b1d64
commit 400e1bc7d7
2 changed files with 5 additions and 1 deletions

View File

@ -41,6 +41,7 @@ Changed
a performance and stability improvement.
- The `url.incdec_segments` option now also can take `port` as possible segment.
- QtWebEngine: `:view-source` now uses Chromium's `view-source:` scheme.
- Tabs now show their full title as tooltip.
Fixed
~~~~~

View File

@ -148,7 +148,10 @@ class TabWidget(QTabWidget):
fields['index'] = idx + 1
title = '' if fmt is None else fmt.format(**fields)
self.tabBar().setTabText(idx, title)
tabbar = self.tabBar()
tabbar.setTabText(idx, title)
tabbar.setTabToolTip(idx, title)
def get_tab_fields(self, idx):
"""Get the tab field data."""