Add context menu on transaction list: copy label, copy address, edit label, show details

This commit is contained in:
Wladimir J. van der Laan
2011-07-08 22:27:36 +02:00
parent 35105534e7
commit 51d7cc07f1
10 changed files with 168 additions and 37 deletions

View File

@@ -123,18 +123,4 @@ TransactionTableModel *WalletModel::getTransactionTableModel()
return transactionTableModel;
}
/* Look up label for address in address book, if not found return empty string.
*/
QString WalletModel::labelForAddress(const QString &address) const
{
CRITICAL_BLOCK(wallet->cs_mapAddressBook)
{
std::map<std::string, std::string>::iterator mi = wallet->mapAddressBook.find(address.toStdString());
if (mi != wallet->mapAddressBook.end())
{
return QString::fromStdString(mi->second);
}
}
return QString();
}