aboutsummaryrefslogtreecommitdiffstats
path: root/core/settings/qPrefGeneral.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2018-10-19 20:50:40 -0400
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-10-23 22:45:30 +0100
commiteedb1ce0ea23b8e01f1dfe28d501d18fe0179006 (patch)
tree47f9e910385125d8c24bdf45639fe1d29aa5b21c /core/settings/qPrefGeneral.cpp
parent2caaf8889bc43acada947223d72bd20f3dc297b3 (diff)
downloadsubsurface-eedb1ce0ea23b8e01f1dfe28d501d18fe0179006.tar.gz
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 <dirk@hohndel.org>
Diffstat (limited to 'core/settings/qPrefGeneral.cpp')
-rw-r--r--core/settings/qPrefGeneral.cpp7
1 files changed, 7 insertions, 0 deletions
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);