Use DelegateTypeRole searchmodel
Change EventTypeRole to DelegateTypeRole to match updated message event model.
This commit is contained in:
@@ -135,7 +135,7 @@ int SearchModel::rowCount(const QModelIndex &parent) const
|
|||||||
QHash<int, QByteArray> SearchModel::roleNames() const
|
QHash<int, QByteArray> SearchModel::roleNames() const
|
||||||
{
|
{
|
||||||
return {
|
return {
|
||||||
{EventTypeRole, "eventType"},
|
{DelegateTypeRole, "delegateType"},
|
||||||
{DisplayRole, "display"},
|
{DisplayRole, "display"},
|
||||||
{AuthorRole, "author"},
|
{AuthorRole, "author"},
|
||||||
{ShowSectionRole, "showSection"},
|
{ShowSectionRole, "showSection"},
|
||||||
|
|||||||
@@ -55,7 +55,7 @@ public:
|
|||||||
*/
|
*/
|
||||||
enum Roles {
|
enum Roles {
|
||||||
DisplayRole = Qt::DisplayRole, /**< The message string. */
|
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). */
|
ShowAuthorRole, /**< Whether the author should be shown (always true). */
|
||||||
AuthorRole, /**< The author of the event. */
|
AuthorRole, /**< The author of the event. */
|
||||||
ShowSectionRole, /**< Whether the section header should be shown. */
|
ShowSectionRole, /**< Whether the section header should be shown. */
|
||||||
|
|||||||
Reference in New Issue
Block a user