This commit is contained in:
Kovid Goyal 2022-10-04 13:56:22 +05:30
commit 24a2f7a3a5
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -138,10 +138,11 @@ class Base:
class SimpleText(Base):
def setup_ui(self, parent):
self.editor = QLineEdit(parent)
self.widgets = [QLabel(label_string(self.col_metadata['name']), parent),
self.editor]
self.editor.setClearButtonEnabled(True)
self.widgets = [QLabel(label_string(self.col_metadata['name']), parent),]
self.finish_ui_setup(parent, QLineEdit)
def set_to_undefined(self):
self.editor.setText('')
def setter(self, val):
self.editor.setText(str(val or ''))