summaryrefslogtreecommitdiffstats
path: root/qt-models/divelistmodel.cpp
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2019-08-13 20:35:40 +0200
committerGravatar bstoeger <32835590+bstoeger@users.noreply.github.com>2019-09-14 13:20:59 +0200
commitb7cddcc737886ee3e99cee30a78423570de15f00 (patch)
tree8b190c6b2f58aa1befe108242774df1e19378ef0 /qt-models/divelistmodel.cpp
parent37a3daf2dd51330a9dc0a26f1b923698546373ed (diff)
downloadsubsurface-b7cddcc737886ee3e99cee30a78423570de15f00.tar.gz
Mobile: remove full-text properties from DiveObjectHelper
These properties are not needed anymore, because the full text search was decoupled from the DiveObjectHelper. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'qt-models/divelistmodel.cpp')
-rw-r--r--qt-models/divelistmodel.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/qt-models/divelistmodel.cpp b/qt-models/divelistmodel.cpp
index c1b8bea83..cad745dd3 100644
--- a/qt-models/divelistmodel.cpp
+++ b/qt-models/divelistmodel.cpp
@@ -243,8 +243,6 @@ QVariant DiveListModel::data(const QModelIndex &index, int role) const
switch(role) {
case DiveRole: return QVariant::fromValue<QObject*>(curr_dive);
case DiveDateRole: return (qlonglong)curr_dive->timestamp();
- case FullTextRole: return curr_dive->fullText();
- case FullTextNoNotesRole: return curr_dive->fullTextNoNotes();
}
return QVariant();
@@ -255,8 +253,6 @@ QHash<int, QByteArray> DiveListModel::roleNames() const
QHash<int, QByteArray> roles;
roles[DiveRole] = "dive";
roles[DiveDateRole] = "date";
- roles[FullTextRole] = "fulltext";
- roles[FullTextNoNotesRole] = "fulltextnonotes";
return roles;
}