From a6648b7d1e567b22b32600d6c8eda868218b83ad Mon Sep 17 00:00:00 2001 From: Bent Witthold Date: Thu, 5 Mar 2026 12:30:43 +0100 Subject: [PATCH] Added "display" as role name. (For the QML UI) --- model/metadata.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/model/metadata.h b/model/metadata.h index 3ee11f5..d847b9d 100644 --- a/model/metadata.h +++ b/model/metadata.h @@ -28,10 +28,11 @@ static UserRoles DEFAULT_ROLE = NameRole; static QList USER_FACING_ROLES = {NameRole, DescriptionRole, InfoRole, TypeRole, AmountRole, FactorRole}; static QHash ROLE_NAMES = { - {NameRole, "name"}, {DescriptionRole, "description"}, - {InfoRole, "info"}, {TypeRole, "type"}, - {AmountRole, "amount"}, {FactorRole, "factor"}, - {ToStringRole, "ToString"}, {IdRole, "id"}}; + {NameRole, "name"}, {DescriptionRole, "description"}, + {InfoRole, "info"}, {TypeRole, "type"}, + {AmountRole, "amount"}, {FactorRole, "factor"}, + {ToStringRole, "ToString"}, {IdRole, "id"}, + {Qt::DisplayRole, "display"}}; static QList STRING_ROLES = {NameRole, DescriptionRole, InfoRole, IdRole}; static QList INT_ROLES = {AmountRole};