2018-01-02 18:12:05 +01:00
|
|
|
// Copyright (c) 2011-2017 The Bitcoin Core developers
|
2014-12-13 05:09:33 +01: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 01:57:53 +01: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
|
|
|
|
2017-11-10 01:57:53 +01:00
|
|
|
#include <qt/transactiontablemodel.h>
|
2011-06-10 15:05:51 +02:00
|
|
|
|
|
|
|
#include <QModelIndex>
|
|
|
|
|
|
|
|
TransactionDescDialog::TransactionDescDialog(const QModelIndex &idx, QWidget *parent) :
|
|
|
|
QDialog(parent),
|
|
|
|
ui(new Ui::TransactionDescDialog)
|
|
|
|
{
|
|
|
|
ui->setupUi(this);
|
2018-03-06 21:22:50 +01: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);
|
|
|
|
}
|
|
|
|
|
|
|
|
TransactionDescDialog::~TransactionDescDialog()
|
|
|
|
{
|
|
|
|
delete ui;
|
|
|
|
}
|