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

Method setImageLoaded

view/kernelcache/ui/kctriage.cpp:110–126  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

108
109
110void 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
129QWidget* KCTriageView::initImageTable()

Callers

nothing calls this directly

Calls 3

rowCountMethod · 0.45
indexMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected