Bitcoin Core 28.99.0
P2P Digital Currency
transactiondescdialog.cpp
Go to the documentation of this file.
1// Copyright (c) 2011-2021 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
13TransactionDescDialog::TransactionDescDialog(const QModelIndex &idx, QWidget *parent) :
14 QDialog(parent, GUIUtil::dialog_flags),
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.
Ui::TransactionDescDialog * ui
TransactionDescDialog(const QModelIndex &idx, QWidget *parent=nullptr)
@ LongDescriptionRole
Long description (HTML format)
@ TxHashRole
Transaction hash.
Utility functions used by the Bitcoin Qt UI.
Definition: bitcoingui.h:58
void handleCloseWindowShortcut(QWidget *w)
Definition: guiutil.cpp:431
constexpr auto dialog_flags
Definition: guiutil.h:60