MCPcopy Create free account
hub / github.com/LUX-Core/lux / lookupAddress

Method lookupAddress

src/qt/addresstablemodel.cpp:394–403  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

392}
393
394int AddressTableModel::lookupAddress(const QString& address) const
395{
396 QModelIndexList lst = match(index(0, Address, QModelIndex()),
397 Qt::EditRole, address, 1, Qt::MatchExactly);
398 if (lst.isEmpty()) {
399 return -1;
400 } else {
401 return lst.at(0).row();
402 }
403}
404
405void AddressTableModel::emitDataChanged(int idx)
406{

Callers 5

on_saveInfoClickedMethod · 0.45
on_saveInfoClickedMethod · 0.45
editLabelMethod · 0.45

Calls 4

indexFunction · 0.85
QModelIndexClass · 0.70
isEmptyMethod · 0.45
atMethod · 0.45

Tested by

no test coverage detected