mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-03-17 00:42:45 +00:00
-BEGIN VERIFY SCRIPT- sed --in-place --regexp-extended \ 's;( 20[0-2][0-9])(-20[0-2][0-9])? The Bitcoin Core developers;\1-present The Bitcoin Core developers;g' \ $( git grep -l 'The Bitcoin Core developers' -- ':(exclude)COPYING' ':(exclude)src/ipc/libmultiprocess' ':(exclude)src/minisketch' ) -END VERIFY SCRIPT-
29 lines
904 B
C++
29 lines
904 B
C++
// Copyright (c) 2011-present 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;
|
|
}
|