From eedb1ce0ea23b8e01f1dfe28d501d18fe0179006 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Fri, 19 Oct 2018 20:50:40 -0400 Subject: Mobile/filtering: add two preferences for filtering With this we can make it configurable if the search should include the notes field and if the search should be case sensitive or not. Signed-off-by: Dirk Hohndel --- core/settings/qPrefGeneral.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'core/settings/qPrefGeneral.cpp') diff --git a/core/settings/qPrefGeneral.cpp b/core/settings/qPrefGeneral.cpp index 3f18b496a..9254a8c51 100644 --- a/core/settings/qPrefGeneral.cpp +++ b/core/settings/qPrefGeneral.cpp @@ -36,6 +36,9 @@ void qPrefGeneral::loadSync(bool doSync) disk_o2consumption(doSync); disk_pscr_ratio(doSync); disk_use_default_file(doSync); + disk_filterFullTextNotes(doSync); + disk_filterCaseSensitive(doSync); + if (!doSync) { load_diveshareExport_uid(); load_diveshareExport_private(); @@ -95,3 +98,7 @@ HANDLE_PREFERENCE_BOOL(General, "use_default_file", use_default_file); HANDLE_PROP_QSTRING(General, "diveshareExport/uid", diveshareExport_uid); HANDLE_PROP_BOOL(General, "diveshareExport/private", diveshareExport_private); + +HANDLE_PREFERENCE_BOOL(General, "filterFullTextNotes", filterFullTextNotes); + +HANDLE_PREFERENCE_BOOL(General, "filterCaseSensitive", filterCaseSensitive); -- cgit v1.2.3-70-g09d2