MCPcopy Create free account
hub / github.com/ElementsProject/elements / lookupAddress

Method lookupAddress

src/qt/addresstablemodel.cpp:437–449  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

435}
436
437int AddressTableModel::lookupAddress(const QString &address) const
438{
439 QModelIndexList lst = match(index(0, Address, QModelIndex()),
440 Qt::EditRole, address, 1, Qt::MatchExactly);
441 if(lst.isEmpty())
442 {
443 return -1;
444 }
445 else
446 {
447 return lst.at(0).row();
448 }
449}
450
451OutputType AddressTableModel::GetDefaultAddressType() const { return walletModel->wallet().getDefaultAddressType(); };
452

Callers 1

editLabelMethod · 0.45

Calls 1

QModelIndexClass · 0.70

Tested by

no test coverage detected