Fix #1922986 [[Enhancement] Navigate left panel in the Convert book window using the keyboard](https://bugs.launchpad.net/calibre/+bug/1922986)

This commit is contained in:
Kovid Goyal 2021-04-08 13:36:40 +05:30
parent 51983180dd
commit 82f773f6b6
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -84,8 +84,7 @@ class Config(QDialog):
self.input_formats.currentIndexChanged[native_string_type].connect(self.setup_pipeline) self.input_formats.currentIndexChanged[native_string_type].connect(self.setup_pipeline)
self.output_formats.currentIndexChanged[native_string_type].connect(self.setup_pipeline) self.output_formats.currentIndexChanged[native_string_type].connect(self.setup_pipeline)
self.groups.setSpacing(5) self.groups.setSpacing(5)
self.groups.activated[(QModelIndex)].connect(self.show_pane) self.groups.selectionModel().currentChanged.connect(self.current_group_changed)
self.groups.clicked[(QModelIndex)].connect(self.show_pane)
self.groups.entered[(QModelIndex)].connect(self.show_group_help) self.groups.entered[(QModelIndex)].connect(self.show_group_help)
rb = self.buttonBox.button(QDialogButtonBox.StandardButton.RestoreDefaults) rb = self.buttonBox.button(QDialogButtonBox.StandardButton.RestoreDefaults)
rb.setText(_('Restore &defaults')) rb.setText(_('Restore &defaults'))
@ -97,6 +96,9 @@ class Config(QDialog):
else: else:
self.resize(self.sizeHint()) self.resize(self.sizeHint())
def current_group_changed(self, cur, prev):
self.show_pane(cur)
def setupUi(self): def setupUi(self):
self.setObjectName("Dialog") self.setObjectName("Dialog")
self.resize(1024, 700) self.resize(1024, 700)