summaryrefslogtreecommitdiff
path: root/src/model/Sport.h
diff options
context:
space:
mode:
authorOrangerot <purple@orangerot.dev>2024-08-16 16:17:16 +0200
committerOrangerot <purple@orangerot.dev>2024-08-16 16:17:16 +0200
commitf87bc73c3f7ff003444ce2b0fef2229f501bd1d4 (patch)
tree2676648fec134e289497808ae7d675b94ebeef24 /src/model/Sport.h
parent3d19fd72716561a0322ba0acc5c94aac9f161e9d (diff)
fix(Sport): disciplineChanged notification
Diffstat (limited to 'src/model/Sport.h')
-rw-r--r--src/model/Sport.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/model/Sport.h b/src/model/Sport.h
index 01798fb..6a68570 100644
--- a/src/model/Sport.h
+++ b/src/model/Sport.h
@@ -16,7 +16,7 @@ using namespace std;
class SportModel : public QAbstractListModel {
Q_OBJECT
- Q_PROPERTY(QString discipline READ discipline WRITE setDiscipline);
+ Q_PROPERTY(QString discipline READ discipline WRITE setDiscipline NOTIFY disciplineChanged);
public:
enum Role {
@@ -37,6 +37,9 @@ class SportModel : public QAbstractListModel {
void request(QString discipline);
void parseData();
+ signals:
+ void disciplineChanged();
+
private:
QList<EventInfo*> m_sportList;
QString m_discipline;