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

Method exportDoubleClicked

examples/triage/exports.cpp:331–351  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

329
330
331void ExportsTreeView::exportDoubleClicked(const QModelIndex& cur)
332{
333 SymbolRef sym = m_model->getSymbol(cur);
334 if (sym)
335 {
336 ViewFrame* viewFrame = ViewFrame::viewFrameForWidget(this);
337 if (viewFrame)
338 {
339 if (BinaryNinja::Settings::Instance()->Get<bool>("ui.view.graph.preferred") &&
340 viewFrame->getCurrentBinaryView() &&
341 m_data->GetAnalysisFunctionsForAddress(sym->GetAddress()).size() > 0)
342 {
343 viewFrame->navigate("Graph:" + viewFrame->getCurrentDataType(), sym->GetAddress());
344 }
345 else
346 {
347 viewFrame->navigate("Linear:" + viewFrame->getCurrentDataType(), sym->GetAddress());
348 }
349 }
350 }
351}
352
353
354void ExportsTreeView::setFilter(const std::string& filterText)

Callers

nothing calls this directly

Calls 6

Get<bool>Method · 0.80
getSymbolMethod · 0.45
sizeMethod · 0.45
GetAddressMethod · 0.45
navigateMethod · 0.45

Tested by

no test coverage detected