Bitcoin ABC  0.24.11
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 =
21  idx.data(TransactionTableModel::LongDescriptionRole).toString();
22  ui->detailText->setHtml(desc);
23 
25 }
26 
28  delete ui;
29 }
transactiontablemodel.h
TransactionDescDialog::TransactionDescDialog
TransactionDescDialog(const QModelIndex &idx, QWidget *parent=nullptr)
Definition: transactiondescdialog.cpp:13
TransactionDescDialog
Dialog showing transaction details.
Definition: transactiondescdialog.h:19
TransactionTableModel::TxIDRole
@ TxIDRole
Unique identifier.
Definition: transactiontablemodel.h:66
TransactionDescDialog::ui
Ui::TransactionDescDialog * ui
Definition: transactiondescdialog.h:28
guiutil.h
transactiondescdialog.h
TransactionTableModel::LongDescriptionRole
@ LongDescriptionRole
Long description (HTML format)
Definition: transactiontablemodel.h:58
Ui
Definition: addressbookpage.h:14
TransactionDescDialog::~TransactionDescDialog
~TransactionDescDialog()
Definition: transactiondescdialog.cpp:27
GUIUtil::handleCloseWindowShortcut
void handleCloseWindowShortcut(QWidget *w)
Definition: guiutil.cpp:398