mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 02:34:06 -04:00
Forgot to fix TextDelegate
This commit is contained in:
parent
3f32a66c32
commit
7bde308bd6
@ -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):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user