diff options
Diffstat (limited to 'core')
-rw-r--r-- | core/subsurface-qt/DiveObjectHelper.cpp | 6 | ||||
-rw-r--r-- | core/subsurface-qt/DiveObjectHelper.h | 2 |
2 files changed, 8 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(); +} diff --git a/core/subsurface-qt/DiveObjectHelper.h b/core/subsurface-qt/DiveObjectHelper.h index d36ef550e..86c2a6748 100644 --- a/core/subsurface-qt/DiveObjectHelper.h +++ b/core/subsurface-qt/DiveObjectHelper.h @@ -49,6 +49,7 @@ class DiveObjectHelper : public QObject { Q_PROPERTY(QStringList startPressure READ startPressure CONSTANT) Q_PROPERTY(QStringList endPressure READ endPressure CONSTANT) Q_PROPERTY(QStringList firstGas READ firstGas CONSTANT) + Q_PROPERTY(QString fullText READ fullText CONSTANT) public: DiveObjectHelper(struct dive *dive = NULL); ~DiveObjectHelper(); @@ -93,6 +94,7 @@ public: QStringList startPressure() const; QStringList endPressure() const; QStringList firstGas() const; + QString fullText() const; private: struct dive *m_dive; |