mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-01-14 05:42:36 -03:00
f47dda2c58
-BEGIN VERIFY SCRIPT- ./contrib/devtools/copyright_header.py update ./ -END VERIFY SCRIPT- Commits of previous years: * 2020:fa0074e2d8
* 2019:aaaaad6ac9
28 lines
901 B
C++
28 lines
901 B
C++
// Copyright (c) 2011-2021 The Bitcoin Core developers
|
|
// Distributed under the MIT software license, see the accompanying
|
|
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
|
|
|
#include <qt/transactiondescdialog.h>
|
|
#include <qt/forms/ui_transactiondescdialog.h>
|
|
|
|
#include <qt/guiutil.h>
|
|
#include <qt/transactiontablemodel.h>
|
|
|
|
#include <QModelIndex>
|
|
|
|
TransactionDescDialog::TransactionDescDialog(const QModelIndex &idx, QWidget *parent) :
|
|
QDialog(parent, GUIUtil::dialog_flags),
|
|
ui(new Ui::TransactionDescDialog)
|
|
{
|
|
ui->setupUi(this);
|
|
setWindowTitle(tr("Details for %1").arg(idx.data(TransactionTableModel::TxHashRole).toString()));
|
|
QString desc = idx.data(TransactionTableModel::LongDescriptionRole).toString();
|
|
ui->detailText->setHtml(desc);
|
|
|
|
GUIUtil::handleCloseWindowShortcut(this);
|
|
}
|
|
|
|
TransactionDescDialog::~TransactionDescDialog()
|
|
{
|
|
delete ui;
|
|
}
|