Fix leaving bits of the background selection sometimes visible when editing sort and link columns. This change makes the editor widget fill the underlying cell.

As an aside, shouldn't EnLineEdit do setClearButtonEnabled(True) to be like other widgets?
This commit is contained in:
Charles Haley 2022-07-16 14:49:50 +01:00
parent b6463f7cc5
commit 86414a17e6

View File

@ -55,11 +55,9 @@ class EditColumnDelegate(QItemDelegate):
editor = EditWithComplete(parent)
editor.set_separator(None)
editor.update_items_cache(self.completion_data)
else:
from calibre.gui2.widgets import EnLineEdit
editor = EnLineEdit(parent)
return editor
return QItemDelegate.createEditor(self, parent, option, index)
return editor
from calibre.gui2.widgets import EnLineEdit
return EnLineEdit(parent)
class EditAuthorsDialog(QDialog, Ui_EditAuthorsDialog):