| 260 | } |
| 261 | |
| 262 | void ModelsManager::updateRegisters(const QString& group) |
| 263 | { |
| 264 | Q_ASSERT(m_controller); |
| 265 | if (group.isEmpty()) { |
| 266 | m_controller->updateRegisters(GroupsName()); |
| 267 | } else { |
| 268 | const auto namesOfRegisterGroups = m_controller->namesOfRegisterGroups(); |
| 269 | for (const GroupsName& g : namesOfRegisterGroups) { |
| 270 | if (g.name() == group) { |
| 271 | m_controller->updateRegisters(g); |
| 272 | break; |
| 273 | } |
| 274 | } |
| 275 | } |
| 276 | } |
| 277 | |
| 278 | void Models::clear() |
| 279 | { |
nothing calls this directly
no test coverage detected