| 144 | } |
| 145 | |
| 146 | void ProgramModel::update_all() { |
| 147 | const machine::FrontendMemory *mem; |
| 148 | mem = mem_access(); |
| 149 | if (mem != nullptr) { |
| 150 | memory_change_counter = mem->get_change_counter(); |
| 151 | if (machine->cache_program() != nullptr) { |
| 152 | cache_program_change_counter = machine->cache_program()->get_change_counter(); |
| 153 | } |
| 154 | } |
| 155 | stages_need_update = false; |
| 156 | emit dataChanged(index(0, 0), index(rowCount() - 1, columnCount() - 1)); |
| 157 | } |
| 158 | |
| 159 | void ProgramModel::check_for_updates() { |
| 160 | bool need_update = stages_need_update; |
nothing calls this directly
no test coverage detected