summaryrefslogtreecommitdiff
path: root/src/model/EventInfo.cpp
diff options
context:
space:
mode:
authorSteru <jerrydream111@gmail.com>2024-08-16 22:19:42 +0200
committerSteru <jerrydream111@gmail.com>2024-08-16 22:19:42 +0200
commit100e73ec28dbc1f307c540cbd4b5a04dfe5922f8 (patch)
tree20ec2b68ae44f7e0e0cec62b605696301898072e /src/model/EventInfo.cpp
parentb0063e96410ff0c407e2daead4cf53252568b542 (diff)
Compacted competitors into one object, deleted API class (now in sportmodel).
Diffstat (limited to 'src/model/EventInfo.cpp')
-rw-r--r--src/model/EventInfo.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/model/EventInfo.cpp b/src/model/EventInfo.cpp
index e9ecd46..fef0fba 100644
--- a/src/model/EventInfo.cpp
+++ b/src/model/EventInfo.cpp
@@ -1,22 +1,21 @@
-#include <QObject>
#include "EventInfo.h"
EventInfo::EventInfo(QObject *parent) : QObject(parent) {
}
QString EventInfo::eventName() const {
- return m_eventName;
+ return this->m_eventName;
}
void EventInfo::setEventName(const QString &newEventName) {
m_eventName = newEventName;
}
-QList<QString> EventInfo::competitors() const {
+QList<Competitor*> EventInfo::competitors() const {
return m_competitors;
}
-void EventInfo::setCompetitors(const QList<QString> &newCompetitors) {
- m_competitors = newCompetitors;
+void EventInfo::setCompetitors(const QList<Competitor*> &newCompetitors) {
+ this->m_competitors = newCompetitors;
}