| 1229 | |
| 1230 | #ifdef ENABLE_WALLET |
| 1231 | void BitcoinGUI::incomingTransaction(const QString& date, const QString& assetamount_str, const QString& type, const QString& address, const QString& label, const QString& walletName) |
| 1232 | { |
| 1233 | // On new transaction, make an info balloon |
| 1234 | QString msg = tr("Date: %1\n").arg(date) + |
| 1235 | tr("Amount: %1\n").arg(assetamount_str); |
| 1236 | if (m_node.walletLoader().getWallets().size() > 1 && !walletName.isEmpty()) { |
| 1237 | msg += tr("Wallet: %1\n").arg(walletName); |
| 1238 | } |
| 1239 | msg += tr("Type: %1\n").arg(type); |
| 1240 | if (!label.isEmpty()) |
| 1241 | msg += tr("Label: %1\n").arg(label); |
| 1242 | else if (!address.isEmpty()) |
| 1243 | msg += tr("Address: %1\n").arg(address); |
| 1244 | message(assetamount_str.startsWith("-") ? tr("Sent transaction") : tr("Incoming transaction"), |
| 1245 | msg, CClientUIInterface::MSG_INFORMATION); |
| 1246 | } |
| 1247 | #endif // ENABLE_WALLET |
| 1248 | |
| 1249 | void BitcoinGUI::dragEnterEvent(QDragEnterEvent *event) |
nothing calls this directly
no test coverage detected