Bitcoin Core  0.20.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 
8 #include <qt/guiutil.h>
10 
11 #include <QModelIndex>
12 
13 TransactionDescDialog::TransactionDescDialog(const QModelIndex &idx, QWidget *parent) :
14  QDialog(parent),
15  ui(new Ui::TransactionDescDialog)
16 {
17  ui->setupUi(this);
18  setWindowTitle(tr("Details for %1").arg(idx.data(TransactionTableModel::TxHashRole).toString()));
19  QString desc = idx.data(TransactionTableModel::LongDescriptionRole).toString();
20  ui->detailText->setHtml(desc);
21 
23 }
24 
26 {
27  delete ui;
28 }
Dialog showing transaction details.
TransactionDescDialog(const QModelIndex &idx, QWidget *parent=nullptr)
Ui::TransactionDescDialog * ui
void handleCloseWindowShortcut(QWidget *w)
Definition: guiutil.cpp:390