summaryrefslogtreecommitdiff
path: root/src/model/Competitor.h
diff options
context:
space:
mode:
authorSteru <jerrydream111@gmail.com>2024-08-15 21:00:18 +0200
committerSteru <jerrydream111@gmail.com>2024-08-16 15:59:17 +0200
commitb49c066bd5ef8d543a842249881b57eb771ffc94 (patch)
tree6f82da3101ac56c352b655927eb1b3bd93585b88 /src/model/Competitor.h
parentc527aec94dafdf8c05cc9c0e822681a748790518 (diff)
Added pragma once to headers and notify to Q Params.
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