2021-12-30 19:36:57 +02:00
|
|
|
// Copyright (c) 2011-2021 The Bitcoin Core developers
|
2014-12-13 12:09:33 +08:00
|
|
|
// Distributed under the MIT software license, see the accompanying
|
2013-11-04 16:20:43 +01:00
|
|
|
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
|
|
|
|
2017-11-10 13:57:53 +13:00
|
|
|
#include <qt/transactiondescdialog.h>
|
2017-08-15 17:31:26 +02:00
|
|
|
#include <qt/forms/ui_transactiondescdialog.h>
|
2011-06-10 15:05:51 +02:00
|
|
|
|
2019-04-07 21:33:35 +02:00
|
|
|
#include <qt/guiutil.h>
|
2017-11-10 13:57:53 +13:00
|
|
|
#include <qt/transactiontablemodel.h>
|
2011-06-10 15:05:51 +02:00
|
|
|
|
|
|
|
#include <QModelIndex>
|
|
|
|
|
|
|
|
TransactionDescDialog::TransactionDescDialog(const QModelIndex &idx, QWidget *parent) :
|
2020-09-07 19:09:33 +03:00
|
|
|
QDialog(parent, GUIUtil::dialog_flags),
|
2011-06-10 15:05:51 +02:00
|
|
|
ui(new Ui::TransactionDescDialog)
|
|
|
|
{
|
|
|
|
ui->setupUi(this);
|
2018-03-06 20:22:50 +00:00
|
|
|
setWindowTitle(tr("Details for %1").arg(idx.data(TransactionTableModel::TxHashRole).toString()));
|
2011-06-10 15:05:51 +02:00
|
|
|
QString desc = idx.data(TransactionTableModel::LongDescriptionRole).toString();
|
|
|
|
ui->detailText->setHtml(desc);
|
2019-04-07 21:33:35 +02:00
|
|
|
|
|
|
|
GUIUtil::handleCloseWindowShortcut(this);
|
2011-06-10 15:05:51 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
TransactionDescDialog::~TransactionDescDialog()
|
|
|
|
{
|
|
|
|
delete ui;
|
|
|
|
}
|