blob: def3885e99748010274fabedfb1bcc8a79e23a29 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#pragma once
#include "Competitor.h"
#include <QObject>
#include <QAbstractListModel>
#include <qqml.h>
class EventInfo : public QObject {
Q_OBJECT
// QML_ELEMENT
Q_PROPERTY(QString eventName READ eventName CONSTANT)
Q_PROPERTY(QList<Competitor*> competitors READ competitors CONSTANT)
public:
explicit EventInfo(QObject *parent = nullptr);
QString eventName() const;
void setEventName(const QString &newEventName);
QList<Competitor*> competitors() const;
void setCompetitors(const QList<Competitor*> &newCompetitors);
private:
QString m_eventName;
QList<Competitor*> m_competitors;
};
|