implemented genus test results

This commit is contained in:
Michael Mandl 2018-06-15 17:53:43 +02:00
parent 060348fdc5
commit 5bc7edabc6
11 changed files with 129 additions and 61 deletions

View file

@ -8,20 +8,3 @@ PluralModel::PluralModel(QObject *parent)
"Korn UML+/-er/", "Nuss UML+/-e/", "Bär /-en/", "Apfel UML" } } };
}
size_t PluralModel::getPoints() const
{
size_t points = 0;
for (const auto &test : m_tests)
{
for (const auto &item : test.items())
{
if (item.isChecked())
{
points++;
}
}
}
return points;
}

View file

@ -8,9 +8,4 @@ class PluralModel : public CheckableTestModel
public:
PluralModel(QObject *parent);
size_t getPoints() const;
signals:
void resultChanged(size_t result) const;
};