Bitcoin Core  0.18.99
P2P Digital Currency
transactiondescdialog.cpp
Go to the documentation of this file.
1 // Copyright (c) 2011-2018 The Bitcoin Core developers
2 // Distributed under the MIT software license, see the accompanying
3 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
4 
6 #include <qt/forms/ui_transactiondescdialog.h>
7 
9 
10 #include <QModelIndex>
11 
12 TransactionDescDialog::TransactionDescDialog(const QModelIndex &idx, QWidget *parent) :
13  QDialog(parent),
14  ui(new Ui::TransactionDescDialog)
15 {
16  ui->setupUi(this);
17  setWindowTitle(tr("Details for %1").arg(idx.data(TransactionTableModel::TxHashRole).toString()));
18  QString desc = idx.data(TransactionTableModel::LongDescriptionRole).toString();
19  ui->detailText->setHtml(desc);
20 }
21 
23 {
24  delete ui;
25 }
Dialog showing transaction details.
TransactionDescDialog(const QModelIndex &idx, QWidget *parent=nullptr)
Ui::TransactionDescDialog * ui