mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Add completion to the search limit entry box
This commit is contained in:
parent
0a89f2e69a
commit
708b1a1769
@ -63,6 +63,9 @@ class ConfigWidget(ConfigWidgetBase, Ui_Form):
|
||||
r('tags_browser_collapse_at', gprefs)
|
||||
|
||||
r('search_box_limit_to', prefs)
|
||||
self.opt_search_box_limit_to.set_separator(',')
|
||||
self.opt_search_box_limit_to.update_items_cache(
|
||||
self.gui.library_view.model().db.field_metadata.get_search_terms())
|
||||
|
||||
self.current_font = None
|
||||
self.change_font_button.clicked.connect(self.change_font)
|
||||
|
@ -211,7 +211,7 @@ up into sub-categories. If the partition method is set to disable, this value is
|
||||
</widget>
|
||||
</item>
|
||||
<item row="8" column="1">
|
||||
<widget class="QLineEdit" name="opt_search_box_limit_to">
|
||||
<widget class="MultiCompleteLineEdit" name="opt_search_box_limit_to">
|
||||
<property name="toolTip">
|
||||
<string>Choose columns to be searched when not using prefixes, as for
|
||||
example when searching for someword instead of title:someword.
|
||||
@ -305,6 +305,13 @@ must check the 'Limit' box on the GUI for this option to take effect.</string>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<customwidgets>
|
||||
<customwidget>
|
||||
<class>MultiCompleteLineEdit</class>
|
||||
<extends>QLineEdit</extends>
|
||||
<header>calibre.gui2.complete.h</header>
|
||||
</customwidget>
|
||||
</customwidgets>
|
||||
<resources/>
|
||||
<connections/>
|
||||
</ui>
|
||||
|
Loading…
x
Reference in New Issue
Block a user