mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
Fix bottom most shortcuts in keyboard shortcuts for viewer not editable
This commit is contained in:
parent
04cec656d2
commit
a05dfa8d90
@ -260,11 +260,11 @@ class ShortcutConfig(QWidget):
|
||||
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…
x
Reference in New Issue
Block a user