Extend LocationsModel to include asset and auther roles

Needed for compatibility with the standard map marker.
This commit is contained in:
Volker Krause
2023-06-17 14:38:05 +02:00
parent 898f0c962a
commit a02dd4ab87
2 changed files with 11 additions and 3 deletions

View File

@@ -19,6 +19,8 @@ public:
TextRole = Qt::DisplayRole,
LongitudeRole,
LatitudeRole,
AssetRole,
AuthorRole,
};
Q_ENUM(Roles)
Q_PROPERTY(NeoChatRoom *room READ room WRITE setRoom NOTIFY roomChanged)
@@ -42,7 +44,7 @@ private:
QString eventId;
float latitude;
float longitude;
QString text;
QJsonObject content;
NeoChatUser *author;
};
QList<LocationData> m_locations;