mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
more pyqt6 nonsense
This commit is contained in:
parent
cd42a1c644
commit
c171839304
@ -249,7 +249,7 @@ class EditAuthorsDialog(QDialog, Ui_EditAuthorsDialog):
|
||||
break
|
||||
if select_item:
|
||||
self.table.setCurrentItem(select_item)
|
||||
self.table.setFocus(True)
|
||||
self.table.setFocus(Qt.FocusReason.OtherFocusReason)
|
||||
if select_sort or select_link:
|
||||
self.table.editItem(select_item)
|
||||
self.start_find_pos = select_item.row() * 2 + select_item.column()
|
||||
@ -407,7 +407,7 @@ class EditAuthorsDialog(QDialog, Ui_EditAuthorsDialog):
|
||||
text = icu_lower(str(item.text()))
|
||||
if st in text:
|
||||
self.table.setCurrentItem(item)
|
||||
self.table.setFocus(True)
|
||||
self.table.setFocus(Qt.FocusReason.OtherFocusReason)
|
||||
return
|
||||
# Nothing found. Pop up the little dialog for 1.5 seconds
|
||||
self.not_found_label.setVisible(True)
|
||||
|
@ -377,7 +377,7 @@ class TagListEditor(QDialog, Ui_TagListEditor):
|
||||
r = self.search_item_row = (self.search_item_row + 1) % self.table.rowCount()
|
||||
if self.string_contains(find_text, self.table.item(r, 0).text()):
|
||||
self.table.setCurrentItem(self.table.item(r, 0))
|
||||
self.table.setFocus(True)
|
||||
self.table.setFocus(Qt.FocusReason.OtherFocusReason)
|
||||
return
|
||||
# Nothing found. Pop up the little dialog for 1.5 seconds
|
||||
self.not_found_label.setVisible(True)
|
||||
@ -468,7 +468,7 @@ class TagListEditor(QDialog, Ui_TagListEditor):
|
||||
|
||||
if select_item is not None:
|
||||
self.table.setCurrentItem(select_item)
|
||||
self.table.setFocus(True)
|
||||
self.table.setFocus(Qt.FocusReason.OtherFocusReason)
|
||||
self.start_find_pos = select_item.row()
|
||||
else:
|
||||
self.table.setCurrentCell(0, 0)
|
||||
|
@ -378,7 +378,7 @@ def show_config_widget(category, name, gui=None, show_restart_msg=False,
|
||||
b.setDefault(True)
|
||||
b.setAutoDefault(True)
|
||||
w.changed_signal.connect(onchange)
|
||||
bb.button(QDialogButtonBox.StandardButton.Cancel).setFocus(True)
|
||||
bb.button(QDialogButtonBox.StandardButton.Cancel).setFocus(Qt.FocusReason.OtherFocusReason)
|
||||
l = QVBoxLayout()
|
||||
d.setLayout(l)
|
||||
l.addWidget(w)
|
||||
|
@ -845,7 +845,7 @@ class TagBrowserWidget(QFrame): # {{{
|
||||
return
|
||||
|
||||
self.item_search.lineEdit().blockSignals(True)
|
||||
self.search_button.setFocus(True)
|
||||
self.search_button.setFocus(Qt.FocusReason.OtherFocusReason)
|
||||
self.item_search.lineEdit().blockSignals(False)
|
||||
|
||||
if txt.startswith('='):
|
||||
|
Loading…
x
Reference in New Issue
Block a user