schrodinger.application.models.gui.experimental_px.delegates.text module¶
Text delegate for inline text editing.
- class schrodinger.application.models.gui.experimental_px.delegates.text.TextDelegate(parent: QObject = None, draw_separator: bool = True)¶
Bases:
DelegateBaseDelegate with inline text editing via LineEdit.
Supports editing when the cell has the
ItemIsEditableflag.- setEditorData(editor: QWidget, index: QModelIndex) None¶
Populate editor with current display value.
- setModelData(editor: QWidget, model: QAbstractItemModel, index: QModelIndex) None¶
Save editor text back to model.