diff --git a/src/models/searchmodel.cpp b/src/models/searchmodel.cpp index ba481c767..bc550fb87 100644 --- a/src/models/searchmodel.cpp +++ b/src/models/searchmodel.cpp @@ -135,7 +135,7 @@ int SearchModel::rowCount(const QModelIndex &parent) const QHash SearchModel::roleNames() const { return { - {EventTypeRole, "eventType"}, + {DelegateTypeRole, "delegateType"}, {DisplayRole, "display"}, {AuthorRole, "author"}, {ShowSectionRole, "showSection"}, diff --git a/src/models/searchmodel.h b/src/models/searchmodel.h index 0eb72b726..45959f97f 100644 --- a/src/models/searchmodel.h +++ b/src/models/searchmodel.h @@ -55,7 +55,7 @@ public: */ enum Roles { DisplayRole = Qt::DisplayRole, /**< The message string. */ - EventTypeRole, /**< The type of the event. */ + DelegateTypeRole, /**< The type of the event. */ ShowAuthorRole, /**< Whether the author should be shown (always true). */ AuthorRole, /**< The author of the event. */ ShowSectionRole, /**< Whether the section header should be shown. */