summaryrefslogtreecommitdiff
path: root/src/model/CompetitorWithResults.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/CompetitorWithResults.h
parentc527aec94dafdf8c05cc9c0e822681a748790518 (diff)
Added pragma once to headers and notify to Q Params.
Diffstat (limited to 'src/model/CompetitorWithResults.h')
-rw-r--r--src/model/CompetitorWithResults.h16
1 files changed, 6 insertions, 10 deletions
diff --git a/src/model/CompetitorWithResults.h b/src/model/CompetitorWithResults.h
index f57b773..a58023f 100644
--- a/src/model/CompetitorWithResults.h
+++ b/src/model/CompetitorWithResults.h
@@ -1,6 +1,5 @@
-#ifndef ITAT_CHALLANGE_OLYMPICS_COMPETITORWITHRESULTS_H
-#define ITAT_CHALLANGE_OLYMPICS_COMPETITORWITHRESULTS_H
+#pragma once
#include "Competitor.h"
#include <QString>
@@ -13,14 +12,14 @@ class CompetitorWithResults : public Competitor {
Q_OBJECT
- Q_PROPERTY(QString mark READ mark)
- Q_PROPERTY(QString medalType READ medalType)
- Q_PROPERTY(QString statistic READ statistic WRITE setStatistic)
+ Q_PROPERTY(QString mark READ mark NOTIFY nMark)
+ Q_PROPERTY(QString medalType READ medalType NOTIFY nMedalType)
+ Q_PROPERTY(QString statistic READ statistic NOTIFY nStatistic)
public:
CompetitorWithResults() : Competitor() {
- this->mark = "-";
- this->medalType = "-";
+ this->mark = "";
+ this->medalType = "";
}
CompetitorWithResults(const CompetitorWithResults &competitor) : Competitor(competitor) {
@@ -49,6 +48,3 @@ private:
QString statistic;
};
-
-
-#endif //ITAT_CHALLANGE_OLYMPICS_COMPETITORWITHRESULTS_H