summaryrefslogtreecommitdiff
path: root/src/model/EventInfo.cpp
diff options
context:
space:
mode:
authorOrangerot <purple@orangerot.dev>2024-08-16 07:06:05 +0200
committerOrangerot <purple@orangerot.dev>2024-08-16 07:06:05 +0200
commiteb61690873e234ea28a3f437fb7211c773a449fe (patch)
treed687ed8ec12de3cef8a24e0c54d30f70d2dc5e82 /src/model/EventInfo.cpp
parentc09350b7c9adf6327f0a0475c897a71dd23b6cae (diff)
feat(EventInfo): display EventInfo with List of Competitors
Diffstat (limited to 'src/model/EventInfo.cpp')
-rw-r--r--src/model/EventInfo.cpp22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/model/EventInfo.cpp b/src/model/EventInfo.cpp
new file mode 100644
index 0000000..e9ecd46
--- /dev/null
+++ b/src/model/EventInfo.cpp
@@ -0,0 +1,22 @@
+#include <QObject>
+#include "EventInfo.h"
+
+EventInfo::EventInfo(QObject *parent) : QObject(parent) {
+}
+
+QString EventInfo::eventName() const {
+ return m_eventName;
+}
+
+void EventInfo::setEventName(const QString &newEventName) {
+ m_eventName = newEventName;
+}
+
+QList<QString> EventInfo::competitors() const {
+ return m_competitors;
+}
+
+void EventInfo::setCompetitors(const QList<QString> &newCompetitors) {
+ m_competitors = newCompetitors;
+}
+