Bitcoin ABC  0.22.12
P2P Digital Currency
transactiondescdialog.cpp
Go to the documentation of this file.
1 // Copyright (c) 2011-2016 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 
5 #include <qt/forms/ui_transactiondescdialog.h>
7 
9 
10 #include <QModelIndex>
11 
13  QWidget *parent)
14  : QDialog(parent), ui(new Ui::TransactionDescDialog) {
15  ui->setupUi(this);
16  setWindowTitle(
17  tr("Details for %1")
18  .arg(idx.data(TransactionTableModel::TxIDRole).toString()));
19  QString desc =
20  idx.data(TransactionTableModel::LongDescriptionRole).toString();
21  ui->detailText->setHtml(desc);
22 }
23 
25  delete ui;
26 }
Dialog showing transaction details.
TransactionDescDialog(const QModelIndex &idx, QWidget *parent=nullptr)
Ui::TransactionDescDialog * ui