Bitcoin ABC 0.26.3
P2P Digital Currency
Loading...
Searching...
No Matches
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);
18 tr("Details for %1")
19 .arg(idx.data(TransactionTableModel::TxIDRole).toString()));
22 ui->detailText->setHtml(desc);
23
25}
26
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
T GetRand(T nMax=std::numeric_limits< T >::max()) noexcept
Generate a uniform random integer of type T in the range [0..nMax) nMax defaults to std::numeric_limi...
Definition random.h:85