diff options
Diffstat (limited to 'qt-models/divelistmodel.cpp')
-rw-r--r-- | qt-models/divelistmodel.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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<QObject*>(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<int, QByteArray> DiveListModel::roleNames() const roles[DiveRole] = "dive"; roles[DiveDateRole] = "date"; roles[FullTextRole] = "fulltext"; + roles[FullTextNoNotesRole] = "fulltextnonotes"; return roles; } |