mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 18:24:30 -04:00
Merge branch 'master' of https://github.com/cbhaley/calibre
This commit is contained in:
commit
24a2f7a3a5
@ -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 ''))
|
||||
|
Loading…
x
Reference in New Issue
Block a user