Changeset View
Changeset View
Standalone View
Standalone View
src/qt/addresstablemodel.cpp
Show First 20 Lines • Show All 397 Lines • ▼ Show 20 Lines | QModelIndexList lst = match(index(0, Address, QModelIndex()), Qt::EditRole, | ||||
address, 1, Qt::MatchExactly); | address, 1, Qt::MatchExactly); | ||||
if (lst.isEmpty()) { | if (lst.isEmpty()) { | ||||
return -1; | return -1; | ||||
} else { | } else { | ||||
return lst.at(0).row(); | return lst.at(0).row(); | ||||
} | } | ||||
} | } | ||||
OutputType AddressTableModel::GetDefaultAddressType() const { | |||||
return walletModel->wallet().getDefaultAddressType(); | |||||
}; | |||||
void AddressTableModel::emitDataChanged(int idx) { | void AddressTableModel::emitDataChanged(int idx) { | ||||
Q_EMIT dataChanged(index(idx, 0, QModelIndex()), | Q_EMIT dataChanged(index(idx, 0, QModelIndex()), | ||||
index(idx, columns.length() - 1, QModelIndex())); | index(idx, columns.length() - 1, QModelIndex())); | ||||
} | } |