Changeset View
Changeset View
Standalone View
Standalone View
src/qt/transactiontablemodel.cpp
Show First 20 Lines • Show All 215 Lines • ▼ Show 20 Lines | QString describe(TransactionRecord *rec, int unit) { | ||||
return QString(); | return QString(); | ||||
} | } | ||||
QString getTxHex(TransactionRecord *rec) { | QString getTxHex(TransactionRecord *rec) { | ||||
LOCK2(cs_main, wallet->cs_wallet); | LOCK2(cs_main, wallet->cs_wallet); | ||||
std::map<TxId, CWalletTx>::iterator mi = | std::map<TxId, CWalletTx>::iterator mi = | ||||
wallet->mapWallet.find(rec->txid); | wallet->mapWallet.find(rec->txid); | ||||
if (mi != wallet->mapWallet.end()) { | if (mi != wallet->mapWallet.end()) { | ||||
std::string strHex = | std::string strHex = EncodeHexTx(*mi->second.tx); | ||||
EncodeHexTx(static_cast<CTransaction>(mi->second)); | |||||
return QString::fromStdString(strHex); | return QString::fromStdString(strHex); | ||||
} | } | ||||
return QString(); | return QString(); | ||||
} | } | ||||
}; | }; | ||||
TransactionTableModel::TransactionTableModel( | TransactionTableModel::TransactionTableModel( | ||||
const PlatformStyle *_platformStyle, CWallet *_wallet, WalletModel *parent) | const PlatformStyle *_platformStyle, CWallet *_wallet, WalletModel *parent) | ||||
▲ Show 20 Lines • Show All 567 Lines • Show Last 20 Lines |