summaryrefslogtreecommitdiff
path: root/src/model/Competitor.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/model/Competitor.h')
-rw-r--r--src/model/Competitor.h17
1 files changed, 6 insertions, 11 deletions
diff --git a/src/model/Competitor.h b/src/model/Competitor.h
index e5b0251..51fc3b1 100644
--- a/src/model/Competitor.h
+++ b/src/model/Competitor.h
@@ -1,12 +1,10 @@
-#ifndef ITAT_CHALLANGE_OLYMPICS_COMPETITOR_H
-#define ITAT_CHALLANGE_OLYMPICS_COMPETITOR_H
+#pragma once
#include <QString>
#include <QMap>
#include <QJsonObject>
#include <QAbstractListModel>
-#include <stdexcept>
using namespace std;
@@ -14,15 +12,15 @@ class Competitor {
Q_OBJECT
- Q_PROPERTY(int code READ code)
- Q_PROPERTY(QString name READ name)
- Q_PROPERTY(QString noc READ noc)
+ Q_PROPERTY(int code READ code NOTIFY nCode)
+ Q_PROPERTY(QString name READ name NOTIFY nName)
+ Q_PROPERTY(QString noc READ noc NOTIFY nNoc)
public:
Competitor() {
this->code = 0;
- this->name = "na";
- this->noc = "---";
+ this->name = "";
+ this->noc = "";
}
Competitor(const Competitor &competitor) {
@@ -58,6 +56,3 @@ private:
QString noc;
};
-
-
-#endif //ITAT_CHALLANGE_OLYMPICS_COMPETITOR_H