32class Q_DECL_EXPORT
Class :
public QObject
35 Q_PROPERTY(QString name READ name WRITE setName NOTIFY nameChanged)
36 Q_PROPERTY(QString description READ description WRITE setDescription NOTIFY descriptionChanged)
37 Q_PROPERTY(
int targetHitsPerMinute READ targetHitsPerMinute WRITE setTargetHitsPerMinute NOTIFY targetHitsPerMinuteChanged)
38 Q_PROPERTY(QMap<
int,
int> gradeConfig READ gradeConfig NOTIFY gradeConfigChanged)
41 Class(QObject *parent =
nullptr);
43 const QString &name(
void) const;
44 void setName(const QString &newName);
46 const QString &description(
void) const;
47 void setDescription(const QString &newDescription);
49 int targetHitsPerMinute(
void) const;
50 void setTargetHitsPerMinute(
int newTargetHitsPerMinute);
52 const QMap<
int,
int> &gradeConfig(
void) const;
54 Q_INVOKABLE
int targetHitsForMonth(
int month);
55 Q_INVOKABLE
void setTargetHitsForMonth(
int month,
int targetHits);
59 QString m_description;
60 int m_targetHitsPerMinute = 0;
61 QMap<
int,
int> m_gradeConfig;
66 void gradeConfigChanged();
67 void descriptionChanged();
68 void targetHitsPerMinuteChanged();