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 23:53:31 +0200
commit4f12d941f949bb8b8c1d043ac34772c5c80f1b89 (patch)
treeeb79167751025bbfc9136c6507dac08fe764641b /src/model/Competitor.h
parent492a726497785e8072e76a415dbbfdbd498e1b92 (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