From 708b1a1769323d85da41b7666fa71a1520cc9f25 Mon Sep 17 00:00:00 2001 From: Charles Haley <> Date: Mon, 7 Feb 2011 20:41:20 +0000 Subject: [PATCH] Add completion to the search limit entry box --- src/calibre/gui2/preferences/look_feel.py | 3 +++ src/calibre/gui2/preferences/look_feel.ui | 9 ++++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/src/calibre/gui2/preferences/look_feel.py b/src/calibre/gui2/preferences/look_feel.py index e7bc172dfd..86d450567c 100644 --- a/src/calibre/gui2/preferences/look_feel.py +++ b/src/calibre/gui2/preferences/look_feel.py @@ -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) diff --git a/src/calibre/gui2/preferences/look_feel.ui b/src/calibre/gui2/preferences/look_feel.ui index 248941515c..4bd514101b 100644 --- a/src/calibre/gui2/preferences/look_feel.ui +++ b/src/calibre/gui2/preferences/look_feel.ui @@ -211,7 +211,7 @@ up into sub-categories. If the partition method is set to disable, this value is - + 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. + + + MultiCompleteLineEdit + QLineEdit +
calibre.gui2.complete.h
+
+