From eb61690873e234ea28a3f437fb7211c773a449fe Mon Sep 17 00:00:00 2001 From: Orangerot Date: Fri, 16 Aug 2024 07:06:05 +0200 Subject: feat(EventInfo): display EventInfo with List of Competitors --- src/model/Sport.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/model/Sport.h') diff --git a/src/model/Sport.h b/src/model/Sport.h index 0f183b7..be74a51 100644 --- a/src/model/Sport.h +++ b/src/model/Sport.h @@ -8,6 +8,7 @@ #include #include #include +#include "EventInfo.h" using namespace std; @@ -16,7 +17,8 @@ class SportModel : public QAbstractListModel { public: enum Role { - SportName = Qt::UserRole + 1 + EventName = Qt::UserRole + 1, + Competitors }; explicit SportModel(QObject *parent = nullptr); @@ -29,7 +31,7 @@ class SportModel : public QAbstractListModel { void parseData(); private: - QList m_sportList; + QList m_sportList; QNetworkAccessManager m_networkManager; QNetworkReply *m_reply = nullptr; }; @@ -111,4 +113,4 @@ private: }; -#endif //ITAT_CHALLANGE_OLYMPICS_SPORT_H +#endif -- cgit v1.2.3