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

Method selectFirstItem

view/sharedcache/ui/symboltable.h:71–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69 }
70
71 void selectFirstItem() override
72 {
73 if (model()->rowCount() > 0) {
74 QModelIndex top = indexAt(rect().topLeft());
75 if (top.isValid()) {
76 selectionModel()->select(top, QItemSelectionModel::ClearAndSelect);
77 setCurrentIndex(top);
78 }
79 }
80 }
81
82 void activateFirstItem() override
83 {

Callers

nothing calls this directly

Calls 2

modelFunction · 0.50
rowCountMethod · 0.45

Tested by

no test coverage detected