From 40536286d2b6a4533bd4ef863a1146cc321689dc Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Fri, 19 Oct 2018 21:15:56 -0400 Subject: Mobile/filtering: add fullTextNoNotes to the dive object helper This way we can filter with and without the notes. Signed-off-by: Dirk Hohndel --- core/subsurface-qt/DiveObjectHelper.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'core/subsurface-qt/DiveObjectHelper.cpp') diff --git a/core/subsurface-qt/DiveObjectHelper.cpp b/core/subsurface-qt/DiveObjectHelper.cpp index d24f85a6d..dfc1739e8 100644 --- a/core/subsurface-qt/DiveObjectHelper.cpp +++ b/core/subsurface-qt/DiveObjectHelper.cpp @@ -438,5 +438,10 @@ QStringList DiveObjectHelper::firstGas() const // for a full text search / filter function QString DiveObjectHelper::fullText() const { - return trip() + ":-:" + location() + ":-:" + buddy() + ":-:" + divemaster() + ":-:" + suit() + ":-:" + tags() + ":-:" + notes(); + return fullTextNoNotes() + ":-:" + notes(); +} + +QString DiveObjectHelper::fullTextNoNotes() const +{ + return trip() + ":-:" + location() + ":-:" + buddy() + ":-:" + divemaster() + ":-:" + suit() + ":-:" + tags(); } -- cgit v1.2.3-70-g09d2