Bitcoin ABC 0.30.7
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
8#include <qt/guiutil.h>
10
11#include <QModelIndex>
12
14 QWidget *parent)
15 : QDialog(parent), ui(new Ui::TransactionDescDialog) {
16 ui->setupUi(this);
17 setWindowTitle(
18 tr("Details for %1")
19 .arg(idx.data(TransactionTableModel::TxIDRole).toString()));
20 QString desc =
22 ui->detailText->setHtml(desc);
23
25}
26
28 delete ui;
29}
Dialog showing transaction details.
Ui::TransactionDescDialog * ui
TransactionDescDialog(const QModelIndex &idx, QWidget *parent=nullptr)
@ LongDescriptionRole
Long description (HTML format)
@ TxIDRole
Unique identifier.
void handleCloseWindowShortcut(QWidget *w)
Definition: guiutil.cpp:407