mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 10:44:09 -04:00
Fix #1960203 [Add clear button to the fields in the Create Virtual library window](https://bugs.launchpad.net/calibre/+bug/1960203)
This commit is contained in:
parent
a467d5ef07
commit
a03b4ac614
@ -110,6 +110,7 @@ class CreateVirtualLibrary(QDialog): # {{{
|
||||
self.vl_name = QComboBox()
|
||||
self.vl_name.setEditable(True)
|
||||
self.vl_name.lineEdit().setMaxLength(MAX_VIRTUAL_LIBRARY_NAME_LENGTH)
|
||||
self.vl_name.lineEdit().setClearButtonEnabled(True)
|
||||
la1.setBuddy(self.vl_name)
|
||||
gl.addWidget(self.vl_name, 0, 1)
|
||||
self.editing = editing
|
||||
@ -121,6 +122,7 @@ class CreateVirtualLibrary(QDialog): # {{{
|
||||
self.la2 = la2 = QLabel(_('&Search expression:'))
|
||||
gl.addWidget(la2, 1, 0)
|
||||
self.vl_text = QLineEdit()
|
||||
self.vl_text.setClearButtonEnabled(True)
|
||||
self.vl_text.textChanged.connect(self.search_text_changed)
|
||||
la2.setBuddy(self.vl_text)
|
||||
gl.addWidget(self.vl_text, 1, 1)
|
||||
|
Loading…
x
Reference in New Issue
Block a user