MCPcopy Create free account
hub / github.com/Vector35/debugger / GetSelectedPid

Method GetSelectedPid

ui/attachprocess.h:142–154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

140 ~ProcessListWidget();
141
142 uint32_t GetSelectedPid()
143 {
144 QModelIndexList sel = selectionModel()->selectedIndexes();
145 if (sel.empty() || !sel[0].isValid())
146 return 0;
147
148 auto sourceIndex = m_filter->mapToSource(sel[0]);
149 if (!sourceIndex.isValid())
150 return 0;
151
152 auto processItem = m_model->getRow(sourceIndex.row());
153 return processItem.pid();
154 }
155
156 void updateColumnWidths();
157

Callers

nothing calls this directly

Calls 3

rowMethod · 0.80
pidMethod · 0.80
getRowMethod · 0.45

Tested by

no test coverage detected