aboutsummaryrefslogtreecommitdiffstats
path: root/core/subsurface-qt/DiveObjectHelper.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2018-10-19 21:15:56 -0400
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-10-23 22:45:30 +0100
commit40536286d2b6a4533bd4ef863a1146cc321689dc (patch)
tree3bbc5b478df7bcb1d61b8603c0524f7b79763fc2 /core/subsurface-qt/DiveObjectHelper.cpp
parentc0540d7682ebc7410791cefa489e3b16257f679c (diff)
downloadsubsurface-40536286d2b6a4533bd4ef863a1146cc321689dc.tar.gz
Mobile/filtering: add fullTextNoNotes to the dive object helper
This way we can filter with and without the notes. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'core/subsurface-qt/DiveObjectHelper.cpp')
-rw-r--r--core/subsurface-qt/DiveObjectHelper.cpp7
1 files changed, 6 insertions, 1 deletions
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();
}