Book list: Improve rendering of column headers when they dont fit, by eliding them instead of just cutting off rendering. Fixes #1906464 [Enhancement Request: Ability to hide specific column headers in book list](https://bugs.launchpad.net/calibre/+bug/1906464)

This commit is contained in:
Kovid Goyal 2020-12-02 07:32:03 +05:30
parent 84ed6ac3af
commit 707579fa4c
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -52,6 +52,7 @@ class HeaderView(QHeaderView): # {{{
self.setSectionsMovable(True)
self.setSectionsClickable(True)
self.setContextMenuPolicy(Qt.CustomContextMenu)
self.setTextElideMode(Qt.ElideRight)
self.hover = -1
self.current_font = QFont(self.font())
self.current_font.setBold(True)