summaryrefslogtreecommitdiff
path: root/src/model/CompetitorWithResults.h
diff options
context:
space:
mode:
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