diff options
author | Steru <jerrydream111@gmail.com> | 2024-08-15 21:00:18 +0200 |
---|---|---|
committer | Steru <jerrydream111@gmail.com> | 2024-08-16 23:53:31 +0200 |
commit | 4f12d941f949bb8b8c1d043ac34772c5c80f1b89 (patch) | |
tree | eb79167751025bbfc9136c6507dac08fe764641b /src/model/CompetitorWithResults.h | |
parent | 492a726497785e8072e76a415dbbfdbd498e1b92 (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 |