Changeset View
Changeset View
Standalone View
Standalone View
src/qt/bitcoingui.cpp
Show First 20 Lines • Show All 1,313 Lines • ▼ Show 20 Lines | void BitcoinGUI::incomingTransaction(const QString &date, int unit, | ||||
const Amount amount, const QString &type, | const Amount amount, const QString &type, | ||||
const QString &address, | const QString &address, | ||||
const QString &label, | const QString &label, | ||||
const QString &walletName) { | const QString &walletName) { | ||||
// On new transaction, make an info balloon | // On new transaction, make an info balloon | ||||
QString msg = tr("Date: %1\n").arg(date) + | QString msg = tr("Date: %1\n").arg(date) + | ||||
tr("Amount: %1\n") | tr("Amount: %1\n") | ||||
.arg(BitcoinUnits::formatWithUnit(unit, amount, true)); | .arg(BitcoinUnits::formatWithUnit(unit, amount, true)); | ||||
if (m_node.getWallets().size() > 1 && !walletName.isEmpty()) { | if (m_node.walletClient().getWallets().size() > 1 && | ||||
!walletName.isEmpty()) { | |||||
msg += tr("Wallet: %1\n").arg(walletName); | msg += tr("Wallet: %1\n").arg(walletName); | ||||
} | } | ||||
msg += tr("Type: %1\n").arg(type); | msg += tr("Type: %1\n").arg(type); | ||||
if (!label.isEmpty()) { | if (!label.isEmpty()) { | ||||
msg += tr("Label: %1\n").arg(label); | msg += tr("Label: %1\n").arg(label); | ||||
} else if (!address.isEmpty()) { | } else if (!address.isEmpty()) { | ||||
msg += tr("Address: %1\n").arg(address); | msg += tr("Address: %1\n").arg(address); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 325 Lines • Show Last 20 Lines |