2014-01-05 21:03:23 +01:00
|
|
|
// Copyright (c) 2011-2014 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.
|
|
|
|
|
2011-06-10 15:05:51 +02:00
|
|
|
#include "transactiondescdialog.h"
|
|
|
|
#include "ui_transactiondescdialog.h"
|
|
|
|
|
|
|
|
#include "transactiontablemodel.h"
|
|
|
|
|
|
|
|
#include <QModelIndex>
|
|
|
|
|
|
|
|
TransactionDescDialog::TransactionDescDialog(const QModelIndex &idx, QWidget *parent) :
|
|
|
|
QDialog(parent),
|
|
|
|
ui(new Ui::TransactionDescDialog)
|
|
|
|
{
|
|
|
|
ui->setupUi(this);
|
2016-04-26 16:01:45 +02:00
|
|
|
setWindowTitle(tr("Details for %1").arg(idx.data(TransactionTableModel::TxIDRole).toString()));
|
2011-06-10 15:05:51 +02:00
|
|
|
QString desc = idx.data(TransactionTableModel::LongDescriptionRole).toString();
|
|
|
|
ui->detailText->setHtml(desc);
|
|
|
|
}
|
|
|
|
|
|
|
|
TransactionDescDialog::~TransactionDescDialog()
|
|
|
|
{
|
|
|
|
delete ui;
|
|
|
|
}
|