mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-21 23:56:17 +01:00
Fix bottom most shortcuts in keyboard shortcuts for viewer not editable
This commit is contained in:
parent
04cec656d2
commit
a05dfa8d90
1 changed files with 3 additions and 3 deletions
|
|
@ -260,11 +260,11 @@ def __init__(self, model, parent=None):
|
|||
self.view.setModel(model)
|
||||
self.delegate = Delegate()
|
||||
self.view.setItemDelegate(self.delegate)
|
||||
self.delegate.sizeHintChanged.connect(self.scrollTo)
|
||||
self.delegate.sizeHintChanged.connect(self.scrollTo,
|
||||
type=Qt.QueuedConnection)
|
||||
|
||||
def scrollTo(self, index):
|
||||
self.view.scrollTo(index)
|
||||
|
||||
self.view.scrollTo(index, self.view.EnsureVisible)
|
||||
|
||||
@property
|
||||
def is_editing(self):
|
||||
|
|
|
|||
Loading…
Reference in a new issue