Browse Source

qt: Add transaction hash to details window title

0.13
Wladimir J. van der Laan 9 years ago
parent
commit
f135e3c943
  1. 2
      src/qt/forms/transactiondescdialog.ui
  2. 1
      src/qt/transactiondescdialog.cpp

2
src/qt/forms/transactiondescdialog.ui

@ -11,7 +11,7 @@
</rect> </rect>
</property> </property>
<property name="windowTitle"> <property name="windowTitle">
<string>Transaction details</string> <string notr="true">Transaction details</string>
</property> </property>
<layout class="QVBoxLayout" name="verticalLayout"> <layout class="QVBoxLayout" name="verticalLayout">
<item> <item>

1
src/qt/transactiondescdialog.cpp

@ -14,6 +14,7 @@ TransactionDescDialog::TransactionDescDialog(const QModelIndex &idx, QWidget *pa
ui(new Ui::TransactionDescDialog) ui(new Ui::TransactionDescDialog)
{ {
ui->setupUi(this); ui->setupUi(this);
setWindowTitle(tr("Details for %1").arg(idx.data(TransactionTableModel::TxIDRole).toString()));
QString desc = idx.data(TransactionTableModel::LongDescriptionRole).toString(); QString desc = idx.data(TransactionTableModel::LongDescriptionRole).toString();
ui->detailText->setHtml(desc); ui->detailText->setHtml(desc);
} }

Loading…
Cancel
Save