Changeset View
Changeset View
Standalone View
Standalone View
src/qt/bitcoingui.cpp
Show First 20 Lines • Show All 1,038 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 (WalletModel::isMultiwallet() && !walletName.isEmpty()) { | if (m_node.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 96 Lines • ▼ Show 20 Lines | if (!walletFrame) { | ||||
return; | return; | ||||
} | } | ||||
WalletView *const walletView = walletFrame->currentWalletView(); | WalletView *const walletView = walletFrame->currentWalletView(); | ||||
if (!walletView) { | if (!walletView) { | ||||
return; | return; | ||||
} | } | ||||
WalletModel *const walletModel = walletView->getWalletModel(); | WalletModel *const walletModel = walletView->getWalletModel(); | ||||
setEncryptionStatus(walletModel->getEncryptionStatus()); | setEncryptionStatus(walletModel->getEncryptionStatus()); | ||||
setHDStatus(walletModel->hdEnabled()); | setHDStatus(walletModel->wallet().hdEnabled()); | ||||
} | } | ||||
#endif // ENABLE_WALLET | #endif // ENABLE_WALLET | ||||
void BitcoinGUI::showNormalIfMinimized(bool fToggleHidden) { | void BitcoinGUI::showNormalIfMinimized(bool fToggleHidden) { | ||||
if (!clientModel) { | if (!clientModel) { | ||||
return; | return; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 165 Lines • Show Last 20 Lines |