Bitcoin ABC
0.26.3
P2P Digital Currency
Loading...
Searching...
No Matches
src
qt
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>
6
#include <
qt/transactiondescdialog.h
>
7
8
#include <
qt/guiutil.h
>
9
#include <
qt/transactiontablemodel.h
>
10
11
#include <QModelIndex>
12
13
TransactionDescDialog::TransactionDescDialog
(
const
QModelIndex
&idx,
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
=
21
idx.data(
TransactionTableModel::LongDescriptionRole
).toString();
22
ui
->detailText->setHtml(
desc
);
23
24
GUIUtil::handleCloseWindowShortcut
(
this
);
25
}
26
27
TransactionDescDialog::~TransactionDescDialog
() {
28
delete
ui
;
29
}
TransactionDescDialog
Dialog showing transaction details.
Definition
transactiondescdialog.h:19
TransactionDescDialog::ui
Ui::TransactionDescDialog * ui
Definition
transactiondescdialog.h:28
TransactionDescDialog::TransactionDescDialog
TransactionDescDialog(const QModelIndex &idx, QWidget *parent=nullptr)
Definition
transactiondescdialog.cpp:13
TransactionDescDialog::~TransactionDescDialog
~TransactionDescDialog()
Definition
transactiondescdialog.cpp:27
TransactionTableModel::LongDescriptionRole
@ LongDescriptionRole
Long description (HTML format)
Definition
transactiontablemodel.h:58
TransactionTableModel::TxIDRole
@ TxIDRole
Unique identifier.
Definition
transactiontablemodel.h:66
guiutil.h
GUIUtil::handleCloseWindowShortcut
void handleCloseWindowShortcut(QWidget *w)
Definition
guiutil.cpp:407
Ui
Definition
addressbookpage.h:14
GetRand
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
transactiondescdialog.h
transactiontablemodel.h
Generated on Sat Nov 23 2024 02:38:00 for Bitcoin ABC by
1.9.8