From db2d0c21c48698d336ac6e60c42cc2533648b51d Mon Sep 17 00:00:00 2001 From: Steru Date: Thu, 15 Aug 2024 21:00:18 +0200 Subject: Added pragma once to headers and notify to Q Params. --- src/model/CompetitorWithResults.h | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) (limited to 'src/model/CompetitorWithResults.h') 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 @@ -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 -- cgit v1.2.3