| 26 | ProblemModelSet::~ProblemModelSet() = default; |
| 27 | |
| 28 | void ProblemModelSet::addModel(const QString &id, const QString &name, ProblemModel *model) |
| 29 | { |
| 30 | Q_D(ProblemModelSet); |
| 31 | |
| 32 | ModelData m{id, name, model}; |
| 33 | |
| 34 | d->data.push_back(m); |
| 35 | |
| 36 | connect(model, &ProblemModel::problemsChanged, this, &ProblemModelSet::problemsChanged); |
| 37 | |
| 38 | emit added(m); |
| 39 | } |
| 40 | |
| 41 | ProblemModel* ProblemModelSet::findModel(const QString &id) const |
| 42 | { |