40 Q_PROPERTY(QQmlListProperty<
Class> classes READ classes NOTIFY classesChanged)
41 Q_PROPERTY(QStringList classNames READ classNames NOTIFY classNamesChanged)
46 QQmlListProperty<
Class> classes(
void) override;
47 void setClasses(QList<
Class *> newClasses) override;
49 QStringList classNames(
void) override;
51 Q_INVOKABLE
void createNewClass(
void) override;
52 Q_INVOKABLE
void removeClass(
Class *classPtr) override;
53 Q_INVOKABLE
int targetHitsPerMinute(
void) override;
54 Q_INVOKABLE
int targetHitsPerMinute(
int selectedClass) override;
57 QString configLocation();
60 QList<
Class *> m_classes;
61 QStringList m_classNames;
64 static const QString nameProperty;
65 static const QString descriptionProperty;
66 static const QString gradingProperty;
67 static const QString targetHitsProperty;