Changeset View
Changeset View
Standalone View
Standalone View
src/qt/bitcoingui.cpp
Show First 20 Lines • Show All 1,031 Lines • ▼ Show 20 Lines | void BitcoinGUI::incomingTransaction(const QString &date, int unit, | ||||
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)) + | ||||
tr("Type: %1\n").arg(type); | 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); | ||||
message((amount) < 0 ? tr("Sent transaction") : tr("Incoming transaction"), | message(amount < Amount(0) ? tr("Sent transaction") | ||||
: tr("Incoming transaction"), | |||||
msg, CClientUIInterface::MSG_INFORMATION); | msg, CClientUIInterface::MSG_INFORMATION); | ||||
} | } | ||||
#endif // ENABLE_WALLET | #endif // ENABLE_WALLET | ||||
void BitcoinGUI::dragEnterEvent(QDragEnterEvent *event) { | void BitcoinGUI::dragEnterEvent(QDragEnterEvent *event) { | ||||
// Accept only URIs | // Accept only URIs | ||||
if (event->mimeData()->hasUrls()) event->acceptProposedAction(); | if (event->mimeData()->hasUrls()) event->acceptProposedAction(); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 249 Lines • Show Last 20 Lines |