MCPcopy Create free account
hub / github.com/Vector35/binaryninja-api / setImageLoaded

Method setImageLoaded

view/sharedcache/ui/dsctriage.cpp:162–178  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

160
161
162void 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
181QWidget* DSCTriageView::initImageTable()

Callers

nothing calls this directly

Calls 3

rowCountMethod · 0.45
indexMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected