Fix bottom most shortcuts in keyboard shortcuts for viewer not editable

This commit is contained in:
Kovid Goyal 2011-12-20 15:36:45 +05:30
parent 04cec656d2
commit a05dfa8d90

View File

@ -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):