summaryrefslogtreecommitdiffstats
path: root/qt-models
diff options
context:
space:
mode:
Diffstat (limited to 'qt-models')
-rw-r--r--qt-models/divelistmodel.cpp4
-rw-r--r--qt-models/divelistmodel.h2
2 files changed, 0 insertions, 6 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;
}
diff --git a/qt-models/divelistmodel.h b/qt-models/divelistmodel.h
index 37d3513bf..5ac252d60 100644
--- a/qt-models/divelistmodel.h
+++ b/qt-models/divelistmodel.h
@@ -38,8 +38,6 @@ public:
enum DiveListRoles {
DiveRole = Qt::UserRole + 1,
DiveDateRole,
- FullTextRole,
- FullTextNoNotesRole
};
static DiveListModel *instance();