Ejemplo n.º 1
0
 def _create_note_edit(self, row: RowWidgets) -> QLineEdit:
     note_edit = QLineEdit(row.parent)
     text = '' if row.fact is None else row.fact.note
     note_edit.setText(text)
     note_edit.textChanged.connect(self.on_note_changed)
     note_edit.row = row
     return note_edit
Ejemplo n.º 2
0
 def _create_val_edit(self, row: RowWidgets) -> QLineEdit:
     val_edit = QLineEdit(row.parent)
     val = '' if row.fact is None else self._contacts_model.get_fact_value(row.fact)
     val_edit.setText(val)
     val_edit.textChanged.connect(self.on_text_changed)
     val_edit.row = row
     return val_edit