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/MedalWinner.h | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'src/model/MedalWinner.h') diff --git a/src/model/MedalWinner.h b/src/model/MedalWinner.h index 99ca1a3..7f17449 100644 --- a/src/model/MedalWinner.h +++ b/src/model/MedalWinner.h @@ -1,6 +1,5 @@ -#ifndef ITAT_CHALLANGE_OLYMPICS_MEDALWINNER_H -#define ITAT_CHALLANGE_OLYMPICS_MEDALWINNER_H +#pragma once #include "Competitor.h" #include @@ -12,9 +11,9 @@ class MedalWinner : public Competitor { Q_OBJECT - Q_PROPERTY(int gold READ gold) - Q_PROPERTY(int silver READ silver) - Q_PROPERTY(int bronze READ bronze) + Q_PROPERTY(int gold READ gold NOTIFY nGold) + Q_PROPERTY(int silver READ silver NOTIFY nSilver) + Q_PROPERTY(int bronze READ bronze NOTIFY nBronze) public: MedalWinner() : Competitor() { @@ -46,6 +45,3 @@ private: int gold, silver, bronze; }; - - -#endif //ITAT_CHALLANGE_OLYMPICS_MEDALWINNER_H -- cgit v1.2.3