From 17347f51101e41423d7517403efc853264aae7ae Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Fri, 19 Oct 2018 21:16:50 -0400 Subject: Mobile/filtering: add fullTextNoNotes role to the dive list model This way we can filter with and without the notes. Signed-off-by: Dirk Hohndel --- qt-models/divelistmodel.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'qt-models/divelistmodel.cpp') diff --git a/qt-models/divelistmodel.cpp b/qt-models/divelistmodel.cpp index 1c4e20b48..bc7e38a98 100644 --- a/qt-models/divelistmodel.cpp +++ b/qt-models/divelistmodel.cpp @@ -169,6 +169,7 @@ QVariant DiveListModel::data(const QModelIndex &index, int role) const case DiveRole: return QVariant::fromValue(curr_dive); case DiveDateRole: return (qlonglong)curr_dive->timestamp(); case FullTextRole: return curr_dive->fullText(); + case FullTextNoNotesRole: return curr_dive->fullTextNoNotes(); } return QVariant(); @@ -180,6 +181,7 @@ QHash DiveListModel::roleNames() const roles[DiveRole] = "dive"; roles[DiveDateRole] = "date"; roles[FullTextRole] = "fulltext"; + roles[FullTextNoNotesRole] = "fulltextnonotes"; return roles; } -- cgit v1.2.3-70-g09d2