mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-01-07 12:15:45 +01:00
Hide clear buttons in book list editor widgets as space is at a premium there
This commit is contained in:
parent
cefd9b1563
commit
c39dfdec96
1 changed files with 3 additions and 0 deletions
|
|
@ -306,6 +306,7 @@ def createEditor(self, parent, option, index):
|
|||
if self.auto_complete_function:
|
||||
editor = EditWithComplete(parent)
|
||||
editor.set_separator(None)
|
||||
editor.set_clear_button_enabled(False)
|
||||
complete_items = [i[1] for i in self.auto_complete_function()]
|
||||
editor.update_items_cache(complete_items)
|
||||
else:
|
||||
|
|
@ -361,6 +362,7 @@ def createEditor(self, parent, option, index):
|
|||
if col == 'tags':
|
||||
editor.set_elide_mode(Qt.TextElideMode.ElideMiddle)
|
||||
editor.set_separator(self.sep)
|
||||
editor.set_clear_button_enabled(False)
|
||||
editor.set_space_before_sep(self.space_before_sep)
|
||||
if self.sep == '&':
|
||||
editor.set_add_separator(tweaks['authors_completer_append_separator'])
|
||||
|
|
@ -474,6 +476,7 @@ def createEditor(self, parent, option, index):
|
|||
if m.db.field_metadata[col]['datatype'] != 'comments':
|
||||
editor = EditWithComplete(parent)
|
||||
editor.set_separator(None)
|
||||
editor.set_clear_button_enabled(False)
|
||||
complete_items = sorted(list(m.db.all_custom(label=key)), key=sort_key)
|
||||
editor.update_items_cache(complete_items)
|
||||
else:
|
||||
|
|
|
|||
Loading…
Reference in a new issue