added value to CheckableItem, implemented exclusive checking in PassivModel
This commit is contained in:
parent
0a1eea0fe2
commit
02eaa7be16
6 changed files with 55 additions and 9 deletions
|
@ -187,10 +187,7 @@ unsigned int CheckableTestModel::getPoints() const
|
|||
{
|
||||
for (const auto &item : test.items())
|
||||
{
|
||||
if (item.isChecked())
|
||||
{
|
||||
points++;
|
||||
}
|
||||
points += item.points();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue