#pragma once #include "Competitor.h" #include #include #include class EventInfo : public QObject { Q_OBJECT // QML_ELEMENT Q_PROPERTY(QString eventName READ eventName CONSTANT) Q_PROPERTY(QList competitors READ competitors CONSTANT) public: explicit EventInfo(QObject *parent = nullptr); QString eventName() const; void setEventName(const QString &newEventName); QList competitors() const; void setCompetitors(const QList &newCompetitors); private: QString m_eventName; QList m_competitors; };