summaryrefslogtreecommitdiffstats
path: root/core/subsurface-qt/DiveObjectHelper.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2018-10-16 07:56:41 -0400
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-10-23 22:45:29 +0100
commit8f7633eff867e7d5437f9caf24e82f581bf624c0 (patch)
tree9ffb789d402a9095fd7d7a5ad57cf4e8ff459b46 /core/subsurface-qt/DiveObjectHelper.cpp
parent0bc0b6bfe8666744611f8afa775a58b95e686652 (diff)
downloadsubsurface-8f7633eff867e7d5437f9caf24e82f581bf624c0.tar.gz
Mobile/filtering: full text filter, instead of just dive site
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'core/subsurface-qt/DiveObjectHelper.cpp')
-rw-r--r--core/subsurface-qt/DiveObjectHelper.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/core/subsurface-qt/DiveObjectHelper.cpp b/core/subsurface-qt/DiveObjectHelper.cpp
index a4d05f0ca..46809b403 100644
--- a/core/subsurface-qt/DiveObjectHelper.cpp
+++ b/core/subsurface-qt/DiveObjectHelper.cpp
@@ -434,3 +434,9 @@ QStringList DiveObjectHelper::firstGas() const
}
return gas;
}
+
+// for a full text search / filter function
+QString DiveObjectHelper::fullText() const
+{
+ return trip() + location() + buddy() + divemaster() + suit() + tags();
+}