| 108 | |
| 109 | |
| 110 | void KCTriageView::setImageLoaded(const uint64_t imageHeaderAddr) |
| 111 | { |
| 112 | // Go through the m_imageModel and find the image associated with the address |
| 113 | // then set the image as loaded. |
| 114 | for (int i = 0; i < m_imageModel->rowCount(); i++) |
| 115 | { |
| 116 | auto addrCol = m_imageModel->index(i, 0); |
| 117 | const auto addr = addrCol.data().toString().toULongLong(nullptr, 16); |
| 118 | if (addr == imageHeaderAddr) |
| 119 | { |
| 120 | auto statusCol = m_imageModel->index(i, 1); |
| 121 | // See the `LoadedDelegate` class, we set 1 to indicate that this image is loaded. |
| 122 | m_imageModel->setData(statusCol, "1", Qt::DisplayRole); |
| 123 | break; |
| 124 | } |
| 125 | } |
| 126 | } |
| 127 | |
| 128 | |
| 129 | QWidget* KCTriageView::initImageTable() |