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>
This commit is contained in:
parent
c0540d7682
commit
40536286d2
@ -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();
|
||||
}
|
||||
|
||||
@ -50,6 +50,7 @@ class DiveObjectHelper : public QObject {
|
||||
Q_PROPERTY(QStringList endPressure READ endPressure CONSTANT)
|
||||
Q_PROPERTY(QStringList firstGas READ firstGas CONSTANT)
|
||||
Q_PROPERTY(QString fullText READ fullText CONSTANT)
|
||||
Q_PROPERTY(QString fullTextNoNotes READ fullTextNoNotes CONSTANT)
|
||||
public:
|
||||
DiveObjectHelper(struct dive *dive = NULL);
|
||||
~DiveObjectHelper();
|
||||
@ -95,6 +96,7 @@ public:
|
||||
QStringList endPressure() const;
|
||||
QStringList firstGas() const;
|
||||
QString fullText() const;
|
||||
QString fullTextNoNotes() const;
|
||||
|
||||
private:
|
||||
struct dive *m_dive;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user