mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Bug #1991571: 'Clear' button on short longtext columns. Changed look to be like the other widgets.
This commit is contained in:
parent
7204a1a038
commit
b3fd42a912
@ -138,10 +138,11 @@ class Base:
|
|||||||
class SimpleText(Base):
|
class SimpleText(Base):
|
||||||
|
|
||||||
def setup_ui(self, parent):
|
def setup_ui(self, parent):
|
||||||
self.editor = QLineEdit(parent)
|
self.widgets = [QLabel(label_string(self.col_metadata['name']), parent),]
|
||||||
self.widgets = [QLabel(label_string(self.col_metadata['name']), parent),
|
self.finish_ui_setup(parent, QLineEdit)
|
||||||
self.editor]
|
|
||||||
self.editor.setClearButtonEnabled(True)
|
def set_to_undefined(self):
|
||||||
|
self.editor.setText('')
|
||||||
|
|
||||||
def setter(self, val):
|
def setter(self, val):
|
||||||
self.editor.setText(str(val or ''))
|
self.editor.setText(str(val or ''))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user