diff options
author | Steru <jerrydream111@gmail.com> | 2024-08-15 21:00:18 +0200 |
---|---|---|
committer | Orangerot <purple@orangerot.dev> | 2024-08-26 11:19:38 +0200 |
commit | db2d0c21c48698d336ac6e60c42cc2533648b51d (patch) | |
tree | 175c64996085a53025978248f3244f9eeb28c26c /src/model/CompetitorWithResults.h | |
parent | df2cd325395886868e64c4d96ba7a959ef7d204e (diff) |
Added pragma once to headers and notify to Q Params.
Diffstat (limited to 'src/model/CompetitorWithResults.h')
-rw-r--r-- | src/model/CompetitorWithResults.h | 16 |
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 |