Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/qt/forms/transactiondescdialog.ui
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<widget class="QTextEdit" name="detailText">
<widget class="QTextBrowser" name="detailText">
<property name="toolTip">
<string>This pane shows a detailed description of the transaction</string>
</property>
Expand Down
11 changes: 8 additions & 3 deletions src/qt/transactiondesc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,11 @@ QString TransactionDesc::toHTML(CWallet *wallet, CWalletTx &wtx, int vout, int u

strHTML += "<b>" + tr("Transaction ID") + ":</b> " + TransactionRecord::formatSubTxId(wtx.GetHash(), vout) + "<br>";

//
// View on blockchain explorer
//
strHTML += "<b>" + tr("View in Blockchain explorer") + ":</b> " + "<a href=\"https://chainz.cryptoid.info/smly/tx.dws?" + QString::fromStdString(wtx.GetHash().ToString()) + "\"> View</a>" + "<br>";

// Message from normal bitcoin:URI (bitcoin:123...?message=example)
foreach(const PAIRTYPE(string, string)& r, wtx.vOrderForm)
if (r.first == "Message")
Expand Down Expand Up @@ -299,8 +304,8 @@ QString TransactionDesc::toHTML(CWallet *wallet, CWalletTx &wtx, int vout, int u
strHTML += GUIUtil::HtmlEscape(wallet->mapAddressBook[address].name) + " ";
strHTML += QString::fromStdString(CBitcoinAddress(address).ToString());
}
strHTML = strHTML + " " + tr("Amount") + "=" + BitcoinUnits::formatWithUnit(unit, vout.nValue);
strHTML = strHTML + " IsMine=" + (wallet->IsMine(vout) ? tr("true") : tr("false")) + "</li>";
strHTML += " " + tr("Amount") + "=" + BitcoinUnits::formatWithUnit(unit, vout.nValue);
strHTML += " IsMine=" + (wallet->IsMine(vout) ? tr("true") : tr("false")) + "</li>";
}
}
}
Expand All @@ -310,4 +315,4 @@ QString TransactionDesc::toHTML(CWallet *wallet, CWalletTx &wtx, int vout, int u

strHTML += "</font></html>";
return strHTML;
}
}
1 change: 1 addition & 0 deletions src/qt/transactiondesc.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

#include <QObject>
#include <QString>
#include <QUrl>

class CWallet;
class CWalletTx;
Expand Down
3 changes: 3 additions & 0 deletions src/qt/transactiondescdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ TransactionDescDialog::TransactionDescDialog(const QModelIndex &idx, QWidget *pa
{
ui->setupUi(this);
QString desc = idx.data(TransactionTableModel::LongDescriptionRole).toString();
ui->detailText->setTextInteractionFlags(Qt::TextBrowserInteraction);
ui->detailText->setOpenLinks(true);
ui->detailText->setOpenExternalLinks(true);
ui->detailText->setHtml(desc);
}

Expand Down
2 changes: 1 addition & 1 deletion src/qt/transactionview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -532,4 +532,4 @@ void TransactionView::resizeEvent(QResizeEvent* event)
{
QWidget::resizeEvent(event);
columnResizingFixer->stretchColumnWidth(TransactionTableModel::ToAddress);
}
}