summaryrefslogtreecommitdiff
path: root/src/model/MedalWinner.h
diff options
context:
space:
mode:
authorSteru <jerrydream111@gmail.com>2024-08-15 21:00:18 +0200
committerSteru <jerrydream111@gmail.com>2024-08-16 23:53:31 +0200
commit4f12d941f949bb8b8c1d043ac34772c5c80f1b89 (patch)
treeeb79167751025bbfc9136c6507dac08fe764641b /src/model/MedalWinner.h
parent492a726497785e8072e76a415dbbfdbd498e1b92 (diff)
Added pragma once to headers and notify to Q Params.
Diffstat (limited to 'src/model/MedalWinner.h')
-rw-r--r--src/model/MedalWinner.h12
1 files changed, 4 insertions, 8 deletions
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 <QMap>
@@ -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