mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-01-29 20:55:21 +01:00
Workaround bug in Qt that causes column header to not update when scrolling the view
This commit is contained in:
parent
e0e0093fe5
commit
ff2fa666d4
1 changed files with 5 additions and 0 deletions
|
|
@ -142,6 +142,11 @@ def sorting_done(self, indexc):
|
|||
sm.select(idx, sm.Select|sm.Rows)
|
||||
self.selected_ids = []
|
||||
|
||||
def scrollContentsBy(self, dx, dy):
|
||||
# Needed as Qt bug causes headerview to not always update when scrolling
|
||||
QTableView.scrollContentsBy(self, dx, dy)
|
||||
self.column_header.update()
|
||||
|
||||
def set_ondevice_column_visibility(self):
|
||||
m = self._model
|
||||
self.column_header.setSectionHidden(m.column_map.index('ondevice'),
|
||||
|
|
|
|||
Loading…
Reference in a new issue