| 160 | |
| 161 | |
| 162 | void DSCTriageView::setImageLoaded(const uint64_t imageHeaderAddr) |
| 163 | { |
| 164 | // Go through the m_imageModel and find the image associated with the address |
| 165 | // then set the image as loaded. |
| 166 | for (int i = 0; i < m_imageModel->rowCount(); i++) |
| 167 | { |
| 168 | auto addrCol = m_imageModel->index(i, 0); |
| 169 | const auto addr = addrCol.data().toString().toULongLong(nullptr, 16); |
| 170 | if (addr == imageHeaderAddr) |
| 171 | { |
| 172 | auto statusCol = m_imageModel->index(i, 1); |
| 173 | // See the `LoadedDelegate` class, we set 1 to indicate that this image is loaded. |
| 174 | m_imageModel->setData(statusCol, "1", Qt::DisplayRole); |
| 175 | break; |
| 176 | } |
| 177 | } |
| 178 | } |
| 179 | |
| 180 | |
| 181 | QWidget* DSCTriageView::initImageTable() |