Forgot to fix TextDelegate

This commit is contained in:
Kovid Goyal 2023-05-28 13:21:22 +05:30
parent 3f32a66c32
commit 7bde308bd6
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -317,7 +317,8 @@ class TextDelegate(QStyledItemDelegate, UpdateEditorGeometry): # {{{
return editor return editor
def setEditorData(self, editor, index): def setEditorData(self, editor, index):
editor.setText(get_val_for_textlike_columns(index)) n = editor.metaObject().userProperty().name()
editor.setProperty(n, get_val_for_textlike_columns(index))
def setModelData(self, editor, model, index): def setModelData(self, editor, model, index):
if isinstance(editor, EditWithComplete): if isinstance(editor, EditWithComplete):