mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 10:14:46 -04:00
...
This commit is contained in:
parent
2ae5696144
commit
cb3609645e
@ -260,7 +260,10 @@ class ShortcutConfig(QWidget):
|
||||
self.view.setModel(model)
|
||||
self.delegate = Delegate()
|
||||
self.view.setItemDelegate(self.delegate)
|
||||
self.delegate.sizeHintChanged.connect(self.view.scrollTo)
|
||||
self.delegate.sizeHintChanged.connect(self.scrollTo)
|
||||
|
||||
def scrollTo(self, index):
|
||||
self.view.scrollTo(index)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
Loading…
x
Reference in New Issue
Block a user