summaryrefslogtreecommitdiff
path: root/src/model/Sport.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/model/Sport.h')
-rw-r--r--src/model/Sport.h8
1 files changed, 5 insertions, 3 deletions
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 <QJsonObject>
#include <QJsonDocument>
#include <QString>
+#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<QString> m_sportList;
+ QList<EventInfo*> m_sportList;
QNetworkAccessManager m_networkManager;
QNetworkReply *m_reply = nullptr;
};
@@ -111,4 +113,4 @@ private:
};
-#endif //ITAT_CHALLANGE_OLYMPICS_SPORT_H
+#endif