mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 19:02:37 +02:00
Fix a regression in 5.0 that caused performance of dialogs that contain title/series/tags edit fields to be very poor with large libraries. Fixes #1898221 [Menu items on the Convert Books Box are slow to respond](https://bugs.launchpad.net/calibre/+bug/1898221)
Apparently in Qt 5.15 Qt queries size hints for all items in a list view unless setuniformitemsizes is set.
This commit is contained in:
parent
66ae34e2d3
commit
0e37c78ed9
1 changed files with 1 additions and 0 deletions
|
|
@ -94,6 +94,7 @@ def __init__(self, completer_widget, max_visible_items=7, sort_func=sort_key, st
|
|||
self.setHorizontalScrollBarPolicy(Qt.ScrollBarAlwaysOff)
|
||||
self.setSelectionBehavior(self.SelectRows)
|
||||
self.setSelectionMode(self.SingleSelection)
|
||||
self.setUniformItemSizes(True)
|
||||
self.setAlternatingRowColors(True)
|
||||
self.setModel(CompleteModel(self, sort_func=sort_func, strip_completion_entries=strip_completion_entries))
|
||||
self.setMouseTracking(True)
|
||||
|
|
|
|||
Loading…
Reference in a new issue