From 4f12d941f949bb8b8c1d043ac34772c5c80f1b89 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/Competitor.h | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) (limited to 'src/model/Competitor.h') diff --git a/src/model/Competitor.h b/src/model/Competitor.h index e5b0251..51fc3b1 100644 --- a/src/model/Competitor.h +++ b/src/model/Competitor.h @@ -1,12 +1,10 @@ -#ifndef ITAT_CHALLANGE_OLYMPICS_COMPETITOR_H -#define ITAT_CHALLANGE_OLYMPICS_COMPETITOR_H +#pragma once #include #include #include #include -#include using namespace std; @@ -14,15 +12,15 @@ class Competitor { Q_OBJECT - Q_PROPERTY(int code READ code) - Q_PROPERTY(QString name READ name) - Q_PROPERTY(QString noc READ noc) + Q_PROPERTY(int code READ code NOTIFY nCode) + Q_PROPERTY(QString name READ name NOTIFY nName) + Q_PROPERTY(QString noc READ noc NOTIFY nNoc) public: Competitor() { this->code = 0; - this->name = "na"; - this->noc = "---"; + this->name = ""; + this->noc = ""; } Competitor(const Competitor &competitor) { @@ -58,6 +56,3 @@ private: QString noc; }; - - -#endif //ITAT_CHALLANGE_OLYMPICS_COMPETITOR_H -- cgit v1.2.3